From 7e66386eaf05501cb0da6f7b1eb55b71e67848e7 Mon Sep 17 00:00:00 2001 From: Ju4tCode <42488585+yanyongyu@users.noreply.github.com> Date: Fri, 19 Jul 2024 16:20:38 +0800 Subject: [PATCH] :bug: Fix: literal cannot use unset const (#117) --- codegen/templates/rest/_param.py.jinja | 2 +- codegen/templates/rest/client.py.jinja | 2 +- githubkit/core.py | 30 +- githubkit/rest/__init__.py | 4 + githubkit/typing.py | 6 +- .../ghec_v2022_11_28/models/__init__.py | 1382 +++++++++-------- .../ghec_v2022_11_28/models/group_0086.py | 14 +- .../ghec_v2022_11_28/models/group_0090.py | 3 + .../ghec_v2022_11_28/models/group_0839.py | 14 +- .../ghec_v2022_11_28/models/group_0865.py | 3 + .../ghec_v2022_11_28/models/group_0866.py | 61 +- .../ghec_v2022_11_28/models/group_0867.py | 65 +- .../ghec_v2022_11_28/models/group_0868.py | 19 +- .../ghec_v2022_11_28/models/group_0869.py | 17 +- .../ghec_v2022_11_28/models/group_0870.py | 27 +- .../ghec_v2022_11_28/models/group_0871.py | 29 +- .../ghec_v2022_11_28/models/group_0872.py | 25 +- .../ghec_v2022_11_28/models/group_0873.py | 10 +- .../ghec_v2022_11_28/models/group_0874.py | 43 +- .../ghec_v2022_11_28/models/group_0875.py | 40 +- .../ghec_v2022_11_28/models/group_0876.py | 31 +- .../ghec_v2022_11_28/models/group_0877.py | 15 +- .../ghec_v2022_11_28/models/group_0878.py | 18 +- .../ghec_v2022_11_28/models/group_0879.py | 19 +- .../ghec_v2022_11_28/models/group_0880.py | 18 +- .../ghec_v2022_11_28/models/group_0881.py | 18 +- .../ghec_v2022_11_28/models/group_0882.py | 18 +- .../ghec_v2022_11_28/models/group_0883.py | 18 +- .../ghec_v2022_11_28/models/group_0884.py | 18 +- .../ghec_v2022_11_28/models/group_0885.py | 18 +- .../ghec_v2022_11_28/models/group_0886.py | 18 +- .../ghec_v2022_11_28/models/group_0887.py | 20 +- .../ghec_v2022_11_28/models/group_0888.py | 34 +- .../ghec_v2022_11_28/models/group_0889.py | 41 +- .../ghec_v2022_11_28/models/group_0890.py | 31 +- .../ghec_v2022_11_28/models/group_0891.py | 15 +- .../ghec_v2022_11_28/models/group_0892.py | 49 +- .../ghec_v2022_11_28/models/group_0893.py | 27 +- .../ghec_v2022_11_28/models/group_0894.py | 37 +- .../ghec_v2022_11_28/models/group_0895.py | 28 +- .../ghec_v2022_11_28/models/group_0896.py | 17 +- .../ghec_v2022_11_28/models/group_0897.py | 37 +- .../ghec_v2022_11_28/models/group_0898.py | 42 +- .../ghec_v2022_11_28/models/group_0899.py | 20 +- .../ghec_v2022_11_28/models/group_0900.py | 45 +- .../ghec_v2022_11_28/models/group_0901.py | 47 +- .../ghec_v2022_11_28/models/group_0902.py | 17 +- .../ghec_v2022_11_28/models/group_0903.py | 22 +- .../ghec_v2022_11_28/models/group_0904.py | 18 +- .../ghec_v2022_11_28/models/group_0905.py | 15 +- .../ghec_v2022_11_28/models/group_0906.py | 26 +- .../ghec_v2022_11_28/models/group_0907.py | 20 +- .../ghec_v2022_11_28/models/group_0908.py | 24 +- .../ghec_v2022_11_28/models/group_0909.py | 15 +- .../ghec_v2022_11_28/models/group_0910.py | 17 +- .../ghec_v2022_11_28/models/group_0911.py | 21 +- .../ghec_v2022_11_28/models/group_0912.py | 41 +- .../ghec_v2022_11_28/models/group_0913.py | 42 +- .../ghec_v2022_11_28/models/group_0914.py | 128 +- .../ghec_v2022_11_28/models/group_0915.py | 187 ++- .../ghec_v2022_11_28/models/group_0916.py | 15 +- .../ghec_v2022_11_28/models/group_0917.py | 97 +- .../ghec_v2022_11_28/models/group_0918.py | 28 +- .../ghec_v2022_11_28/models/group_0919.py | 33 +- .../ghec_v2022_11_28/models/group_0920.py | 20 +- .../ghec_v2022_11_28/models/group_0921.py | 17 +- .../ghec_v2022_11_28/models/group_0922.py | 14 +- .../ghec_v2022_11_28/models/group_0923.py | 18 +- .../ghec_v2022_11_28/models/group_0924.py | 18 +- .../ghec_v2022_11_28/models/group_0925.py | 16 +- .../ghec_v2022_11_28/models/group_0926.py | 16 +- .../ghec_v2022_11_28/models/group_0927.py | 13 +- .../ghec_v2022_11_28/models/group_0928.py | 16 +- .../ghec_v2022_11_28/models/group_0929.py | 14 +- .../ghec_v2022_11_28/models/group_0930.py | 28 +- .../ghec_v2022_11_28/models/group_0931.py | 28 +- .../ghec_v2022_11_28/models/group_0932.py | 17 +- .../ghec_v2022_11_28/models/group_0933.py | 19 +- .../ghec_v2022_11_28/models/group_0934.py | 20 +- .../ghec_v2022_11_28/models/group_0935.py | 21 +- .../ghec_v2022_11_28/models/group_0936.py | 33 +- .../ghec_v2022_11_28/models/group_0937.py | 21 +- .../ghec_v2022_11_28/models/group_0938.py | 30 +- .../ghec_v2022_11_28/models/group_0939.py | 12 +- .../ghec_v2022_11_28/models/group_0940.py | 17 +- .../ghec_v2022_11_28/models/group_0941.py | 35 +- .../ghec_v2022_11_28/models/group_0942.py | 33 +- .../ghec_v2022_11_28/models/group_0943.py | 15 +- .../ghec_v2022_11_28/models/group_0944.py | 18 +- .../ghec_v2022_11_28/models/group_0945.py | 28 +- .../ghec_v2022_11_28/models/group_0946.py | 28 +- .../ghec_v2022_11_28/models/group_0947.py | 16 +- .../ghec_v2022_11_28/models/group_0948.py | 16 +- .../ghec_v2022_11_28/models/group_0949.py | 13 +- .../ghec_v2022_11_28/models/group_0950.py | 258 +-- .../ghec_v2022_11_28/models/group_0951.py | 260 +++- .../ghec_v2022_11_28/models/group_0952.py | 19 +- .../ghec_v2022_11_28/models/group_0953.py | 21 +- .../ghec_v2022_11_28/models/group_0954.py | 22 +- .../ghec_v2022_11_28/models/group_0955.py | 12 +- .../ghec_v2022_11_28/models/group_0956.py | 23 +- .../ghec_v2022_11_28/models/group_0957.py | 23 +- .../ghec_v2022_11_28/models/group_0958.py | 27 +- .../ghec_v2022_11_28/models/group_0959.py | 21 +- .../ghec_v2022_11_28/models/group_0960.py | 11 +- .../ghec_v2022_11_28/models/group_0961.py | 17 +- .../ghec_v2022_11_28/models/group_0962.py | 12 +- .../ghec_v2022_11_28/models/group_0963.py | 14 +- .../ghec_v2022_11_28/models/group_0964.py | 10 +- .../ghec_v2022_11_28/models/group_0965.py | 21 +- .../ghec_v2022_11_28/models/group_0966.py | 20 +- .../ghec_v2022_11_28/models/group_0967.py | 8 +- .../ghec_v2022_11_28/models/group_0968.py | 19 +- .../ghec_v2022_11_28/models/group_0969.py | 24 +- .../ghec_v2022_11_28/models/group_0970.py | 24 +- .../ghec_v2022_11_28/models/group_0971.py | 16 +- .../ghec_v2022_11_28/models/group_0972.py | 14 +- .../ghec_v2022_11_28/models/group_0973.py | 40 +- .../ghec_v2022_11_28/models/group_0974.py | 52 +- .../ghec_v2022_11_28/models/group_0975.py | 40 +- .../ghec_v2022_11_28/models/group_0976.py | 55 +- .../ghec_v2022_11_28/models/group_0977.py | 50 +- .../ghec_v2022_11_28/models/group_0978.py | 85 +- .../ghec_v2022_11_28/models/group_0979.py | 90 +- .../ghec_v2022_11_28/models/group_0980.py | 219 +-- .../ghec_v2022_11_28/models/group_0981.py | 161 +- .../ghec_v2022_11_28/models/group_0982.py | 93 +- .../ghec_v2022_11_28/models/group_0983.py | 42 +- .../ghec_v2022_11_28/models/group_0984.py | 8 +- .../ghec_v2022_11_28/models/group_0985.py | 9 +- .../ghec_v2022_11_28/models/group_0986.py | 21 +- .../ghec_v2022_11_28/models/group_0987.py | 8 +- .../ghec_v2022_11_28/models/group_0988.py | 10 +- .../ghec_v2022_11_28/models/group_0989.py | 16 +- .../ghec_v2022_11_28/models/group_0990.py | 12 +- .../ghec_v2022_11_28/models/group_0991.py | 8 +- .../ghec_v2022_11_28/models/group_0992.py | 14 +- .../ghec_v2022_11_28/models/group_0993.py | 10 +- .../ghec_v2022_11_28/models/group_0994.py | 8 +- .../ghec_v2022_11_28/models/group_0995.py | 18 +- .../ghec_v2022_11_28/models/group_0996.py | 110 +- .../ghec_v2022_11_28/models/group_0997.py | 128 +- .../ghec_v2022_11_28/models/group_0998.py | 35 +- .../ghec_v2022_11_28/models/group_0999.py | 126 +- .../ghec_v2022_11_28/models/group_1000.py | 125 +- .../ghec_v2022_11_28/models/group_1001.py | 35 +- .../ghec_v2022_11_28/models/group_1002.py | 67 +- .../ghec_v2022_11_28/models/group_1003.py | 35 +- .../ghec_v2022_11_28/models/group_1004.py | 34 +- .../ghec_v2022_11_28/models/group_1005.py | 32 +- .../ghec_v2022_11_28/models/group_1006.py | 37 +- .../ghec_v2022_11_28/models/group_1007.py | 16 +- .../ghec_v2022_11_28/models/group_1008.py | 14 +- .../ghec_v2022_11_28/models/group_1009.py | 47 +- .../ghec_v2022_11_28/models/group_1010.py | 54 +- .../ghec_v2022_11_28/models/group_1011.py | 57 +- .../ghec_v2022_11_28/models/group_1012.py | 77 +- .../ghec_v2022_11_28/models/group_1013.py | 30 +- .../ghec_v2022_11_28/models/group_1014.py | 33 +- .../ghec_v2022_11_28/models/group_1015.py | 37 +- .../ghec_v2022_11_28/models/group_1016.py | 38 +- .../ghec_v2022_11_28/models/group_1017.py | 16 +- .../ghec_v2022_11_28/models/group_1018.py | 15 +- .../ghec_v2022_11_28/models/group_1019.py | 16 +- .../ghec_v2022_11_28/models/group_1020.py | 26 +- .../ghec_v2022_11_28/models/group_1021.py | 27 +- .../ghec_v2022_11_28/models/group_1022.py | 69 +- .../ghec_v2022_11_28/models/group_1023.py | 67 +- .../ghec_v2022_11_28/models/group_1024.py | 64 +- .../ghec_v2022_11_28/models/group_1025.py | 46 +- .../ghec_v2022_11_28/models/group_1026.py | 38 +- .../ghec_v2022_11_28/models/group_1027.py | 22 +- .../ghec_v2022_11_28/models/group_1028.py | 59 +- .../ghec_v2022_11_28/models/group_1029.py | 54 +- .../ghec_v2022_11_28/models/group_1030.py | 48 +- .../ghec_v2022_11_28/models/group_1031.py | 56 +- .../ghec_v2022_11_28/models/group_1032.py | 58 +- .../ghec_v2022_11_28/models/group_1033.py | 64 +- .../ghec_v2022_11_28/models/group_1034.py | 35 +- .../ghec_v2022_11_28/models/group_1035.py | 21 +- .../ghec_v2022_11_28/models/group_1036.py | 29 +- .../ghec_v2022_11_28/models/group_1037.py | 19 +- .../ghec_v2022_11_28/models/group_1038.py | 19 +- .../ghec_v2022_11_28/models/group_1039.py | 16 +- .../ghec_v2022_11_28/models/group_1040.py | 14 +- .../ghec_v2022_11_28/models/group_1041.py | 30 +- .../ghec_v2022_11_28/models/group_1042.py | 21 +- .../ghec_v2022_11_28/models/group_1043.py | 75 +- .../ghec_v2022_11_28/models/group_1044.py | 78 +- .../ghec_v2022_11_28/models/group_1045.py | 17 +- .../ghec_v2022_11_28/models/group_1046.py | 44 +- .../ghec_v2022_11_28/models/group_1047.py | 57 +- .../ghec_v2022_11_28/models/group_1048.py | 58 +- .../ghec_v2022_11_28/models/group_1049.py | 51 +- .../ghec_v2022_11_28/models/group_1050.py | 35 +- .../ghec_v2022_11_28/models/group_1051.py | 29 +- .../ghec_v2022_11_28/models/group_1052.py | 21 +- .../ghec_v2022_11_28/models/group_1053.py | 28 +- .../ghec_v2022_11_28/models/group_1054.py | 17 +- .../ghec_v2022_11_28/models/group_1055.py | 16 +- .../ghec_v2022_11_28/models/group_1056.py | 21 +- .../ghec_v2022_11_28/models/group_1057.py | 44 +- .../ghec_v2022_11_28/models/group_1058.py | 51 +- .../ghec_v2022_11_28/models/group_1059.py | 16 +- .../ghec_v2022_11_28/models/group_1060.py | 56 +- .../ghec_v2022_11_28/models/group_1061.py | 51 +- .../ghec_v2022_11_28/models/group_1062.py | 10 +- .../ghec_v2022_11_28/models/group_1063.py | 17 +- .../ghec_v2022_11_28/models/group_1064.py | 18 +- .../ghec_v2022_11_28/models/group_1065.py | 26 +- .../ghec_v2022_11_28/models/group_1066.py | 24 +- .../ghec_v2022_11_28/models/group_1067.py | 18 +- .../ghec_v2022_11_28/models/group_1068.py | 26 +- .../ghec_v2022_11_28/models/group_1069.py | 24 +- .../ghec_v2022_11_28/models/group_1070.py | 19 +- .../ghec_v2022_11_28/models/group_1071.py | 19 +- .../ghec_v2022_11_28/models/group_1072.py | 21 +- .../ghec_v2022_11_28/models/group_1073.py | 21 +- .../ghec_v2022_11_28/models/group_1074.py | 13 +- .../ghec_v2022_11_28/models/group_1075.py | 23 +- .../ghec_v2022_11_28/models/group_1076.py | 21 +- .../ghec_v2022_11_28/models/group_1077.py | 25 +- .../ghec_v2022_11_28/models/group_1078.py | 12 +- .../ghec_v2022_11_28/models/group_1079.py | 23 +- .../ghec_v2022_11_28/models/group_1080.py | 16 +- .../ghec_v2022_11_28/models/group_1081.py | 23 +- .../ghec_v2022_11_28/models/group_1082.py | 38 +- .../ghec_v2022_11_28/models/group_1083.py | 25 +- .../ghec_v2022_11_28/models/group_1084.py | 25 +- .../ghec_v2022_11_28/models/group_1085.py | 20 +- .../ghec_v2022_11_28/models/group_1086.py | 20 +- .../ghec_v2022_11_28/models/group_1087.py | 35 +- .../ghec_v2022_11_28/models/group_1088.py | 21 +- .../ghec_v2022_11_28/models/group_1089.py | 20 +- .../ghec_v2022_11_28/models/group_1090.py | 33 +- .../ghec_v2022_11_28/models/group_1091.py | 33 +- .../ghec_v2022_11_28/models/group_1092.py | 15 +- .../ghec_v2022_11_28/models/group_1093.py | 19 +- .../ghec_v2022_11_28/models/group_1094.py | 44 +- .../ghec_v2022_11_28/models/group_1095.py | 48 +- .../ghec_v2022_11_28/models/group_1096.py | 16 +- .../ghec_v2022_11_28/models/group_1097.py | 31 +- .../ghec_v2022_11_28/models/group_1098.py | 47 +- .../ghec_v2022_11_28/models/group_1099.py | 53 +- .../ghec_v2022_11_28/models/group_1100.py | 51 +- .../ghec_v2022_11_28/models/group_1101.py | 26 +- .../ghec_v2022_11_28/models/group_1102.py | 25 +- .../ghec_v2022_11_28/models/group_1103.py | 8 +- .../ghec_v2022_11_28/models/group_1104.py | 18 +- .../ghec_v2022_11_28/models/group_1105.py | 16 +- .../ghec_v2022_11_28/models/group_1106.py | 16 +- .../ghec_v2022_11_28/models/group_1107.py | 51 +- .../ghec_v2022_11_28/models/group_1108.py | 52 +- .../ghec_v2022_11_28/models/group_1109.py | 17 +- .../ghec_v2022_11_28/models/group_1110.py | 16 +- .../ghec_v2022_11_28/models/group_1111.py | 18 +- .../ghec_v2022_11_28/models/group_1112.py | 14 +- .../ghec_v2022_11_28/models/group_1113.py | 49 +- .../ghec_v2022_11_28/models/group_1114.py | 41 +- .../ghec_v2022_11_28/models/group_1115.py | 25 +- .../ghec_v2022_11_28/models/group_1116.py | 36 +- .../ghec_v2022_11_28/models/group_1117.py | 36 +- .../ghec_v2022_11_28/models/group_1118.py | 80 +- .../ghec_v2022_11_28/models/group_1119.py | 15 +- .../ghec_v2022_11_28/models/group_1120.py | 81 +- .../ghec_v2022_11_28/models/group_1121.py | 25 +- .../ghec_v2022_11_28/models/group_1122.py | 24 +- .../ghec_v2022_11_28/models/group_1123.py | 19 +- .../ghec_v2022_11_28/models/group_1124.py | 14 +- .../ghec_v2022_11_28/models/group_1125.py | 21 +- .../ghec_v2022_11_28/models/group_1126.py | 28 +- .../ghec_v2022_11_28/models/group_1127.py | 61 +- .../ghec_v2022_11_28/models/group_1128.py | 44 +- .../ghec_v2022_11_28/models/group_1129.py | 88 +- .../ghec_v2022_11_28/models/group_1130.py | 86 +- .../ghec_v2022_11_28/models/group_1131.py | 33 +- .../ghec_v2022_11_28/models/group_1132.py | 20 +- .../ghec_v2022_11_28/models/group_1133.py | 17 +- .../ghec_v2022_11_28/models/group_1134.py | 8 +- .../ghec_v2022_11_28/models/group_1135.py | 22 +- .../ghec_v2022_11_28/models/group_1136.py | 16 +- .../ghec_v2022_11_28/models/group_1137.py | 16 +- .../ghec_v2022_11_28/models/group_1138.py | 13 +- .../ghec_v2022_11_28/models/group_1139.py | 16 +- .../ghec_v2022_11_28/models/group_1140.py | 16 +- .../ghec_v2022_11_28/models/group_1141.py | 31 +- .../ghec_v2022_11_28/models/group_1142.py | 49 +- .../ghec_v2022_11_28/models/group_1143.py | 46 +- .../ghec_v2022_11_28/models/group_1144.py | 58 +- .../ghec_v2022_11_28/models/group_1145.py | 43 +- .../ghec_v2022_11_28/models/group_1146.py | 65 +- .../ghec_v2022_11_28/models/group_1147.py | 46 +- .../ghec_v2022_11_28/models/group_1148.py | 26 +- .../ghec_v2022_11_28/models/group_1149.py | 15 +- .../ghec_v2022_11_28/models/group_1150.py | 21 +- .../ghec_v2022_11_28/models/group_1151.py | 24 +- .../ghec_v2022_11_28/models/group_1152.py | 22 +- .../ghec_v2022_11_28/models/group_1153.py | 19 +- .../ghec_v2022_11_28/models/group_1154.py | 18 +- .../ghec_v2022_11_28/models/group_1155.py | 15 +- .../ghec_v2022_11_28/models/group_1156.py | 26 +- .../ghec_v2022_11_28/models/group_1157.py | 20 +- .../ghec_v2022_11_28/models/group_1158.py | 15 +- .../ghec_v2022_11_28/models/group_1159.py | 20 +- .../ghec_v2022_11_28/models/group_1160.py | 20 +- .../ghec_v2022_11_28/models/group_1161.py | 20 +- .../ghec_v2022_11_28/models/group_1162.py | 44 +- .../ghec_v2022_11_28/models/group_1163.py | 43 +- .../ghec_v2022_11_28/models/group_1164.py | 94 +- .../ghec_v2022_11_28/models/group_1165.py | 100 +- .../ghec_v2022_11_28/models/group_1166.py | 10 +- .../ghec_v2022_11_28/models/group_1167.py | 25 +- .../ghec_v2022_11_28/models/group_1168.py | 168 +- .../ghec_v2022_11_28/models/group_1169.py | 183 +++ .../versions/ghec_v2022_11_28/rest/actions.py | 162 +- .../ghec_v2022_11_28/rest/activity.py | 18 +- .../versions/ghec_v2022_11_28/rest/apps.py | 30 +- .../versions/ghec_v2022_11_28/rest/billing.py | 12 +- .../versions/ghec_v2022_11_28/rest/checks.py | 26 +- .../ghec_v2022_11_28/rest/code_scanning.py | 26 +- .../ghec_v2022_11_28/rest/code_security.py | 143 +- .../ghec_v2022_11_28/rest/codespaces.py | 58 +- .../versions/ghec_v2022_11_28/rest/copilot.py | 20 +- .../ghec_v2022_11_28/rest/dependabot.py | 18 +- .../ghec_v2022_11_28/rest/dependency_graph.py | 8 +- .../ghec_v2022_11_28/rest/enterprise_admin.py | 70 +- .../versions/ghec_v2022_11_28/rest/gists.py | 18 +- .../versions/ghec_v2022_11_28/rest/git.py | 26 +- .../ghec_v2022_11_28/rest/interactions.py | 14 +- .../versions/ghec_v2022_11_28/rest/issues.py | 62 +- .../ghec_v2022_11_28/rest/markdown.py | 6 +- .../ghec_v2022_11_28/rest/migrations.py | 26 +- .../versions/ghec_v2022_11_28/rest/oidc.py | 8 +- .../versions/ghec_v2022_11_28/rest/orgs.py | 94 +- .../ghec_v2022_11_28/rest/projects.py | 50 +- .../versions/ghec_v2022_11_28/rest/pulls.py | 58 +- .../ghec_v2022_11_28/rest/reactions.py | 38 +- .../versions/ghec_v2022_11_28/rest/repos.py | 254 +-- .../versions/ghec_v2022_11_28/rest/scim.py | 16 +- .../ghec_v2022_11_28/rest/secret_scanning.py | 6 +- .../rest/security_advisories.py | 14 +- .../versions/ghec_v2022_11_28/rest/teams.py | 82 +- .../versions/ghec_v2022_11_28/rest/users.py | 38 +- .../ghec_v2022_11_28/types/__init__.py | 1382 +++++++++-------- .../ghec_v2022_11_28/types/group_0090.py | 1 + .../ghec_v2022_11_28/types/group_0865.py | 1 + .../ghec_v2022_11_28/types/group_0866.py | 32 +- .../ghec_v2022_11_28/types/group_0867.py | 34 +- .../ghec_v2022_11_28/types/group_0868.py | 13 +- .../ghec_v2022_11_28/types/group_0869.py | 13 +- .../ghec_v2022_11_28/types/group_0870.py | 22 +- .../ghec_v2022_11_28/types/group_0871.py | 21 +- .../ghec_v2022_11_28/types/group_0872.py | 18 +- .../ghec_v2022_11_28/types/group_0873.py | 6 +- .../ghec_v2022_11_28/types/group_0874.py | 30 +- .../ghec_v2022_11_28/types/group_0875.py | 27 +- .../ghec_v2022_11_28/types/group_0876.py | 18 +- .../ghec_v2022_11_28/types/group_0877.py | 11 +- .../ghec_v2022_11_28/types/group_0878.py | 13 +- .../ghec_v2022_11_28/types/group_0879.py | 13 +- .../ghec_v2022_11_28/types/group_0880.py | 12 +- .../ghec_v2022_11_28/types/group_0881.py | 12 +- .../ghec_v2022_11_28/types/group_0882.py | 12 +- .../ghec_v2022_11_28/types/group_0883.py | 12 +- .../ghec_v2022_11_28/types/group_0884.py | 12 +- .../ghec_v2022_11_28/types/group_0885.py | 12 +- .../ghec_v2022_11_28/types/group_0886.py | 12 +- .../ghec_v2022_11_28/types/group_0887.py | 15 +- .../ghec_v2022_11_28/types/group_0888.py | 29 +- .../ghec_v2022_11_28/types/group_0889.py | 27 +- .../ghec_v2022_11_28/types/group_0890.py | 18 +- .../ghec_v2022_11_28/types/group_0891.py | 11 +- .../ghec_v2022_11_28/types/group_0892.py | 32 +- .../ghec_v2022_11_28/types/group_0893.py | 18 +- .../ghec_v2022_11_28/types/group_0894.py | 25 +- .../ghec_v2022_11_28/types/group_0895.py | 18 +- .../ghec_v2022_11_28/types/group_0896.py | 12 +- .../ghec_v2022_11_28/types/group_0897.py | 14 +- .../ghec_v2022_11_28/types/group_0898.py | 18 +- .../ghec_v2022_11_28/types/group_0899.py | 15 +- .../ghec_v2022_11_28/types/group_0900.py | 18 +- .../ghec_v2022_11_28/types/group_0901.py | 20 +- .../ghec_v2022_11_28/types/group_0902.py | 10 +- .../ghec_v2022_11_28/types/group_0903.py | 11 +- .../ghec_v2022_11_28/types/group_0904.py | 10 +- .../ghec_v2022_11_28/types/group_0905.py | 11 +- .../ghec_v2022_11_28/types/group_0906.py | 12 +- .../ghec_v2022_11_28/types/group_0907.py | 9 +- .../ghec_v2022_11_28/types/group_0908.py | 14 +- .../ghec_v2022_11_28/types/group_0909.py | 9 +- .../ghec_v2022_11_28/types/group_0910.py | 12 +- .../ghec_v2022_11_28/types/group_0911.py | 14 +- .../ghec_v2022_11_28/types/group_0912.py | 18 +- .../ghec_v2022_11_28/types/group_0913.py | 19 +- .../ghec_v2022_11_28/types/group_0914.py | 62 +- .../ghec_v2022_11_28/types/group_0915.py | 108 +- .../ghec_v2022_11_28/types/group_0916.py | 10 +- .../ghec_v2022_11_28/types/group_0917.py | 82 +- .../ghec_v2022_11_28/types/group_0918.py | 16 +- .../ghec_v2022_11_28/types/group_0919.py | 18 +- .../ghec_v2022_11_28/types/group_0920.py | 11 +- .../ghec_v2022_11_28/types/group_0921.py | 11 +- .../ghec_v2022_11_28/types/group_0922.py | 10 +- .../ghec_v2022_11_28/types/group_0923.py | 13 +- .../ghec_v2022_11_28/types/group_0924.py | 12 +- .../ghec_v2022_11_28/types/group_0925.py | 11 +- .../ghec_v2022_11_28/types/group_0926.py | 11 +- .../ghec_v2022_11_28/types/group_0927.py | 8 +- .../ghec_v2022_11_28/types/group_0928.py | 10 +- .../ghec_v2022_11_28/types/group_0929.py | 9 +- .../ghec_v2022_11_28/types/group_0930.py | 22 +- .../ghec_v2022_11_28/types/group_0931.py | 23 +- .../ghec_v2022_11_28/types/group_0932.py | 12 +- .../ghec_v2022_11_28/types/group_0933.py | 13 +- .../ghec_v2022_11_28/types/group_0934.py | 11 +- .../ghec_v2022_11_28/types/group_0935.py | 11 +- .../ghec_v2022_11_28/types/group_0936.py | 27 +- .../ghec_v2022_11_28/types/group_0937.py | 17 +- .../ghec_v2022_11_28/types/group_0938.py | 26 +- .../ghec_v2022_11_28/types/group_0939.py | 9 +- .../ghec_v2022_11_28/types/group_0940.py | 10 +- .../ghec_v2022_11_28/types/group_0941.py | 27 +- .../ghec_v2022_11_28/types/group_0942.py | 26 +- .../ghec_v2022_11_28/types/group_0943.py | 8 +- .../ghec_v2022_11_28/types/group_0944.py | 13 +- .../ghec_v2022_11_28/types/group_0945.py | 16 +- .../ghec_v2022_11_28/types/group_0946.py | 16 +- .../ghec_v2022_11_28/types/group_0947.py | 12 +- .../ghec_v2022_11_28/types/group_0948.py | 11 +- .../ghec_v2022_11_28/types/group_0949.py | 11 +- .../ghec_v2022_11_28/types/group_0950.py | 148 +- .../ghec_v2022_11_28/types/group_0951.py | 151 +- .../ghec_v2022_11_28/types/group_0952.py | 14 +- .../ghec_v2022_11_28/types/group_0953.py | 13 +- .../ghec_v2022_11_28/types/group_0954.py | 15 +- .../ghec_v2022_11_28/types/group_0955.py | 10 +- .../ghec_v2022_11_28/types/group_0956.py | 16 +- .../ghec_v2022_11_28/types/group_0957.py | 16 +- .../ghec_v2022_11_28/types/group_0958.py | 16 +- .../ghec_v2022_11_28/types/group_0959.py | 11 +- .../ghec_v2022_11_28/types/group_0960.py | 6 +- .../ghec_v2022_11_28/types/group_0961.py | 11 +- .../ghec_v2022_11_28/types/group_0962.py | 10 +- .../ghec_v2022_11_28/types/group_0963.py | 12 +- .../ghec_v2022_11_28/types/group_0964.py | 8 +- .../ghec_v2022_11_28/types/group_0965.py | 15 +- .../ghec_v2022_11_28/types/group_0966.py | 13 +- .../ghec_v2022_11_28/types/group_0967.py | 6 +- .../ghec_v2022_11_28/types/group_0968.py | 14 +- .../ghec_v2022_11_28/types/group_0969.py | 15 +- .../ghec_v2022_11_28/types/group_0970.py | 15 +- .../ghec_v2022_11_28/types/group_0971.py | 13 +- .../ghec_v2022_11_28/types/group_0972.py | 12 +- .../ghec_v2022_11_28/types/group_0973.py | 36 +- .../ghec_v2022_11_28/types/group_0974.py | 40 +- .../ghec_v2022_11_28/types/group_0975.py | 29 +- .../ghec_v2022_11_28/types/group_0976.py | 45 +- .../ghec_v2022_11_28/types/group_0977.py | 41 +- .../ghec_v2022_11_28/types/group_0978.py | 67 +- .../ghec_v2022_11_28/types/group_0979.py | 69 +- .../ghec_v2022_11_28/types/group_0980.py | 129 +- .../ghec_v2022_11_28/types/group_0981.py | 100 +- .../ghec_v2022_11_28/types/group_0982.py | 56 +- .../ghec_v2022_11_28/types/group_0983.py | 28 +- .../ghec_v2022_11_28/types/group_0984.py | 6 +- .../ghec_v2022_11_28/types/group_0985.py | 7 +- .../ghec_v2022_11_28/types/group_0986.py | 13 +- .../ghec_v2022_11_28/types/group_0987.py | 6 +- .../ghec_v2022_11_28/types/group_0988.py | 8 +- .../ghec_v2022_11_28/types/group_0989.py | 12 +- .../ghec_v2022_11_28/types/group_0990.py | 8 +- .../ghec_v2022_11_28/types/group_0991.py | 8 +- .../ghec_v2022_11_28/types/group_0992.py | 12 +- .../ghec_v2022_11_28/types/group_0993.py | 6 +- .../ghec_v2022_11_28/types/group_0994.py | 8 +- .../ghec_v2022_11_28/types/group_0995.py | 17 +- .../ghec_v2022_11_28/types/group_0996.py | 59 +- .../ghec_v2022_11_28/types/group_0997.py | 78 +- .../ghec_v2022_11_28/types/group_0998.py | 30 +- .../ghec_v2022_11_28/types/group_0999.py | 84 +- .../ghec_v2022_11_28/types/group_1000.py | 83 +- .../ghec_v2022_11_28/types/group_1001.py | 30 +- .../ghec_v2022_11_28/types/group_1002.py | 48 +- .../ghec_v2022_11_28/types/group_1003.py | 27 +- .../ghec_v2022_11_28/types/group_1004.py | 27 +- .../ghec_v2022_11_28/types/group_1005.py | 19 +- .../ghec_v2022_11_28/types/group_1006.py | 18 +- .../ghec_v2022_11_28/types/group_1007.py | 10 +- .../ghec_v2022_11_28/types/group_1008.py | 10 +- .../ghec_v2022_11_28/types/group_1009.py | 22 +- .../ghec_v2022_11_28/types/group_1010.py | 21 +- .../ghec_v2022_11_28/types/group_1011.py | 25 +- .../ghec_v2022_11_28/types/group_1012.py | 34 +- .../ghec_v2022_11_28/types/group_1013.py | 27 +- .../ghec_v2022_11_28/types/group_1014.py | 26 +- .../ghec_v2022_11_28/types/group_1015.py | 29 +- .../ghec_v2022_11_28/types/group_1016.py | 28 +- .../ghec_v2022_11_28/types/group_1017.py | 9 +- .../ghec_v2022_11_28/types/group_1018.py | 10 +- .../ghec_v2022_11_28/types/group_1019.py | 11 +- .../ghec_v2022_11_28/types/group_1020.py | 16 +- .../ghec_v2022_11_28/types/group_1021.py | 17 +- .../ghec_v2022_11_28/types/group_1022.py | 44 +- .../ghec_v2022_11_28/types/group_1023.py | 40 +- .../ghec_v2022_11_28/types/group_1024.py | 43 +- .../ghec_v2022_11_28/types/group_1025.py | 34 +- .../ghec_v2022_11_28/types/group_1026.py | 28 +- .../ghec_v2022_11_28/types/group_1027.py | 14 +- .../ghec_v2022_11_28/types/group_1028.py | 31 +- .../ghec_v2022_11_28/types/group_1029.py | 26 +- .../ghec_v2022_11_28/types/group_1030.py | 17 +- .../ghec_v2022_11_28/types/group_1031.py | 29 +- .../ghec_v2022_11_28/types/group_1032.py | 35 +- .../ghec_v2022_11_28/types/group_1033.py | 38 +- .../ghec_v2022_11_28/types/group_1034.py | 23 +- .../ghec_v2022_11_28/types/group_1035.py | 16 +- .../ghec_v2022_11_28/types/group_1036.py | 22 +- .../ghec_v2022_11_28/types/group_1037.py | 13 +- .../ghec_v2022_11_28/types/group_1038.py | 13 +- .../ghec_v2022_11_28/types/group_1039.py | 13 +- .../ghec_v2022_11_28/types/group_1040.py | 12 +- .../ghec_v2022_11_28/types/group_1041.py | 9 +- .../ghec_v2022_11_28/types/group_1042.py | 11 +- .../ghec_v2022_11_28/types/group_1043.py | 46 +- .../ghec_v2022_11_28/types/group_1044.py | 48 +- .../ghec_v2022_11_28/types/group_1045.py | 10 +- .../ghec_v2022_11_28/types/group_1046.py | 29 +- .../ghec_v2022_11_28/types/group_1047.py | 33 +- .../ghec_v2022_11_28/types/group_1048.py | 32 +- .../ghec_v2022_11_28/types/group_1049.py | 30 +- .../ghec_v2022_11_28/types/group_1050.py | 19 +- .../ghec_v2022_11_28/types/group_1051.py | 17 +- .../ghec_v2022_11_28/types/group_1052.py | 9 +- .../ghec_v2022_11_28/types/group_1053.py | 13 +- .../ghec_v2022_11_28/types/group_1054.py | 12 +- .../ghec_v2022_11_28/types/group_1055.py | 9 +- .../ghec_v2022_11_28/types/group_1056.py | 11 +- .../ghec_v2022_11_28/types/group_1057.py | 29 +- .../ghec_v2022_11_28/types/group_1058.py | 30 +- .../ghec_v2022_11_28/types/group_1059.py | 11 +- .../ghec_v2022_11_28/types/group_1060.py | 39 +- .../ghec_v2022_11_28/types/group_1061.py | 37 +- .../ghec_v2022_11_28/types/group_1062.py | 6 +- .../ghec_v2022_11_28/types/group_1063.py | 11 +- .../ghec_v2022_11_28/types/group_1064.py | 11 +- .../ghec_v2022_11_28/types/group_1065.py | 19 +- .../ghec_v2022_11_28/types/group_1066.py | 20 +- .../ghec_v2022_11_28/types/group_1067.py | 11 +- .../ghec_v2022_11_28/types/group_1068.py | 19 +- .../ghec_v2022_11_28/types/group_1069.py | 20 +- .../ghec_v2022_11_28/types/group_1070.py | 11 +- .../ghec_v2022_11_28/types/group_1071.py | 12 +- .../ghec_v2022_11_28/types/group_1072.py | 15 +- .../ghec_v2022_11_28/types/group_1073.py | 12 +- .../ghec_v2022_11_28/types/group_1074.py | 8 +- .../ghec_v2022_11_28/types/group_1075.py | 12 +- .../ghec_v2022_11_28/types/group_1076.py | 12 +- .../ghec_v2022_11_28/types/group_1077.py | 15 +- .../ghec_v2022_11_28/types/group_1078.py | 8 +- .../ghec_v2022_11_28/types/group_1079.py | 12 +- .../ghec_v2022_11_28/types/group_1080.py | 10 +- .../ghec_v2022_11_28/types/group_1081.py | 16 +- .../ghec_v2022_11_28/types/group_1082.py | 25 +- .../ghec_v2022_11_28/types/group_1083.py | 18 +- .../ghec_v2022_11_28/types/group_1084.py | 18 +- .../ghec_v2022_11_28/types/group_1085.py | 12 +- .../ghec_v2022_11_28/types/group_1086.py | 12 +- .../ghec_v2022_11_28/types/group_1087.py | 23 +- .../ghec_v2022_11_28/types/group_1088.py | 13 +- .../ghec_v2022_11_28/types/group_1089.py | 12 +- .../ghec_v2022_11_28/types/group_1090.py | 17 +- .../ghec_v2022_11_28/types/group_1091.py | 17 +- .../ghec_v2022_11_28/types/group_1092.py | 11 +- .../ghec_v2022_11_28/types/group_1093.py | 14 +- .../ghec_v2022_11_28/types/group_1094.py | 20 +- .../ghec_v2022_11_28/types/group_1095.py | 17 +- .../ghec_v2022_11_28/types/group_1096.py | 11 +- .../ghec_v2022_11_28/types/group_1097.py | 16 +- .../ghec_v2022_11_28/types/group_1098.py | 27 +- .../ghec_v2022_11_28/types/group_1099.py | 32 +- .../ghec_v2022_11_28/types/group_1100.py | 22 +- .../ghec_v2022_11_28/types/group_1101.py | 14 +- .../ghec_v2022_11_28/types/group_1102.py | 13 +- .../ghec_v2022_11_28/types/group_1103.py | 6 +- .../ghec_v2022_11_28/types/group_1104.py | 11 +- .../ghec_v2022_11_28/types/group_1105.py | 10 +- .../ghec_v2022_11_28/types/group_1106.py | 10 +- .../ghec_v2022_11_28/types/group_1107.py | 31 +- .../ghec_v2022_11_28/types/group_1108.py | 29 +- .../ghec_v2022_11_28/types/group_1109.py | 12 +- .../ghec_v2022_11_28/types/group_1110.py | 10 +- .../ghec_v2022_11_28/types/group_1111.py | 10 +- .../ghec_v2022_11_28/types/group_1112.py | 9 +- .../ghec_v2022_11_28/types/group_1113.py | 18 +- .../ghec_v2022_11_28/types/group_1114.py | 17 +- .../ghec_v2022_11_28/types/group_1115.py | 13 +- .../ghec_v2022_11_28/types/group_1116.py | 17 +- .../ghec_v2022_11_28/types/group_1117.py | 17 +- .../ghec_v2022_11_28/types/group_1118.py | 69 +- .../ghec_v2022_11_28/types/group_1119.py | 10 +- .../ghec_v2022_11_28/types/group_1120.py | 69 +- .../ghec_v2022_11_28/types/group_1121.py | 15 +- .../ghec_v2022_11_28/types/group_1122.py | 13 +- .../ghec_v2022_11_28/types/group_1123.py | 11 +- .../ghec_v2022_11_28/types/group_1124.py | 9 +- .../ghec_v2022_11_28/types/group_1125.py | 12 +- .../ghec_v2022_11_28/types/group_1126.py | 15 +- .../ghec_v2022_11_28/types/group_1127.py | 44 +- .../ghec_v2022_11_28/types/group_1128.py | 28 +- .../ghec_v2022_11_28/types/group_1129.py | 76 +- .../ghec_v2022_11_28/types/group_1130.py | 62 +- .../ghec_v2022_11_28/types/group_1131.py | 18 +- .../ghec_v2022_11_28/types/group_1132.py | 11 +- .../ghec_v2022_11_28/types/group_1133.py | 11 +- .../ghec_v2022_11_28/types/group_1134.py | 8 +- .../ghec_v2022_11_28/types/group_1135.py | 13 +- .../ghec_v2022_11_28/types/group_1136.py | 10 +- .../ghec_v2022_11_28/types/group_1137.py | 12 +- .../ghec_v2022_11_28/types/group_1138.py | 8 +- .../ghec_v2022_11_28/types/group_1139.py | 10 +- .../ghec_v2022_11_28/types/group_1140.py | 10 +- .../ghec_v2022_11_28/types/group_1141.py | 25 +- .../ghec_v2022_11_28/types/group_1142.py | 30 +- .../ghec_v2022_11_28/types/group_1143.py | 22 +- .../ghec_v2022_11_28/types/group_1144.py | 26 +- .../ghec_v2022_11_28/types/group_1145.py | 26 +- .../ghec_v2022_11_28/types/group_1146.py | 35 +- .../ghec_v2022_11_28/types/group_1147.py | 32 +- .../ghec_v2022_11_28/types/group_1148.py | 17 +- .../ghec_v2022_11_28/types/group_1149.py | 11 +- .../ghec_v2022_11_28/types/group_1150.py | 12 +- .../ghec_v2022_11_28/types/group_1151.py | 15 +- .../ghec_v2022_11_28/types/group_1152.py | 15 +- .../ghec_v2022_11_28/types/group_1153.py | 12 +- .../ghec_v2022_11_28/types/group_1154.py | 14 +- .../ghec_v2022_11_28/types/group_1155.py | 11 +- .../ghec_v2022_11_28/types/group_1156.py | 21 +- .../ghec_v2022_11_28/types/group_1157.py | 15 +- .../ghec_v2022_11_28/types/group_1158.py | 13 +- .../ghec_v2022_11_28/types/group_1159.py | 15 +- .../ghec_v2022_11_28/types/group_1160.py | 11 +- .../ghec_v2022_11_28/types/group_1161.py | 12 +- .../ghec_v2022_11_28/types/group_1162.py | 20 +- .../ghec_v2022_11_28/types/group_1163.py | 19 +- .../ghec_v2022_11_28/types/group_1164.py | 37 +- .../ghec_v2022_11_28/types/group_1165.py | 51 +- .../ghec_v2022_11_28/types/group_1166.py | 6 +- .../ghec_v2022_11_28/types/group_1167.py | 17 +- .../ghec_v2022_11_28/types/group_1168.py | 139 +- .../ghec_v2022_11_28/types/group_1169.py | 151 ++ githubkit/versions/latest/models.py | 4 + githubkit/versions/latest/types.py | 4 + .../versions/v2022_11_28/models/__init__.py | 1334 ++++++++-------- .../versions/v2022_11_28/models/group_0058.py | 12 +- .../versions/v2022_11_28/models/group_0074.py | 3 + .../versions/v2022_11_28/models/group_0775.py | 12 +- .../versions/v2022_11_28/models/group_0797.py | 3 + .../versions/v2022_11_28/models/group_0798.py | 61 +- .../versions/v2022_11_28/models/group_0799.py | 65 +- .../versions/v2022_11_28/models/group_0800.py | 19 +- .../versions/v2022_11_28/models/group_0801.py | 17 +- .../versions/v2022_11_28/models/group_0802.py | 27 +- .../versions/v2022_11_28/models/group_0803.py | 29 +- .../versions/v2022_11_28/models/group_0804.py | 25 +- .../versions/v2022_11_28/models/group_0805.py | 10 +- .../versions/v2022_11_28/models/group_0806.py | 43 +- .../versions/v2022_11_28/models/group_0807.py | 40 +- .../versions/v2022_11_28/models/group_0808.py | 31 +- .../versions/v2022_11_28/models/group_0809.py | 15 +- .../versions/v2022_11_28/models/group_0810.py | 18 +- .../versions/v2022_11_28/models/group_0811.py | 19 +- .../versions/v2022_11_28/models/group_0812.py | 18 +- .../versions/v2022_11_28/models/group_0813.py | 18 +- .../versions/v2022_11_28/models/group_0814.py | 18 +- .../versions/v2022_11_28/models/group_0815.py | 18 +- .../versions/v2022_11_28/models/group_0816.py | 18 +- .../versions/v2022_11_28/models/group_0817.py | 18 +- .../versions/v2022_11_28/models/group_0818.py | 18 +- .../versions/v2022_11_28/models/group_0819.py | 34 +- .../versions/v2022_11_28/models/group_0820.py | 41 +- .../versions/v2022_11_28/models/group_0821.py | 31 +- .../versions/v2022_11_28/models/group_0822.py | 15 +- .../versions/v2022_11_28/models/group_0823.py | 49 +- .../versions/v2022_11_28/models/group_0824.py | 27 +- .../versions/v2022_11_28/models/group_0825.py | 37 +- .../versions/v2022_11_28/models/group_0826.py | 28 +- .../versions/v2022_11_28/models/group_0827.py | 17 +- .../versions/v2022_11_28/models/group_0828.py | 37 +- .../versions/v2022_11_28/models/group_0829.py | 42 +- .../versions/v2022_11_28/models/group_0830.py | 20 +- .../versions/v2022_11_28/models/group_0831.py | 45 +- .../versions/v2022_11_28/models/group_0832.py | 47 +- .../versions/v2022_11_28/models/group_0833.py | 17 +- .../versions/v2022_11_28/models/group_0834.py | 22 +- .../versions/v2022_11_28/models/group_0835.py | 18 +- .../versions/v2022_11_28/models/group_0836.py | 15 +- .../versions/v2022_11_28/models/group_0837.py | 26 +- .../versions/v2022_11_28/models/group_0838.py | 20 +- .../versions/v2022_11_28/models/group_0839.py | 24 +- .../versions/v2022_11_28/models/group_0840.py | 15 +- .../versions/v2022_11_28/models/group_0841.py | 17 +- .../versions/v2022_11_28/models/group_0842.py | 21 +- .../versions/v2022_11_28/models/group_0843.py | 41 +- .../versions/v2022_11_28/models/group_0844.py | 42 +- .../versions/v2022_11_28/models/group_0845.py | 128 +- .../versions/v2022_11_28/models/group_0846.py | 187 ++- .../versions/v2022_11_28/models/group_0847.py | 15 +- .../versions/v2022_11_28/models/group_0848.py | 97 +- .../versions/v2022_11_28/models/group_0849.py | 28 +- .../versions/v2022_11_28/models/group_0850.py | 33 +- .../versions/v2022_11_28/models/group_0851.py | 20 +- .../versions/v2022_11_28/models/group_0852.py | 17 +- .../versions/v2022_11_28/models/group_0853.py | 14 +- .../versions/v2022_11_28/models/group_0854.py | 18 +- .../versions/v2022_11_28/models/group_0855.py | 18 +- .../versions/v2022_11_28/models/group_0856.py | 16 +- .../versions/v2022_11_28/models/group_0857.py | 13 +- .../versions/v2022_11_28/models/group_0858.py | 16 +- .../versions/v2022_11_28/models/group_0859.py | 14 +- .../versions/v2022_11_28/models/group_0860.py | 14 +- .../versions/v2022_11_28/models/group_0861.py | 17 +- .../versions/v2022_11_28/models/group_0862.py | 19 +- .../versions/v2022_11_28/models/group_0863.py | 20 +- .../versions/v2022_11_28/models/group_0864.py | 21 +- .../versions/v2022_11_28/models/group_0865.py | 33 +- .../versions/v2022_11_28/models/group_0866.py | 21 +- .../versions/v2022_11_28/models/group_0867.py | 30 +- .../versions/v2022_11_28/models/group_0868.py | 12 +- .../versions/v2022_11_28/models/group_0869.py | 17 +- .../versions/v2022_11_28/models/group_0870.py | 35 +- .../versions/v2022_11_28/models/group_0871.py | 33 +- .../versions/v2022_11_28/models/group_0872.py | 15 +- .../versions/v2022_11_28/models/group_0873.py | 18 +- .../versions/v2022_11_28/models/group_0874.py | 28 +- .../versions/v2022_11_28/models/group_0875.py | 28 +- .../versions/v2022_11_28/models/group_0876.py | 16 +- .../versions/v2022_11_28/models/group_0877.py | 16 +- .../versions/v2022_11_28/models/group_0878.py | 13 +- .../versions/v2022_11_28/models/group_0879.py | 233 +-- .../versions/v2022_11_28/models/group_0880.py | 235 ++- .../versions/v2022_11_28/models/group_0881.py | 19 +- .../versions/v2022_11_28/models/group_0882.py | 21 +- .../versions/v2022_11_28/models/group_0883.py | 22 +- .../versions/v2022_11_28/models/group_0884.py | 12 +- .../versions/v2022_11_28/models/group_0885.py | 23 +- .../versions/v2022_11_28/models/group_0886.py | 23 +- .../versions/v2022_11_28/models/group_0887.py | 27 +- .../versions/v2022_11_28/models/group_0888.py | 21 +- .../versions/v2022_11_28/models/group_0889.py | 11 +- .../versions/v2022_11_28/models/group_0890.py | 17 +- .../versions/v2022_11_28/models/group_0891.py | 12 +- .../versions/v2022_11_28/models/group_0892.py | 14 +- .../versions/v2022_11_28/models/group_0893.py | 10 +- .../versions/v2022_11_28/models/group_0894.py | 21 +- .../versions/v2022_11_28/models/group_0895.py | 20 +- .../versions/v2022_11_28/models/group_0896.py | 8 +- .../versions/v2022_11_28/models/group_0897.py | 19 +- .../versions/v2022_11_28/models/group_0898.py | 24 +- .../versions/v2022_11_28/models/group_0899.py | 24 +- .../versions/v2022_11_28/models/group_0900.py | 16 +- .../versions/v2022_11_28/models/group_0901.py | 14 +- .../versions/v2022_11_28/models/group_0902.py | 40 +- .../versions/v2022_11_28/models/group_0903.py | 52 +- .../versions/v2022_11_28/models/group_0904.py | 40 +- .../versions/v2022_11_28/models/group_0905.py | 55 +- .../versions/v2022_11_28/models/group_0906.py | 50 +- .../versions/v2022_11_28/models/group_0907.py | 85 +- .../versions/v2022_11_28/models/group_0908.py | 90 +- .../versions/v2022_11_28/models/group_0909.py | 219 +-- .../versions/v2022_11_28/models/group_0910.py | 161 +- .../versions/v2022_11_28/models/group_0911.py | 93 +- .../versions/v2022_11_28/models/group_0912.py | 42 +- .../versions/v2022_11_28/models/group_0913.py | 8 +- .../versions/v2022_11_28/models/group_0914.py | 9 +- .../versions/v2022_11_28/models/group_0915.py | 21 +- .../versions/v2022_11_28/models/group_0916.py | 8 +- .../versions/v2022_11_28/models/group_0917.py | 10 +- .../versions/v2022_11_28/models/group_0918.py | 16 +- .../versions/v2022_11_28/models/group_0919.py | 12 +- .../versions/v2022_11_28/models/group_0920.py | 8 +- .../versions/v2022_11_28/models/group_0921.py | 14 +- .../versions/v2022_11_28/models/group_0922.py | 10 +- .../versions/v2022_11_28/models/group_0923.py | 8 +- .../versions/v2022_11_28/models/group_0924.py | 18 +- .../versions/v2022_11_28/models/group_0925.py | 110 +- .../versions/v2022_11_28/models/group_0926.py | 128 +- .../versions/v2022_11_28/models/group_0927.py | 35 +- .../versions/v2022_11_28/models/group_0928.py | 126 +- .../versions/v2022_11_28/models/group_0929.py | 125 +- .../versions/v2022_11_28/models/group_0930.py | 35 +- .../versions/v2022_11_28/models/group_0931.py | 67 +- .../versions/v2022_11_28/models/group_0932.py | 35 +- .../versions/v2022_11_28/models/group_0933.py | 34 +- .../versions/v2022_11_28/models/group_0934.py | 32 +- .../versions/v2022_11_28/models/group_0935.py | 37 +- .../versions/v2022_11_28/models/group_0936.py | 16 +- .../versions/v2022_11_28/models/group_0937.py | 14 +- .../versions/v2022_11_28/models/group_0938.py | 47 +- .../versions/v2022_11_28/models/group_0939.py | 54 +- .../versions/v2022_11_28/models/group_0940.py | 57 +- .../versions/v2022_11_28/models/group_0941.py | 77 +- .../versions/v2022_11_28/models/group_0942.py | 30 +- .../versions/v2022_11_28/models/group_0943.py | 33 +- .../versions/v2022_11_28/models/group_0944.py | 37 +- .../versions/v2022_11_28/models/group_0945.py | 38 +- .../versions/v2022_11_28/models/group_0946.py | 16 +- .../versions/v2022_11_28/models/group_0947.py | 15 +- .../versions/v2022_11_28/models/group_0948.py | 16 +- .../versions/v2022_11_28/models/group_0949.py | 26 +- .../versions/v2022_11_28/models/group_0950.py | 27 +- .../versions/v2022_11_28/models/group_0951.py | 69 +- .../versions/v2022_11_28/models/group_0952.py | 67 +- .../versions/v2022_11_28/models/group_0953.py | 64 +- .../versions/v2022_11_28/models/group_0954.py | 46 +- .../versions/v2022_11_28/models/group_0955.py | 38 +- .../versions/v2022_11_28/models/group_0956.py | 22 +- .../versions/v2022_11_28/models/group_0957.py | 59 +- .../versions/v2022_11_28/models/group_0958.py | 54 +- .../versions/v2022_11_28/models/group_0959.py | 48 +- .../versions/v2022_11_28/models/group_0960.py | 56 +- .../versions/v2022_11_28/models/group_0961.py | 58 +- .../versions/v2022_11_28/models/group_0962.py | 64 +- .../versions/v2022_11_28/models/group_0963.py | 35 +- .../versions/v2022_11_28/models/group_0964.py | 21 +- .../versions/v2022_11_28/models/group_0965.py | 29 +- .../versions/v2022_11_28/models/group_0966.py | 19 +- .../versions/v2022_11_28/models/group_0967.py | 19 +- .../versions/v2022_11_28/models/group_0968.py | 16 +- .../versions/v2022_11_28/models/group_0969.py | 14 +- .../versions/v2022_11_28/models/group_0970.py | 30 +- .../versions/v2022_11_28/models/group_0971.py | 21 +- .../versions/v2022_11_28/models/group_0972.py | 75 +- .../versions/v2022_11_28/models/group_0973.py | 78 +- .../versions/v2022_11_28/models/group_0974.py | 17 +- .../versions/v2022_11_28/models/group_0975.py | 44 +- .../versions/v2022_11_28/models/group_0976.py | 57 +- .../versions/v2022_11_28/models/group_0977.py | 58 +- .../versions/v2022_11_28/models/group_0978.py | 51 +- .../versions/v2022_11_28/models/group_0979.py | 35 +- .../versions/v2022_11_28/models/group_0980.py | 29 +- .../versions/v2022_11_28/models/group_0981.py | 21 +- .../versions/v2022_11_28/models/group_0982.py | 28 +- .../versions/v2022_11_28/models/group_0983.py | 17 +- .../versions/v2022_11_28/models/group_0984.py | 16 +- .../versions/v2022_11_28/models/group_0985.py | 21 +- .../versions/v2022_11_28/models/group_0986.py | 44 +- .../versions/v2022_11_28/models/group_0987.py | 51 +- .../versions/v2022_11_28/models/group_0988.py | 16 +- .../versions/v2022_11_28/models/group_0989.py | 56 +- .../versions/v2022_11_28/models/group_0990.py | 51 +- .../versions/v2022_11_28/models/group_0991.py | 10 +- .../versions/v2022_11_28/models/group_0992.py | 17 +- .../versions/v2022_11_28/models/group_0993.py | 18 +- .../versions/v2022_11_28/models/group_0994.py | 26 +- .../versions/v2022_11_28/models/group_0995.py | 24 +- .../versions/v2022_11_28/models/group_0996.py | 18 +- .../versions/v2022_11_28/models/group_0997.py | 26 +- .../versions/v2022_11_28/models/group_0998.py | 24 +- .../versions/v2022_11_28/models/group_0999.py | 19 +- .../versions/v2022_11_28/models/group_1000.py | 19 +- .../versions/v2022_11_28/models/group_1001.py | 21 +- .../versions/v2022_11_28/models/group_1002.py | 21 +- .../versions/v2022_11_28/models/group_1003.py | 13 +- .../versions/v2022_11_28/models/group_1004.py | 23 +- .../versions/v2022_11_28/models/group_1005.py | 21 +- .../versions/v2022_11_28/models/group_1006.py | 25 +- .../versions/v2022_11_28/models/group_1007.py | 12 +- .../versions/v2022_11_28/models/group_1008.py | 23 +- .../versions/v2022_11_28/models/group_1009.py | 16 +- .../versions/v2022_11_28/models/group_1010.py | 23 +- .../versions/v2022_11_28/models/group_1011.py | 34 +- .../versions/v2022_11_28/models/group_1012.py | 25 +- .../versions/v2022_11_28/models/group_1013.py | 25 +- .../versions/v2022_11_28/models/group_1014.py | 15 +- .../versions/v2022_11_28/models/group_1015.py | 15 +- .../versions/v2022_11_28/models/group_1016.py | 31 +- .../versions/v2022_11_28/models/group_1017.py | 21 +- .../versions/v2022_11_28/models/group_1018.py | 20 +- .../versions/v2022_11_28/models/group_1019.py | 33 +- .../versions/v2022_11_28/models/group_1020.py | 33 +- .../versions/v2022_11_28/models/group_1021.py | 15 +- .../versions/v2022_11_28/models/group_1022.py | 19 +- .../versions/v2022_11_28/models/group_1023.py | 44 +- .../versions/v2022_11_28/models/group_1024.py | 48 +- .../versions/v2022_11_28/models/group_1025.py | 16 +- .../versions/v2022_11_28/models/group_1026.py | 31 +- .../versions/v2022_11_28/models/group_1027.py | 47 +- .../versions/v2022_11_28/models/group_1028.py | 53 +- .../versions/v2022_11_28/models/group_1029.py | 51 +- .../versions/v2022_11_28/models/group_1030.py | 26 +- .../versions/v2022_11_28/models/group_1031.py | 25 +- .../versions/v2022_11_28/models/group_1032.py | 8 +- .../versions/v2022_11_28/models/group_1033.py | 18 +- .../versions/v2022_11_28/models/group_1034.py | 16 +- .../versions/v2022_11_28/models/group_1035.py | 16 +- .../versions/v2022_11_28/models/group_1036.py | 51 +- .../versions/v2022_11_28/models/group_1037.py | 52 +- .../versions/v2022_11_28/models/group_1038.py | 17 +- .../versions/v2022_11_28/models/group_1039.py | 16 +- .../versions/v2022_11_28/models/group_1040.py | 18 +- .../versions/v2022_11_28/models/group_1041.py | 14 +- .../versions/v2022_11_28/models/group_1042.py | 49 +- .../versions/v2022_11_28/models/group_1043.py | 41 +- .../versions/v2022_11_28/models/group_1044.py | 25 +- .../versions/v2022_11_28/models/group_1045.py | 36 +- .../versions/v2022_11_28/models/group_1046.py | 36 +- .../versions/v2022_11_28/models/group_1047.py | 80 +- .../versions/v2022_11_28/models/group_1048.py | 15 +- .../versions/v2022_11_28/models/group_1049.py | 81 +- .../versions/v2022_11_28/models/group_1050.py | 25 +- .../versions/v2022_11_28/models/group_1051.py | 24 +- .../versions/v2022_11_28/models/group_1052.py | 19 +- .../versions/v2022_11_28/models/group_1053.py | 14 +- .../versions/v2022_11_28/models/group_1054.py | 21 +- .../versions/v2022_11_28/models/group_1055.py | 28 +- .../versions/v2022_11_28/models/group_1056.py | 35 +- .../versions/v2022_11_28/models/group_1057.py | 33 +- .../versions/v2022_11_28/models/group_1058.py | 20 +- .../versions/v2022_11_28/models/group_1059.py | 17 +- .../versions/v2022_11_28/models/group_1060.py | 8 +- .../versions/v2022_11_28/models/group_1061.py | 22 +- .../versions/v2022_11_28/models/group_1062.py | 16 +- .../versions/v2022_11_28/models/group_1063.py | 16 +- .../versions/v2022_11_28/models/group_1064.py | 13 +- .../versions/v2022_11_28/models/group_1065.py | 16 +- .../versions/v2022_11_28/models/group_1066.py | 16 +- .../versions/v2022_11_28/models/group_1067.py | 34 +- .../versions/v2022_11_28/models/group_1068.py | 46 +- .../versions/v2022_11_28/models/group_1069.py | 58 +- .../versions/v2022_11_28/models/group_1070.py | 43 +- .../versions/v2022_11_28/models/group_1071.py | 65 +- .../versions/v2022_11_28/models/group_1072.py | 46 +- .../versions/v2022_11_28/models/group_1073.py | 26 +- .../versions/v2022_11_28/models/group_1074.py | 15 +- .../versions/v2022_11_28/models/group_1075.py | 21 +- .../versions/v2022_11_28/models/group_1076.py | 24 +- .../versions/v2022_11_28/models/group_1077.py | 22 +- .../versions/v2022_11_28/models/group_1078.py | 19 +- .../versions/v2022_11_28/models/group_1079.py | 18 +- .../versions/v2022_11_28/models/group_1080.py | 15 +- .../versions/v2022_11_28/models/group_1081.py | 26 +- .../versions/v2022_11_28/models/group_1082.py | 20 +- .../versions/v2022_11_28/models/group_1083.py | 15 +- .../versions/v2022_11_28/models/group_1084.py | 20 +- .../versions/v2022_11_28/models/group_1085.py | 20 +- .../versions/v2022_11_28/models/group_1086.py | 20 +- .../versions/v2022_11_28/models/group_1087.py | 44 +- .../versions/v2022_11_28/models/group_1088.py | 43 +- .../versions/v2022_11_28/models/group_1089.py | 94 +- .../versions/v2022_11_28/models/group_1090.py | 100 +- .../versions/v2022_11_28/models/group_1091.py | 10 +- .../versions/v2022_11_28/models/group_1092.py | 25 +- .../versions/v2022_11_28/models/group_1093.py | 168 +- .../versions/v2022_11_28/models/group_1094.py | 183 +++ .../versions/v2022_11_28/rest/actions.py | 134 +- .../versions/v2022_11_28/rest/activity.py | 18 +- githubkit/versions/v2022_11_28/rest/apps.py | 30 +- githubkit/versions/v2022_11_28/rest/checks.py | 26 +- .../v2022_11_28/rest/code_scanning.py | 26 +- .../v2022_11_28/rest/code_security.py | 143 +- .../versions/v2022_11_28/rest/codespaces.py | 58 +- .../versions/v2022_11_28/rest/copilot.py | 20 +- .../versions/v2022_11_28/rest/dependabot.py | 18 +- .../v2022_11_28/rest/dependency_graph.py | 8 +- githubkit/versions/v2022_11_28/rest/gists.py | 18 +- githubkit/versions/v2022_11_28/rest/git.py | 26 +- .../versions/v2022_11_28/rest/interactions.py | 14 +- githubkit/versions/v2022_11_28/rest/issues.py | 62 +- .../versions/v2022_11_28/rest/markdown.py | 6 +- .../versions/v2022_11_28/rest/migrations.py | 26 +- githubkit/versions/v2022_11_28/rest/oidc.py | 8 +- githubkit/versions/v2022_11_28/rest/orgs.py | 74 +- .../versions/v2022_11_28/rest/projects.py | 50 +- githubkit/versions/v2022_11_28/rest/pulls.py | 58 +- .../versions/v2022_11_28/rest/reactions.py | 38 +- githubkit/versions/v2022_11_28/rest/repos.py | 254 +-- .../v2022_11_28/rest/secret_scanning.py | 6 +- .../v2022_11_28/rest/security_advisories.py | 14 +- githubkit/versions/v2022_11_28/rest/teams.py | 70 +- githubkit/versions/v2022_11_28/rest/users.py | 38 +- .../versions/v2022_11_28/types/__init__.py | 1334 ++++++++-------- .../versions/v2022_11_28/types/group_0074.py | 1 + .../versions/v2022_11_28/types/group_0797.py | 1 + .../versions/v2022_11_28/types/group_0798.py | 32 +- .../versions/v2022_11_28/types/group_0799.py | 34 +- .../versions/v2022_11_28/types/group_0800.py | 13 +- .../versions/v2022_11_28/types/group_0801.py | 13 +- .../versions/v2022_11_28/types/group_0802.py | 22 +- .../versions/v2022_11_28/types/group_0803.py | 21 +- .../versions/v2022_11_28/types/group_0804.py | 18 +- .../versions/v2022_11_28/types/group_0805.py | 6 +- .../versions/v2022_11_28/types/group_0806.py | 30 +- .../versions/v2022_11_28/types/group_0807.py | 27 +- .../versions/v2022_11_28/types/group_0808.py | 18 +- .../versions/v2022_11_28/types/group_0809.py | 11 +- .../versions/v2022_11_28/types/group_0810.py | 13 +- .../versions/v2022_11_28/types/group_0811.py | 13 +- .../versions/v2022_11_28/types/group_0812.py | 12 +- .../versions/v2022_11_28/types/group_0813.py | 12 +- .../versions/v2022_11_28/types/group_0814.py | 12 +- .../versions/v2022_11_28/types/group_0815.py | 12 +- .../versions/v2022_11_28/types/group_0816.py | 12 +- .../versions/v2022_11_28/types/group_0817.py | 12 +- .../versions/v2022_11_28/types/group_0818.py | 12 +- .../versions/v2022_11_28/types/group_0819.py | 28 +- .../versions/v2022_11_28/types/group_0820.py | 27 +- .../versions/v2022_11_28/types/group_0821.py | 18 +- .../versions/v2022_11_28/types/group_0822.py | 11 +- .../versions/v2022_11_28/types/group_0823.py | 32 +- .../versions/v2022_11_28/types/group_0824.py | 18 +- .../versions/v2022_11_28/types/group_0825.py | 25 +- .../versions/v2022_11_28/types/group_0826.py | 18 +- .../versions/v2022_11_28/types/group_0827.py | 12 +- .../versions/v2022_11_28/types/group_0828.py | 14 +- .../versions/v2022_11_28/types/group_0829.py | 18 +- .../versions/v2022_11_28/types/group_0830.py | 15 +- .../versions/v2022_11_28/types/group_0831.py | 18 +- .../versions/v2022_11_28/types/group_0832.py | 20 +- .../versions/v2022_11_28/types/group_0833.py | 10 +- .../versions/v2022_11_28/types/group_0834.py | 11 +- .../versions/v2022_11_28/types/group_0835.py | 10 +- .../versions/v2022_11_28/types/group_0836.py | 11 +- .../versions/v2022_11_28/types/group_0837.py | 12 +- .../versions/v2022_11_28/types/group_0838.py | 9 +- .../versions/v2022_11_28/types/group_0839.py | 14 +- .../versions/v2022_11_28/types/group_0840.py | 9 +- .../versions/v2022_11_28/types/group_0841.py | 12 +- .../versions/v2022_11_28/types/group_0842.py | 14 +- .../versions/v2022_11_28/types/group_0843.py | 18 +- .../versions/v2022_11_28/types/group_0844.py | 19 +- .../versions/v2022_11_28/types/group_0845.py | 62 +- .../versions/v2022_11_28/types/group_0846.py | 108 +- .../versions/v2022_11_28/types/group_0847.py | 10 +- .../versions/v2022_11_28/types/group_0848.py | 82 +- .../versions/v2022_11_28/types/group_0849.py | 16 +- .../versions/v2022_11_28/types/group_0850.py | 18 +- .../versions/v2022_11_28/types/group_0851.py | 11 +- .../versions/v2022_11_28/types/group_0852.py | 11 +- .../versions/v2022_11_28/types/group_0853.py | 10 +- .../versions/v2022_11_28/types/group_0854.py | 13 +- .../versions/v2022_11_28/types/group_0855.py | 12 +- .../versions/v2022_11_28/types/group_0856.py | 12 +- .../versions/v2022_11_28/types/group_0857.py | 8 +- .../versions/v2022_11_28/types/group_0858.py | 10 +- .../versions/v2022_11_28/types/group_0859.py | 9 +- .../versions/v2022_11_28/types/group_0860.py | 9 +- .../versions/v2022_11_28/types/group_0861.py | 12 +- .../versions/v2022_11_28/types/group_0862.py | 13 +- .../versions/v2022_11_28/types/group_0863.py | 11 +- .../versions/v2022_11_28/types/group_0864.py | 11 +- .../versions/v2022_11_28/types/group_0865.py | 27 +- .../versions/v2022_11_28/types/group_0866.py | 17 +- .../versions/v2022_11_28/types/group_0867.py | 26 +- .../versions/v2022_11_28/types/group_0868.py | 9 +- .../versions/v2022_11_28/types/group_0869.py | 10 +- .../versions/v2022_11_28/types/group_0870.py | 27 +- .../versions/v2022_11_28/types/group_0871.py | 26 +- .../versions/v2022_11_28/types/group_0872.py | 8 +- .../versions/v2022_11_28/types/group_0873.py | 13 +- .../versions/v2022_11_28/types/group_0874.py | 16 +- .../versions/v2022_11_28/types/group_0875.py | 16 +- .../versions/v2022_11_28/types/group_0876.py | 12 +- .../versions/v2022_11_28/types/group_0877.py | 11 +- .../versions/v2022_11_28/types/group_0878.py | 11 +- .../versions/v2022_11_28/types/group_0879.py | 131 +- .../versions/v2022_11_28/types/group_0880.py | 134 +- .../versions/v2022_11_28/types/group_0881.py | 14 +- .../versions/v2022_11_28/types/group_0882.py | 13 +- .../versions/v2022_11_28/types/group_0883.py | 15 +- .../versions/v2022_11_28/types/group_0884.py | 10 +- .../versions/v2022_11_28/types/group_0885.py | 16 +- .../versions/v2022_11_28/types/group_0886.py | 16 +- .../versions/v2022_11_28/types/group_0887.py | 16 +- .../versions/v2022_11_28/types/group_0888.py | 11 +- .../versions/v2022_11_28/types/group_0889.py | 6 +- .../versions/v2022_11_28/types/group_0890.py | 11 +- .../versions/v2022_11_28/types/group_0891.py | 10 +- .../versions/v2022_11_28/types/group_0892.py | 12 +- .../versions/v2022_11_28/types/group_0893.py | 8 +- .../versions/v2022_11_28/types/group_0894.py | 15 +- .../versions/v2022_11_28/types/group_0895.py | 13 +- .../versions/v2022_11_28/types/group_0896.py | 6 +- .../versions/v2022_11_28/types/group_0897.py | 14 +- .../versions/v2022_11_28/types/group_0898.py | 15 +- .../versions/v2022_11_28/types/group_0899.py | 15 +- .../versions/v2022_11_28/types/group_0900.py | 13 +- .../versions/v2022_11_28/types/group_0901.py | 12 +- .../versions/v2022_11_28/types/group_0902.py | 36 +- .../versions/v2022_11_28/types/group_0903.py | 40 +- .../versions/v2022_11_28/types/group_0904.py | 29 +- .../versions/v2022_11_28/types/group_0905.py | 45 +- .../versions/v2022_11_28/types/group_0906.py | 41 +- .../versions/v2022_11_28/types/group_0907.py | 67 +- .../versions/v2022_11_28/types/group_0908.py | 69 +- .../versions/v2022_11_28/types/group_0909.py | 129 +- .../versions/v2022_11_28/types/group_0910.py | 100 +- .../versions/v2022_11_28/types/group_0911.py | 56 +- .../versions/v2022_11_28/types/group_0912.py | 28 +- .../versions/v2022_11_28/types/group_0913.py | 6 +- .../versions/v2022_11_28/types/group_0914.py | 7 +- .../versions/v2022_11_28/types/group_0915.py | 13 +- .../versions/v2022_11_28/types/group_0916.py | 6 +- .../versions/v2022_11_28/types/group_0917.py | 8 +- .../versions/v2022_11_28/types/group_0918.py | 12 +- .../versions/v2022_11_28/types/group_0919.py | 8 +- .../versions/v2022_11_28/types/group_0920.py | 8 +- .../versions/v2022_11_28/types/group_0921.py | 12 +- .../versions/v2022_11_28/types/group_0922.py | 6 +- .../versions/v2022_11_28/types/group_0923.py | 8 +- .../versions/v2022_11_28/types/group_0924.py | 17 +- .../versions/v2022_11_28/types/group_0925.py | 59 +- .../versions/v2022_11_28/types/group_0926.py | 78 +- .../versions/v2022_11_28/types/group_0927.py | 30 +- .../versions/v2022_11_28/types/group_0928.py | 84 +- .../versions/v2022_11_28/types/group_0929.py | 83 +- .../versions/v2022_11_28/types/group_0930.py | 30 +- .../versions/v2022_11_28/types/group_0931.py | 48 +- .../versions/v2022_11_28/types/group_0932.py | 27 +- .../versions/v2022_11_28/types/group_0933.py | 27 +- .../versions/v2022_11_28/types/group_0934.py | 19 +- .../versions/v2022_11_28/types/group_0935.py | 18 +- .../versions/v2022_11_28/types/group_0936.py | 10 +- .../versions/v2022_11_28/types/group_0937.py | 10 +- .../versions/v2022_11_28/types/group_0938.py | 22 +- .../versions/v2022_11_28/types/group_0939.py | 21 +- .../versions/v2022_11_28/types/group_0940.py | 25 +- .../versions/v2022_11_28/types/group_0941.py | 34 +- .../versions/v2022_11_28/types/group_0942.py | 27 +- .../versions/v2022_11_28/types/group_0943.py | 26 +- .../versions/v2022_11_28/types/group_0944.py | 29 +- .../versions/v2022_11_28/types/group_0945.py | 28 +- .../versions/v2022_11_28/types/group_0946.py | 9 +- .../versions/v2022_11_28/types/group_0947.py | 10 +- .../versions/v2022_11_28/types/group_0948.py | 11 +- .../versions/v2022_11_28/types/group_0949.py | 16 +- .../versions/v2022_11_28/types/group_0950.py | 17 +- .../versions/v2022_11_28/types/group_0951.py | 44 +- .../versions/v2022_11_28/types/group_0952.py | 40 +- .../versions/v2022_11_28/types/group_0953.py | 43 +- .../versions/v2022_11_28/types/group_0954.py | 34 +- .../versions/v2022_11_28/types/group_0955.py | 28 +- .../versions/v2022_11_28/types/group_0956.py | 14 +- .../versions/v2022_11_28/types/group_0957.py | 31 +- .../versions/v2022_11_28/types/group_0958.py | 26 +- .../versions/v2022_11_28/types/group_0959.py | 17 +- .../versions/v2022_11_28/types/group_0960.py | 29 +- .../versions/v2022_11_28/types/group_0961.py | 35 +- .../versions/v2022_11_28/types/group_0962.py | 38 +- .../versions/v2022_11_28/types/group_0963.py | 23 +- .../versions/v2022_11_28/types/group_0964.py | 16 +- .../versions/v2022_11_28/types/group_0965.py | 22 +- .../versions/v2022_11_28/types/group_0966.py | 13 +- .../versions/v2022_11_28/types/group_0967.py | 13 +- .../versions/v2022_11_28/types/group_0968.py | 13 +- .../versions/v2022_11_28/types/group_0969.py | 12 +- .../versions/v2022_11_28/types/group_0970.py | 9 +- .../versions/v2022_11_28/types/group_0971.py | 11 +- .../versions/v2022_11_28/types/group_0972.py | 46 +- .../versions/v2022_11_28/types/group_0973.py | 48 +- .../versions/v2022_11_28/types/group_0974.py | 10 +- .../versions/v2022_11_28/types/group_0975.py | 29 +- .../versions/v2022_11_28/types/group_0976.py | 33 +- .../versions/v2022_11_28/types/group_0977.py | 32 +- .../versions/v2022_11_28/types/group_0978.py | 30 +- .../versions/v2022_11_28/types/group_0979.py | 19 +- .../versions/v2022_11_28/types/group_0980.py | 17 +- .../versions/v2022_11_28/types/group_0981.py | 9 +- .../versions/v2022_11_28/types/group_0982.py | 13 +- .../versions/v2022_11_28/types/group_0983.py | 12 +- .../versions/v2022_11_28/types/group_0984.py | 9 +- .../versions/v2022_11_28/types/group_0985.py | 11 +- .../versions/v2022_11_28/types/group_0986.py | 29 +- .../versions/v2022_11_28/types/group_0987.py | 30 +- .../versions/v2022_11_28/types/group_0988.py | 11 +- .../versions/v2022_11_28/types/group_0989.py | 39 +- .../versions/v2022_11_28/types/group_0990.py | 37 +- .../versions/v2022_11_28/types/group_0991.py | 6 +- .../versions/v2022_11_28/types/group_0992.py | 11 +- .../versions/v2022_11_28/types/group_0993.py | 11 +- .../versions/v2022_11_28/types/group_0994.py | 19 +- .../versions/v2022_11_28/types/group_0995.py | 20 +- .../versions/v2022_11_28/types/group_0996.py | 11 +- .../versions/v2022_11_28/types/group_0997.py | 19 +- .../versions/v2022_11_28/types/group_0998.py | 20 +- .../versions/v2022_11_28/types/group_0999.py | 11 +- .../versions/v2022_11_28/types/group_1000.py | 12 +- .../versions/v2022_11_28/types/group_1001.py | 15 +- .../versions/v2022_11_28/types/group_1002.py | 12 +- .../versions/v2022_11_28/types/group_1003.py | 8 +- .../versions/v2022_11_28/types/group_1004.py | 12 +- .../versions/v2022_11_28/types/group_1005.py | 12 +- .../versions/v2022_11_28/types/group_1006.py | 15 +- .../versions/v2022_11_28/types/group_1007.py | 8 +- .../versions/v2022_11_28/types/group_1008.py | 12 +- .../versions/v2022_11_28/types/group_1009.py | 10 +- .../versions/v2022_11_28/types/group_1010.py | 16 +- .../versions/v2022_11_28/types/group_1011.py | 24 +- .../versions/v2022_11_28/types/group_1012.py | 18 +- .../versions/v2022_11_28/types/group_1013.py | 18 +- .../versions/v2022_11_28/types/group_1014.py | 10 +- .../versions/v2022_11_28/types/group_1015.py | 10 +- .../versions/v2022_11_28/types/group_1016.py | 22 +- .../versions/v2022_11_28/types/group_1017.py | 13 +- .../versions/v2022_11_28/types/group_1018.py | 12 +- .../versions/v2022_11_28/types/group_1019.py | 17 +- .../versions/v2022_11_28/types/group_1020.py | 17 +- .../versions/v2022_11_28/types/group_1021.py | 11 +- .../versions/v2022_11_28/types/group_1022.py | 14 +- .../versions/v2022_11_28/types/group_1023.py | 20 +- .../versions/v2022_11_28/types/group_1024.py | 17 +- .../versions/v2022_11_28/types/group_1025.py | 11 +- .../versions/v2022_11_28/types/group_1026.py | 16 +- .../versions/v2022_11_28/types/group_1027.py | 27 +- .../versions/v2022_11_28/types/group_1028.py | 32 +- .../versions/v2022_11_28/types/group_1029.py | 22 +- .../versions/v2022_11_28/types/group_1030.py | 14 +- .../versions/v2022_11_28/types/group_1031.py | 13 +- .../versions/v2022_11_28/types/group_1032.py | 6 +- .../versions/v2022_11_28/types/group_1033.py | 11 +- .../versions/v2022_11_28/types/group_1034.py | 10 +- .../versions/v2022_11_28/types/group_1035.py | 10 +- .../versions/v2022_11_28/types/group_1036.py | 31 +- .../versions/v2022_11_28/types/group_1037.py | 29 +- .../versions/v2022_11_28/types/group_1038.py | 12 +- .../versions/v2022_11_28/types/group_1039.py | 10 +- .../versions/v2022_11_28/types/group_1040.py | 10 +- .../versions/v2022_11_28/types/group_1041.py | 9 +- .../versions/v2022_11_28/types/group_1042.py | 18 +- .../versions/v2022_11_28/types/group_1043.py | 17 +- .../versions/v2022_11_28/types/group_1044.py | 13 +- .../versions/v2022_11_28/types/group_1045.py | 17 +- .../versions/v2022_11_28/types/group_1046.py | 17 +- .../versions/v2022_11_28/types/group_1047.py | 69 +- .../versions/v2022_11_28/types/group_1048.py | 10 +- .../versions/v2022_11_28/types/group_1049.py | 69 +- .../versions/v2022_11_28/types/group_1050.py | 15 +- .../versions/v2022_11_28/types/group_1051.py | 13 +- .../versions/v2022_11_28/types/group_1052.py | 11 +- .../versions/v2022_11_28/types/group_1053.py | 9 +- .../versions/v2022_11_28/types/group_1054.py | 12 +- .../versions/v2022_11_28/types/group_1055.py | 15 +- .../versions/v2022_11_28/types/group_1056.py | 16 +- .../versions/v2022_11_28/types/group_1057.py | 18 +- .../versions/v2022_11_28/types/group_1058.py | 11 +- .../versions/v2022_11_28/types/group_1059.py | 11 +- .../versions/v2022_11_28/types/group_1060.py | 8 +- .../versions/v2022_11_28/types/group_1061.py | 13 +- .../versions/v2022_11_28/types/group_1062.py | 10 +- .../versions/v2022_11_28/types/group_1063.py | 12 +- .../versions/v2022_11_28/types/group_1064.py | 8 +- .../versions/v2022_11_28/types/group_1065.py | 10 +- .../versions/v2022_11_28/types/group_1066.py | 10 +- .../versions/v2022_11_28/types/group_1067.py | 17 +- .../versions/v2022_11_28/types/group_1068.py | 22 +- .../versions/v2022_11_28/types/group_1069.py | 26 +- .../versions/v2022_11_28/types/group_1070.py | 26 +- .../versions/v2022_11_28/types/group_1071.py | 35 +- .../versions/v2022_11_28/types/group_1072.py | 32 +- .../versions/v2022_11_28/types/group_1073.py | 17 +- .../versions/v2022_11_28/types/group_1074.py | 11 +- .../versions/v2022_11_28/types/group_1075.py | 12 +- .../versions/v2022_11_28/types/group_1076.py | 15 +- .../versions/v2022_11_28/types/group_1077.py | 15 +- .../versions/v2022_11_28/types/group_1078.py | 12 +- .../versions/v2022_11_28/types/group_1079.py | 14 +- .../versions/v2022_11_28/types/group_1080.py | 11 +- .../versions/v2022_11_28/types/group_1081.py | 21 +- .../versions/v2022_11_28/types/group_1082.py | 15 +- .../versions/v2022_11_28/types/group_1083.py | 13 +- .../versions/v2022_11_28/types/group_1084.py | 15 +- .../versions/v2022_11_28/types/group_1085.py | 11 +- .../versions/v2022_11_28/types/group_1086.py | 12 +- .../versions/v2022_11_28/types/group_1087.py | 20 +- .../versions/v2022_11_28/types/group_1088.py | 19 +- .../versions/v2022_11_28/types/group_1089.py | 37 +- .../versions/v2022_11_28/types/group_1090.py | 51 +- .../versions/v2022_11_28/types/group_1091.py | 6 +- .../versions/v2022_11_28/types/group_1092.py | 17 +- .../versions/v2022_11_28/types/group_1093.py | 139 +- .../versions/v2022_11_28/types/group_1094.py | 151 ++ 1280 files changed, 21501 insertions(+), 21089 deletions(-) create mode 100644 githubkit/versions/ghec_v2022_11_28/models/group_1169.py create mode 100644 githubkit/versions/ghec_v2022_11_28/types/group_1169.py create mode 100644 githubkit/versions/v2022_11_28/models/group_1094.py create mode 100644 githubkit/versions/v2022_11_28/types/group_1094.py diff --git a/codegen/templates/rest/_param.py.jinja b/codegen/templates/rest/_param.py.jinja index 61dc3c7b4..92e45afa3 100644 --- a/codegen/templates/rest/_param.py.jinja +++ b/codegen/templates/rest/_param.py.jinja @@ -46,7 +46,7 @@ headers: Optional[Dict[str, str]] = None, {{ header_params(endpoint) }} {{ cookie_params(endpoint) }} *, -data: Literal[UNSET] = UNSET, +data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, {{ body_params(model, endpoint.param_names) }} {% endmacro %} diff --git a/codegen/templates/rest/client.py.jinja b/codegen/templates/rest/client.py.jinja index 4e15038cb..988dca9ae 100644 --- a/codegen/templates/rest/client.py.jinja +++ b/codegen/templates/rest/client.py.jinja @@ -14,7 +14,7 @@ from typing import TYPE_CHECKING, Dict, Literal, Optional, overload from pydantic import BaseModel, Field -from githubkit.typing import Missing +from githubkit.typing import Missing, UnsetType from githubkit.utils import exclude_unset, UNSET from githubkit.compat import model_dump, type_validate_python diff --git a/githubkit/core.py b/githubkit/core.py index ee947d1e1..134a46ff8 100644 --- a/githubkit/core.py +++ b/githubkit/core.py @@ -10,7 +10,6 @@ Type, Union, Generic, - Literal, TypeVar, Optional, Generator, @@ -28,8 +27,17 @@ from .compat import to_jsonable_python from .config import Config, get_config from .auth import BaseAuthStrategy, TokenAuthStrategy, UnauthAuthStrategy +from .exception import ( + RequestError, + RequestFailed, + RequestTimeout, + GitHubException, + PrimaryRateLimitExceeded, + SecondaryRateLimitExceeded, +) from .typing import ( URLTypes, + UnsetType, CookieTypes, HeaderTypes, ContentTypes, @@ -37,14 +45,6 @@ QueryParamTypes, RetryDecisionFunc, ) -from .exception import ( - RequestError, - RequestFailed, - RequestTimeout, - GitHubException, - PrimaryRateLimitExceeded, - SecondaryRateLimitExceeded, -) T = TypeVar("T") A = TypeVar("A", bound="BaseAuthStrategy") @@ -332,14 +332,14 @@ def _check( def _check( self, response: httpx.Response, - response_model: Literal[UNSET] = UNSET, + response_model: UnsetType = UNSET, error_models: Optional[Dict[str, type]] = None, ) -> Response[Any]: ... def _check( self, response: httpx.Response, - response_model: Union[Type[T], Literal[UNSET]] = UNSET, + response_model: Union[Type[T], UnsetType] = UNSET, error_models: Optional[Dict[str, type]] = None, ) -> Union[Response[T], Response[Any]]: if response.is_error: @@ -446,7 +446,7 @@ def request( json: Optional[Any] = None, headers: Optional[HeaderTypes] = None, cookies: Optional[CookieTypes] = None, - response_model: Literal[UNSET] = UNSET, + response_model: UnsetType = UNSET, error_models: Optional[Dict[str, type]] = None, ) -> Response[Any]: ... @@ -462,7 +462,7 @@ def request( json: Optional[Any] = None, headers: Optional[HeaderTypes] = None, cookies: Optional[CookieTypes] = None, - response_model: Union[Type[T], Literal[UNSET]] = UNSET, + response_model: Union[Type[T], UnsetType] = UNSET, error_models: Optional[Dict[str, type]] = None, ) -> Union[Response[T], Response[Any]]: retry_count: int = 0 @@ -523,7 +523,7 @@ async def arequest( json: Optional[Any] = None, headers: Optional[HeaderTypes] = None, cookies: Optional[CookieTypes] = None, - response_model: Literal[UNSET] = UNSET, + response_model: UnsetType = UNSET, error_models: Optional[Dict[str, type]] = None, ) -> Response[Any]: ... @@ -539,7 +539,7 @@ async def arequest( json: Optional[Any] = None, headers: Optional[HeaderTypes] = None, cookies: Optional[CookieTypes] = None, - response_model: Union[Type[T], Literal[UNSET]] = UNSET, + response_model: Union[Type[T], UnsetType] = UNSET, error_models: Optional[Dict[str, type]] = None, ) -> Union[Response[T], Response[Any]]: retry_count: int = 0 diff --git a/githubkit/rest/__init__.py b/githubkit/rest/__init__.py index ed6e19930..1fe6c5bc6 100644 --- a/githubkit/rest/__init__.py +++ b/githubkit/rest/__init__.py @@ -4586,6 +4586,9 @@ from githubkit.versions.v2022_11_28.models import ( OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200 as OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200, ) + from githubkit.versions.v2022_11_28.models import ( + OrgsOrgCodeSecurityConfigurationsDetachDeleteBody as OrgsOrgCodeSecurityConfigurationsDetachDeleteBody, + ) from githubkit.versions.v2022_11_28.models import ( OrgsOrgCopilotBillingSelectedTeamsPostResponse201 as OrgsOrgCopilotBillingSelectedTeamsPostResponse201, ) @@ -12218,6 +12221,7 @@ "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial", "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope", "OrgsOrgCodeSecurityConfigurationsPostBody", + "OrgsOrgCodeSecurityConfigurationsDetachDeleteBody", "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody", "OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody", "OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody", diff --git a/githubkit/typing.py b/githubkit/typing.py index b176c124b..ef3227201 100644 --- a/githubkit/typing.py +++ b/githubkit/typing.py @@ -17,7 +17,7 @@ import httpx from pydantic import Field -from .utils import UNSET +from .utils import Unset from .compat import PYDANTIC_V2 from .exception import GitHubException @@ -76,9 +76,11 @@ def _validate_unique_list(value: List[H]) -> List[H]: else: # pragma: pydantic-v1 UniqueList: TypeAlias = Annotated[List[H], Field(unique_items=True)] # type: ignore +UnsetType: TypeAlias = Literal[Unset._UNSET] + # if the property is not required, we allow it to have the value null. # See https://github.com/yanyongyu/githubkit/issues/47 -Missing: TypeAlias = Union[Literal[UNSET], T, None] +Missing: TypeAlias = Union[UnsetType, T, None] class RetryOption(NamedTuple): diff --git a/githubkit/versions/ghec_v2022_11_28/models/__init__.py b/githubkit/versions/ghec_v2022_11_28/models/__init__.py index df3d7096d..8cd903a60 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/__init__.py +++ b/githubkit/versions/ghec_v2022_11_28/models/__init__.py @@ -58,7 +58,7 @@ from .group_0314 import Language as Language from .group_0382 import UserName as UserName from .group_0383 import ScimUser as ScimUser - from .group_0973 import Workflow as Workflow + from .group_0974 import Workflow as Workflow from .group_0009 import ScimError as ScimError from .group_0022 import Classroom as Classroom from .group_0064 import Milestone as Milestone @@ -164,7 +164,7 @@ from .group_0677 import WebhookPublic as WebhookPublic from .group_0768 import WebhookStatus as WebhookStatus from .group_0827 import GistsPostBody as GistsPostBody - from .group_1142 import UserPatchBody as UserPatchBody + from .group_1143 import UserPatchBody as UserPatchBody from .group_0002 import GlobalAdvisory as GlobalAdvisory from .group_0014 import AppPermissions as AppPermissions from .group_0049 import EnterpriseTeam as EnterpriseTeam @@ -207,7 +207,7 @@ from .group_0441 import WebhooksProject as WebhooksProject from .group_0452 import WebhooksRelease as WebhooksRelease from .group_0844 import RunnerGroupsOrg as RunnerGroupsOrg - from .group_1168 import SigstoreBundle0 as SigstoreBundle0 + from .group_1169 import SigstoreBundle0 as SigstoreBundle0 from .group_0008 import HookDeliveryItem as HookDeliveryItem from .group_0043 import SimpleRepository as SimpleRepository from .group_0068 import EventPropPayload as EventPropPayload @@ -246,9 +246,9 @@ from .group_0638 import WebhookPageBuild as WebhookPageBuild from .group_0834 import MarkdownPostBody as MarkdownPostBody from .group_0839 import OrgsOrgPatchBody as OrgsOrgPatchBody - from .group_1025 import DependabotSecret as DependabotSecret - from .group_1146 import CodespacesSecret as CodespacesSecret - from .group_1160 import UserKeysPostBody as UserKeysPostBody + from .group_1026 import DependabotSecret as DependabotSecret + from .group_1147 import CodespacesSecret as CodespacesSecret + from .group_1161 import UserKeysPostBody as UserKeysPostBody from .group_0018 import InstallationToken as InstallationToken from .group_0035 import RunnerApplication as RunnerApplication from .group_0060 import GetAllCostCenters as GetAllCostCenters @@ -275,7 +275,7 @@ from .group_0416 import WebhooksDeployKey as WebhooksDeployKey from .group_0430 import WebhooksMilestone as WebhooksMilestone from .group_0777 import WebhookTeamEdited as WebhookTeamEdited - from .group_1164 import UserReposPostBody as UserReposPostBody + from .group_1165 import UserReposPostBody as UserReposPostBody from .group_0019 import ScopedInstallation as ScopedInstallation from .group_0029 import OrganizationSimple as OrganizationSimple from .group_0037 import AnnouncementBanner as AnnouncementBanner @@ -345,8 +345,8 @@ from .group_0612 import WebhookMemberEdited as WebhookMemberEdited from .group_0644 import WebhookPingPropHook as WebhookPingPropHook from .group_0779 import WebhookWatchStarted as WebhookWatchStarted - from .group_0874 import CodespacesOrgSecret as CodespacesOrgSecret - from .group_1156 import UserGpgKeysPostBody as UserGpgKeysPostBody + from .group_0875 import CodespacesOrgSecret as CodespacesOrgSecret + from .group_1157 import UserGpgKeysPostBody as UserGpgKeysPostBody from .group_0020 import AuthorizationPropApp as AuthorizationPropApp from .group_0049 import OrganizationPropPlan as OrganizationPropPlan from .group_0056 import GetLicenseSyncStatus as GetLicenseSyncStatus @@ -386,12 +386,12 @@ from .group_0802 import EmojisGetResponse200 as EmojisGetResponse200 from .group_0829 import GistsGistIdPatchBody as GistsGistIdPatchBody from .group_0835 import NotificationsPutBody as NotificationsPutBody - from .group_0892 import OrgsOrgHooksPostBody as OrgsOrgHooksPostBody - from .group_0914 import OrgsOrgReposPostBody as OrgsOrgReposPostBody - from .group_0917 import OrgsOrgTeamsPostBody as OrgsOrgTeamsPostBody - from .group_1015 import RepoCodespacesSecret as RepoCodespacesSecret - from .group_1130 import TeamsTeamIdPatchBody as TeamsTeamIdPatchBody - from .group_1163 import UserProjectsPostBody as UserProjectsPostBody + from .group_0893 import OrgsOrgHooksPostBody as OrgsOrgHooksPostBody + from .group_0915 import OrgsOrgReposPostBody as OrgsOrgReposPostBody + from .group_0918 import OrgsOrgTeamsPostBody as OrgsOrgTeamsPostBody + from .group_1016 import RepoCodespacesSecret as RepoCodespacesSecret + from .group_1131 import TeamsTeamIdPatchBody as TeamsTeamIdPatchBody + from .group_1164 import UserProjectsPostBody as UserProjectsPostBody from .group_0004 import ValidationErrorSimple as ValidationErrorSimple from .group_0025 import ServerStatisticsItems as ServerStatisticsItems from .group_0039 import AuditLogEventPropData as AuditLogEventPropData @@ -477,8 +477,8 @@ from .group_0794 import AppHookConfigPatchBody as AppHookConfigPatchBody from .group_0806 import RunnerGroupsEnterprise as RunnerGroupsEnterprise from .group_0827 import GistsPostBodyPropFiles as GistsPostBodyPropFiles - from .group_1033 import DeploymentBranchPolicy as DeploymentBranchPolicy - from .group_1162 import UserMigrationsPostBody as UserMigrationsPostBody + from .group_1034 import DeploymentBranchPolicy as DeploymentBranchPolicy + from .group_1163 import UserMigrationsPostBody as UserMigrationsPostBody from .group_0011 import HookDeliveryPropRequest as HookDeliveryPropRequest from .group_0025 import ServerStatisticsActions as ServerStatisticsActions from .group_0097 import CredentialAuthorization as CredentialAuthorization @@ -518,9 +518,9 @@ from .group_0730 import WebhookRepositoryImport as WebhookRepositoryImport from .group_0768 import WebhookStatusPropCommit as WebhookStatusPropCommit from .group_0780 import WebhookWorkflowDispatch as WebhookWorkflowDispatch - from .group_0910 import OrgsOrgProjectsPostBody as OrgsOrgProjectsPostBody - from .group_0915 import OrgsOrgRulesetsPostBody as OrgsOrgRulesetsPostBody - from .group_0950 import ReposOwnerRepoPatchBody as ReposOwnerRepoPatchBody + from .group_0911 import OrgsOrgProjectsPostBody as OrgsOrgProjectsPostBody + from .group_0916 import OrgsOrgRulesetsPostBody as OrgsOrgRulesetsPostBody + from .group_0951 import ReposOwnerRepoPatchBody as ReposOwnerRepoPatchBody from .group_0002 import VulnerabilityPropPackage as VulnerabilityPropPackage from .group_0011 import HookDeliveryPropResponse as HookDeliveryPropResponse from .group_0024 import ClassroomAssignmentGrade as ClassroomAssignmentGrade @@ -563,7 +563,7 @@ from .group_0733 import WebhookRepositoryRenamed as WebhookRepositoryRenamed from .group_0762 import WebhookSponsorshipEdited as WebhookSponsorshipEdited from .group_0787 import WebhookWorkflowJobQueued as WebhookWorkflowJobQueued - from .group_1154 import UserEmailsPostBodyOneof0 as UserEmailsPostBodyOneof0 + from .group_1155 import UserEmailsPostBodyOneof0 as UserEmailsPostBodyOneof0 from .group_0017 import RepositoryPropPermissions as RepositoryPropPermissions from .group_0021 import SimpleClassroomRepository as SimpleClassroomRepository from .group_0023 import SimpleClassroomAssignment as SimpleClassroomAssignment @@ -608,7 +608,7 @@ from .group_0788 import WebhookWorkflowJobWaiting as WebhookWorkflowJobWaiting from .group_0828 import GistsGistIdGetResponse403 as GistsGistIdGetResponse403 from .group_0855 import OrganizationActionsSecret as OrganizationActionsSecret - from .group_0900 import OrgsOrgMigrationsPostBody as OrgsOrgMigrationsPostBody + from .group_0901 import OrgsOrgMigrationsPostBody as OrgsOrgMigrationsPostBody from .group_0005 import IntegrationPropPermissions as IntegrationPropPermissions from .group_0066 import IssuePropLabelsItemsOneof1 as IssuePropLabelsItemsOneof1 from .group_0074 import GistCommitPropChangeStatus as GistCommitPropChangeStatus @@ -667,12 +667,12 @@ from .group_0692 import WebhookPullRequestReopened as WebhookPullRequestReopened from .group_0708 import WebhookPullRequestUnlocked as WebhookPullRequestUnlocked from .group_0757 import WebhookSecurityAndAnalysis as WebhookSecurityAndAnalysis - from .group_0897 import OrgsOrgInvitationsPostBody as OrgsOrgInvitationsPostBody - from .group_0945 import ProjectsProjectIdPatchBody as ProjectsProjectIdPatchBody - from .group_1072 import ReposOwnerRepoKeysPostBody as ReposOwnerRepoKeysPostBody - from .group_1155 import UserEmailsDeleteBodyOneof0 as UserEmailsDeleteBodyOneof0 - from .group_1165 import UserSocialAccountsPostBody as UserSocialAccountsPostBody - from .group_1167 import UserSshSigningKeysPostBody as UserSshSigningKeysPostBody + from .group_0898 import OrgsOrgInvitationsPostBody as OrgsOrgInvitationsPostBody + from .group_0946 import ProjectsProjectIdPatchBody as ProjectsProjectIdPatchBody + from .group_1073 import ReposOwnerRepoKeysPostBody as ReposOwnerRepoKeysPostBody + from .group_1156 import UserEmailsDeleteBodyOneof0 as UserEmailsDeleteBodyOneof0 + from .group_1166 import UserSocialAccountsPostBody as UserSocialAccountsPostBody + from .group_1168 import UserSshSigningKeysPostBody as UserSshSigningKeysPostBody from .group_0002 import GlobalAdvisoryPropCwesItems as GlobalAdvisoryPropCwesItems from .group_0022 import SimpleClassroomOrganization as SimpleClassroomOrganization from .group_0023 import ClassroomAcceptedAssignment as ClassroomAcceptedAssignment @@ -722,12 +722,12 @@ from .group_0830 import GistsGistIdCommentsPostBody as GistsGistIdCommentsPostBody from .group_0836 import NotificationsPutResponse202 as NotificationsPutResponse202 from .group_0859 import OrganizationActionsVariable as OrganizationActionsVariable - from .group_0893 import OrgsOrgHooksHookIdPatchBody as OrgsOrgHooksHookIdPatchBody - from .group_1041 import ReposOwnerRepoForksPostBody as ReposOwnerRepoForksPostBody - from .group_1048 import ReposOwnerRepoHooksPostBody as ReposOwnerRepoHooksPostBody - from .group_1051 import ReposOwnerRepoImportPutBody as ReposOwnerRepoImportPutBody - from .group_1094 import ReposOwnerRepoPullsPostBody as ReposOwnerRepoPullsPostBody - from .group_1124 import ReposOwnerRepoTopicsPutBody as ReposOwnerRepoTopicsPutBody + from .group_0894 import OrgsOrgHooksHookIdPatchBody as OrgsOrgHooksHookIdPatchBody + from .group_1042 import ReposOwnerRepoForksPostBody as ReposOwnerRepoForksPostBody + from .group_1049 import ReposOwnerRepoHooksPostBody as ReposOwnerRepoHooksPostBody + from .group_1052 import ReposOwnerRepoImportPutBody as ReposOwnerRepoImportPutBody + from .group_1095 import ReposOwnerRepoPullsPostBody as ReposOwnerRepoPullsPostBody + from .group_1125 import ReposOwnerRepoTopicsPutBody as ReposOwnerRepoTopicsPutBody from .group_0028 import ActionsEnterprisePermissions as ActionsEnterprisePermissions from .group_0039 import AuditLogEventPropConfigItems as AuditLogEventPropConfigItems from .group_0039 import AuditLogEventPropEventsItems as AuditLogEventPropEventsItems @@ -790,15 +790,15 @@ from .group_0777 import WebhookTeamEditedPropChanges as WebhookTeamEditedPropChanges from .group_0784 import WebhookWorkflowJobInProgress as WebhookWorkflowJobInProgress from .group_0790 import WebhookWorkflowRunInProgress as WebhookWorkflowRunInProgress - from .group_0888 import OrganizationDependabotSecret as OrganizationDependabotSecret - from .group_1057 import ReposOwnerRepoIssuesPostBody as ReposOwnerRepoIssuesPostBody - from .group_1073 import ReposOwnerRepoLabelsPostBody as ReposOwnerRepoLabelsPostBody - from .group_1076 import ReposOwnerRepoMergesPostBody as ReposOwnerRepoMergesPostBody - from .group_1143 import UserCodespacesGetResponse200 as UserCodespacesGetResponse200 - from .group_1144 import UserCodespacesPostBodyOneof0 as UserCodespacesPostBodyOneof0 - from .group_1145 import UserCodespacesPostBodyOneof1 as UserCodespacesPostBodyOneof1 - from .group_1153 import UserEmailVisibilityPatchBody as UserEmailVisibilityPatchBody - from .group_1166 import UserSocialAccountsDeleteBody as UserSocialAccountsDeleteBody + from .group_0889 import OrganizationDependabotSecret as OrganizationDependabotSecret + from .group_1058 import ReposOwnerRepoIssuesPostBody as ReposOwnerRepoIssuesPostBody + from .group_1074 import ReposOwnerRepoLabelsPostBody as ReposOwnerRepoLabelsPostBody + from .group_1077 import ReposOwnerRepoMergesPostBody as ReposOwnerRepoMergesPostBody + from .group_1144 import UserCodespacesGetResponse200 as UserCodespacesGetResponse200 + from .group_1145 import UserCodespacesPostBodyOneof0 as UserCodespacesPostBodyOneof0 + from .group_1146 import UserCodespacesPostBodyOneof1 as UserCodespacesPostBodyOneof1 + from .group_1154 import UserEmailVisibilityPatchBody as UserEmailVisibilityPatchBody + from .group_1167 import UserSocialAccountsDeleteBody as UserSocialAccountsDeleteBody from .group_0054 import ( DependabotAlertWithRepository as DependabotAlertWithRepository, ) @@ -919,16 +919,16 @@ from .group_0840 import ( ActionsCacheUsageByRepository as ActionsCacheUsageByRepository, ) - from .group_0918 import ( + from .group_0919 import ( OrgsOrgTeamsTeamSlugPatchBody as OrgsOrgTeamsTeamSlugPatchBody, ) - from .group_1044 import ( + from .group_1045 import ( ReposOwnerRepoGitRefsPostBody as ReposOwnerRepoGitRefsPostBody, ) - from .group_1046 import ( + from .group_1047 import ( ReposOwnerRepoGitTagsPostBody as ReposOwnerRepoGitTagsPostBody, ) - from .group_1052 import ( + from .group_1053 import ( ReposOwnerRepoImportPatchBody as ReposOwnerRepoImportPatchBody, ) from .group_0002 import ( @@ -1072,31 +1072,31 @@ from .group_0768 import ( WebhookStatusPropBranchesItems as WebhookStatusPropBranchesItems, ) - from .group_0871 import ( + from .group_0872 import ( OrgsOrgCodespacesAccessPutBody as OrgsOrgCodespacesAccessPutBody, ) - from .group_0892 import ( + from .group_0893 import ( OrgsOrgHooksPostBodyPropConfig as OrgsOrgHooksPostBodyPropConfig, ) - from .group_1042 import ( + from .group_1043 import ( ReposOwnerRepoGitBlobsPostBody as ReposOwnerRepoGitBlobsPostBody, ) - from .group_1047 import ( + from .group_1048 import ( ReposOwnerRepoGitTreesPostBody as ReposOwnerRepoGitTreesPostBody, ) - from .group_1092 import ( + from .group_1093 import ( ReposOwnerRepoProjectsPostBody as ReposOwnerRepoProjectsPostBody, ) - from .group_1113 import ( + from .group_1114 import ( ReposOwnerRepoReleasesPostBody as ReposOwnerRepoReleasesPostBody, ) - from .group_1118 import ( + from .group_1119 import ( ReposOwnerRepoRulesetsPostBody as ReposOwnerRepoRulesetsPostBody, ) - from .group_1125 import ( + from .group_1126 import ( ReposOwnerRepoTransferPostBody as ReposOwnerRepoTransferPostBody, ) - from .group_1131 import ( + from .group_1132 import ( TeamsTeamIdDiscussionsPostBody as TeamsTeamIdDiscussionsPostBody, ) from .group_0039 import ( @@ -1189,25 +1189,25 @@ from .group_0860 import ( OrgsOrgActionsVariablesPostBody as OrgsOrgActionsVariablesPostBody, ) - from .group_0870 import ( + from .group_0871 import ( OrgsOrgCodespacesGetResponse200 as OrgsOrgCodespacesGetResponse200, ) - from .group_0916 import ( + from .group_0917 import ( OrgsOrgRulesetsRulesetIdPutBody as OrgsOrgRulesetsRulesetIdPutBody, ) - from .group_0949 import ( + from .group_0950 import ( ReposOwnerRepoDeleteResponse403 as ReposOwnerRepoDeleteResponse403, ) - from .group_0979 import ( + from .group_0980 import ( ReposOwnerRepoAutolinksPostBody as ReposOwnerRepoAutolinksPostBody, ) - from .group_1157 import ( + from .group_1158 import ( UserInstallationsGetResponse200 as UserInstallationsGetResponse200, ) - from .group_1161 import ( + from .group_1162 import ( UserMembershipsOrgsOrgPatchBody as UserMembershipsOrgsOrgPatchBody, ) - from .group_1168 import ( + from .group_1169 import ( SigstoreBundle0PropDsseEnvelope as SigstoreBundle0PropDsseEnvelope, ) from .group_0039 import ( @@ -1348,52 +1348,52 @@ from .group_0841 import ( OrgsOrgActionsPermissionsPutBody as OrgsOrgActionsPermissionsPutBody, ) - from .group_0901 import ( + from .group_0902 import ( OrgsOrgOrganizationRolesPostBody as OrgsOrgOrganizationRolesPostBody, ) - from .group_0911 import ( + from .group_0912 import ( OrgsOrgPropertiesSchemaPatchBody as OrgsOrgPropertiesSchemaPatchBody, ) - from .group_0913 import ( + from .group_0914 import ( OrgsOrgPropertiesValuesPatchBody as OrgsOrgPropertiesValuesPatchBody, ) - from .group_0938 import ( + from .group_0939 import ( ProjectsColumnsColumnIdPatchBody as ProjectsColumnsColumnIdPatchBody, ) - from .group_0948 import ( + from .group_0949 import ( ProjectsProjectIdColumnsPostBody as ProjectsProjectIdColumnsPostBody, ) - from .group_1011 import ( + from .group_1012 import ( ReposOwnerRepoCodespacesPostBody as ReposOwnerRepoCodespacesPostBody, ) - from .group_1031 import ( + from .group_1032 import ( ReposOwnerRepoDispatchesPostBody as ReposOwnerRepoDispatchesPostBody, ) - from .group_1043 import ( + from .group_1044 import ( ReposOwnerRepoGitCommitsPostBody as ReposOwnerRepoGitCommitsPostBody, ) - from .group_1054 import ( + from .group_1055 import ( ReposOwnerRepoImportLfsPatchBody as ReposOwnerRepoImportLfsPatchBody, ) - from .group_1077 import ( + from .group_1078 import ( ReposOwnerRepoMilestonesPostBody as ReposOwnerRepoMilestonesPostBody, ) - from .group_1082 import ( + from .group_1083 import ( ReposOwnerRepoPagesPutBodyAnyof0 as ReposOwnerRepoPagesPutBodyAnyof0, ) - from .group_1083 import ( + from .group_1084 import ( ReposOwnerRepoPagesPutBodyAnyof1 as ReposOwnerRepoPagesPutBodyAnyof1, ) - from .group_1084 import ( + from .group_1085 import ( ReposOwnerRepoPagesPutBodyAnyof2 as ReposOwnerRepoPagesPutBodyAnyof2, ) - from .group_1085 import ( + from .group_1086 import ( ReposOwnerRepoPagesPutBodyAnyof3 as ReposOwnerRepoPagesPutBodyAnyof3, ) - from .group_1086 import ( + from .group_1087 import ( ReposOwnerRepoPagesPutBodyAnyof4 as ReposOwnerRepoPagesPutBodyAnyof4, ) - from .group_1140 import ( + from .group_1141 import ( TeamsTeamIdReposOwnerRepoPutBody as TeamsTeamIdReposOwnerRepoPutBody, ) from .group_0025 import ( @@ -1498,40 +1498,40 @@ from .group_0798 import ( ApplicationsClientIdTokenPostBody as ApplicationsClientIdTokenPostBody, ) - from .group_0894 import ( + from .group_0895 import ( OrgsOrgHooksHookIdConfigPatchBody as OrgsOrgHooksHookIdConfigPatchBody, ) - from .group_0899 import ( + from .group_0900 import ( OrgsOrgMembershipsUsernamePutBody as OrgsOrgMembershipsUsernamePutBody, ) - from .group_0946 import ( + from .group_0947 import ( ProjectsProjectIdPatchResponse403 as ProjectsProjectIdPatchResponse403, ) - from .group_1002 import ( + from .group_1003 import ( ReposOwnerRepoCheckSuitesPostBody as ReposOwnerRepoCheckSuitesPostBody, ) - from .group_1022 import ( + from .group_1023 import ( ReposOwnerRepoContentsPathPutBody as ReposOwnerRepoContentsPathPutBody, ) - from .group_1028 import ( + from .group_1029 import ( ReposOwnerRepoDeploymentsPostBody as ReposOwnerRepoDeploymentsPostBody, ) - from .group_1045 import ( + from .group_1046 import ( ReposOwnerRepoGitRefsRefPatchBody as ReposOwnerRepoGitRefsRefPatchBody, ) - from .group_1074 import ( + from .group_1075 import ( ReposOwnerRepoLabelsNamePatchBody as ReposOwnerRepoLabelsNamePatchBody, ) - from .group_1088 import ( + from .group_1089 import ( ReposOwnerRepoPagesPostBodyAnyof0 as ReposOwnerRepoPagesPostBodyAnyof0, ) - from .group_1089 import ( + from .group_1090 import ( ReposOwnerRepoPagesPostBodyAnyof1 as ReposOwnerRepoPagesPostBodyAnyof1, ) - from .group_1121 import ( + from .group_1122 import ( ReposOwnerRepoStatusesShaPostBody as ReposOwnerRepoStatusesShaPostBody, ) - from .group_1122 import ( + from .group_1123 import ( ReposOwnerRepoSubscriptionPutBody as ReposOwnerRepoSubscriptionPutBody, ) from .group_0002 import ( @@ -1681,19 +1681,19 @@ from .group_0845 import ( OrgsOrgActionsRunnerGroupsPostBody as OrgsOrgActionsRunnerGroupsPostBody, ) - from .group_0895 import ( + from .group_0896 import ( OrgsOrgInstallationsGetResponse200 as OrgsOrgInstallationsGetResponse200, ) - from .group_0944 import ( + from .group_0945 import ( ProjectsProjectIdDeleteResponse403 as ProjectsProjectIdDeleteResponse403, ) - from .group_0976 import ( + from .group_0977 import ( ReposOwnerRepoAttestationsPostBody as ReposOwnerRepoAttestationsPostBody, ) - from .group_1049 import ( + from .group_1050 import ( ReposOwnerRepoHooksHookIdPatchBody as ReposOwnerRepoHooksHookIdPatchBody, ) - from .group_1079 import ( + from .group_1080 import ( ReposOwnerRepoNotificationsPutBody as ReposOwnerRepoNotificationsPutBody, ) from .group_0011 import ( @@ -1822,22 +1822,22 @@ from .group_0855 import ( OrgsOrgActionsSecretsGetResponse200 as OrgsOrgActionsSecretsGetResponse200, ) - from .group_0908 import ( + from .group_0909 import ( OrgsOrgPersonalAccessTokensPostBody as OrgsOrgPersonalAccessTokensPostBody, ) - from .group_0933 import ( + from .group_0934 import ( ProjectsColumnsCardsCardIdPatchBody as ProjectsColumnsCardsCardIdPatchBody, ) - from .group_1075 import ( + from .group_1076 import ( ReposOwnerRepoMergeUpstreamPostBody as ReposOwnerRepoMergeUpstreamPostBody, ) - from .group_1127 import ( + from .group_1128 import ( ScimV2OrganizationsOrgUsersPostBody as ScimV2OrganizationsOrgUsersPostBody, ) - from .group_1138 import ( + from .group_1139 import ( TeamsTeamIdProjectsProjectIdPutBody as TeamsTeamIdProjectsProjectIdPutBody, ) - from .group_1146 import ( + from .group_1147 import ( UserCodespacesSecretsGetResponse200 as UserCodespacesSecretsGetResponse200, ) from .group_0031 import ( @@ -1960,16 +1960,16 @@ from .group_0861 import ( OrgsOrgActionsVariablesNamePatchBody as OrgsOrgActionsVariablesNamePatchBody, ) - from .group_0942 import ( + from .group_0943 import ( ProjectsColumnsColumnIdMovesPostBody as ProjectsColumnsColumnIdMovesPostBody, ) - from .group_1023 import ( + from .group_1024 import ( ReposOwnerRepoContentsPathDeleteBody as ReposOwnerRepoContentsPathDeleteBody, ) - from .group_1123 import ( + from .group_1124 import ( ReposOwnerRepoTagsProtectionPostBody as ReposOwnerRepoTagsProtectionPostBody, ) - from .group_1150 import ( + from .group_1151 import ( UserCodespacesCodespaceNamePatchBody as UserCodespacesCodespaceNamePatchBody, ) from .group_0025 import ( @@ -2077,22 +2077,22 @@ from .group_0859 import ( OrgsOrgActionsVariablesGetResponse200 as OrgsOrgActionsVariablesGetResponse200, ) - from .group_0893 import ( + from .group_0894 import ( OrgsOrgHooksHookIdPatchBodyPropConfig as OrgsOrgHooksHookIdPatchBodyPropConfig, ) - from .group_0997 import ( + from .group_0998 import ( ReposOwnerRepoCheckRunsPostBodyOneof0 as ReposOwnerRepoCheckRunsPostBodyOneof0, ) - from .group_0998 import ( + from .group_0999 import ( ReposOwnerRepoCheckRunsPostBodyOneof1 as ReposOwnerRepoCheckRunsPostBodyOneof1, ) - from .group_1048 import ( + from .group_1049 import ( ReposOwnerRepoHooksPostBodyPropConfig as ReposOwnerRepoHooksPostBodyPropConfig, ) - from .group_1087 import ( + from .group_1088 import ( ReposOwnerRepoPagesPostBodyPropSource as ReposOwnerRepoPagesPostBodyPropSource, ) - from .group_1137 import ( + from .group_1138 import ( TeamsTeamIdMembershipsUsernamePutBody as TeamsTeamIdMembershipsUsernamePutBody, ) from .group_0025 import ( @@ -2242,28 +2242,28 @@ from .group_0856 import ( OrgsOrgActionsSecretsSecretNamePutBody as OrgsOrgActionsSecretsSecretNamePutBody, ) - from .group_0874 import ( + from .group_0875 import ( OrgsOrgCodespacesSecretsGetResponse200 as OrgsOrgCodespacesSecretsGetResponse200, ) - from .group_0888 import ( + from .group_0889 import ( OrgsOrgDependabotSecretsGetResponse200 as OrgsOrgDependabotSecretsGetResponse200, ) - from .group_0971 import ( + from .group_0972 import ( ReposOwnerRepoActionsVariablesPostBody as ReposOwnerRepoActionsVariablesPostBody, ) - from .group_1010 import ( + from .group_1011 import ( ReposOwnerRepoCodespacesGetResponse200 as ReposOwnerRepoCodespacesGetResponse200, ) - from .group_1090 import ( + from .group_1091 import ( ReposOwnerRepoPagesDeploymentsPostBody as ReposOwnerRepoPagesDeploymentsPostBody, ) - from .group_1097 import ( + from .group_1098 import ( ReposOwnerRepoPullsPullNumberPatchBody as ReposOwnerRepoPullsPullNumberPatchBody, ) - from .group_1119 import ( + from .group_1120 import ( ReposOwnerRepoRulesetsRulesetIdPutBody as ReposOwnerRepoRulesetsRulesetIdPutBody, ) - from .group_1147 import ( + from .group_1148 import ( UserCodespacesSecretsSecretNamePutBody as UserCodespacesSecretsSecretNamePutBody, ) from .group_0053 import ( @@ -2344,28 +2344,28 @@ from .group_0801 import ( ApplicationsClientIdTokenScopedPostBody as ApplicationsClientIdTokenScopedPostBody, ) - from .group_0902 import ( + from .group_0903 import ( OrgsOrgOrganizationRolesRoleIdPatchBody as OrgsOrgOrganizationRolesRoleIdPatchBody, ) - from .group_0919 import ( + from .group_0920 import ( OrgsOrgTeamsTeamSlugDiscussionsPostBody as OrgsOrgTeamsTeamSlugDiscussionsPostBody, ) - from .group_0934 import ( + from .group_0935 import ( ProjectsColumnsCardsCardIdMovesPostBody as ProjectsColumnsCardsCardIdMovesPostBody, ) - from .group_0956 import ( + from .group_0957 import ( ReposOwnerRepoActionsPermissionsPutBody as ReposOwnerRepoActionsPermissionsPutBody, ) - from .group_0961 import ( + from .group_0962 import ( ReposOwnerRepoActionsRunsGetResponse200 as ReposOwnerRepoActionsRunsGetResponse200, ) - from .group_1046 import ( + from .group_1047 import ( ReposOwnerRepoGitTagsPostBodyPropTagger as ReposOwnerRepoGitTagsPostBodyPropTagger, ) - from .group_1093 import ( + from .group_1094 import ( ReposOwnerRepoPropertiesValuesPatchBody as ReposOwnerRepoPropertiesValuesPatchBody, ) - from .group_1168 import ( + from .group_1169 import ( SigstoreBundle0PropVerificationMaterial as SigstoreBundle0PropVerificationMaterial, ) from .group_0160 import ( @@ -2473,34 +2473,34 @@ from .group_0844 import ( OrgsOrgActionsRunnerGroupsGetResponse200 as OrgsOrgActionsRunnerGroupsGetResponse200, ) - from .group_0878 import ( + from .group_0879 import ( OrgsOrgCopilotBillingSeatsGetResponse200 as OrgsOrgCopilotBillingSeatsGetResponse200, ) - from .group_0909 import ( + from .group_0910 import ( OrgsOrgPersonalAccessTokensPatIdPostBody as OrgsOrgPersonalAccessTokensPatIdPostBody, ) - from .group_0914 import ( + from .group_0915 import ( OrgsOrgReposPostBodyPropCustomProperties as OrgsOrgReposPostBodyPropCustomProperties, ) - from .group_0931 import ( + from .group_0932 import ( OrgsOrgSecurityProductEnablementPostBody as OrgsOrgSecurityProductEnablementPostBody, ) - from .group_1009 import ( + from .group_1010 import ( ReposOwnerRepoCodeScanningSarifsPostBody as ReposOwnerRepoCodeScanningSarifsPostBody, ) - from .group_1018 import ( + from .group_1019 import ( ReposOwnerRepoCommentsCommentIdPatchBody as ReposOwnerRepoCommentsCommentIdPatchBody, ) - from .group_1029 import ( + from .group_1030 import ( ReposOwnerRepoDeploymentsPostResponse202 as ReposOwnerRepoDeploymentsPostResponse202, ) - from .group_1050 import ( + from .group_1051 import ( ReposOwnerRepoHooksHookIdConfigPatchBody as ReposOwnerRepoHooksHookIdConfigPatchBody, ) - from .group_1060 import ( + from .group_1061 import ( ReposOwnerRepoIssuesIssueNumberPatchBody as ReposOwnerRepoIssuesIssueNumberPatchBody, ) - from .group_1116 import ( + from .group_1117 import ( ReposOwnerRepoReleasesReleaseIdPatchBody as ReposOwnerRepoReleasesReleaseIdPatchBody, ) from .group_0025 import ( @@ -2650,34 +2650,34 @@ from .group_0865 import ( OrgsOrgCodeSecurityConfigurationsPostBody as OrgsOrgCodeSecurityConfigurationsPostBody, ) - from .group_0875 import ( + from .group_0876 import ( OrgsOrgCodespacesSecretsSecretNamePutBody as OrgsOrgCodespacesSecretsSecretNamePutBody, ) - from .group_0889 import ( + from .group_0890 import ( OrgsOrgDependabotSecretsSecretNamePutBody as OrgsOrgDependabotSecretsSecretNamePutBody, ) - from .group_0929 import ( + from .group_0930 import ( OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody as OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody, ) - from .group_0977 import ( + from .group_0978 import ( ReposOwnerRepoAttestationsPostResponse201 as ReposOwnerRepoAttestationsPostResponse201, ) - from .group_0996 import ( + from .group_0997 import ( ReposOwnerRepoCheckRunsPostBodyPropOutput as ReposOwnerRepoCheckRunsPostBodyPropOutput, ) - from .group_1014 import ( + from .group_1015 import ( ReposOwnerRepoCodespacesNewGetResponse200 as ReposOwnerRepoCodespacesNewGetResponse200, ) - from .group_1080 import ( + from .group_1081 import ( ReposOwnerRepoNotificationsPutResponse202 as ReposOwnerRepoNotificationsPutResponse202, ) - from .group_1101 import ( + from .group_1102 import ( ReposOwnerRepoPullsPullNumberMergePutBody as ReposOwnerRepoPullsPullNumberMergePutBody, ) - from .group_1141 import ( + from .group_1142 import ( TeamsTeamIdTeamSyncGroupMappingsPatchBody as TeamsTeamIdTeamSyncGroupMappingsPatchBody, ) - from .group_1159 import ( + from .group_1160 import ( UserInteractionLimitsGetResponse200Anyof1 as UserInteractionLimitsGetResponse200Anyof1, ) from .group_0025 import ( @@ -2821,52 +2821,52 @@ from .group_0853 import ( OrgsOrgActionsRunnersRunnerIdLabelsPutBody as OrgsOrgActionsRunnersRunnerIdLabelsPutBody, ) - from .group_0879 import ( + from .group_0880 import ( OrgsOrgCopilotBillingSelectedTeamsPostBody as OrgsOrgCopilotBillingSelectedTeamsPostBody, ) - from .group_0883 import ( + from .group_0884 import ( OrgsOrgCopilotBillingSelectedUsersPostBody as OrgsOrgCopilotBillingSelectedUsersPostBody, ) - from .group_0887 import ( + from .group_0888 import ( OrgsOrgCustomRepositoryRolesGetResponse200 as OrgsOrgCustomRepositoryRolesGetResponse200, ) - from .group_0903 import ( + from .group_0904 import ( OrgsOrgOutsideCollaboratorsUsernamePutBody as OrgsOrgOutsideCollaboratorsUsernamePutBody, ) - from .group_0906 import ( + from .group_0907 import ( OrgsOrgPersonalAccessTokenRequestsPostBody as OrgsOrgPersonalAccessTokenRequestsPostBody, ) - from .group_0939 import ( + from .group_0940 import ( ProjectsColumnsColumnIdCardsPostBodyOneof0 as ProjectsColumnsColumnIdCardsPostBodyOneof0, ) - from .group_0940 import ( + from .group_0941 import ( ProjectsColumnsColumnIdCardsPostBodyOneof1 as ProjectsColumnsColumnIdCardsPostBodyOneof1, ) - from .group_0957 import ( + from .group_0958 import ( ReposOwnerRepoActionsRunnersGetResponse200 as ReposOwnerRepoActionsRunnersGetResponse200, ) - from .group_0968 import ( + from .group_0969 import ( ReposOwnerRepoActionsSecretsGetResponse200 as ReposOwnerRepoActionsSecretsGetResponse200, ) - from .group_0995 import ( + from .group_0996 import ( ReposOwnerRepoBranchesBranchRenamePostBody as ReposOwnerRepoBranchesBranchRenamePostBody, ) - from .group_1017 import ( + from .group_1018 import ( ReposOwnerRepoCollaboratorsUsernamePutBody as ReposOwnerRepoCollaboratorsUsernamePutBody, ) - from .group_1043 import ( + from .group_1044 import ( ReposOwnerRepoGitCommitsPostBodyPropAuthor as ReposOwnerRepoGitCommitsPostBodyPropAuthor, ) - from .group_1070 import ( + from .group_1071 import ( ReposOwnerRepoIssuesIssueNumberLockPutBody as ReposOwnerRepoIssuesIssueNumberLockPutBody, ) - from .group_1081 import ( + from .group_1082 import ( ReposOwnerRepoPagesPutBodyPropSourceAnyof1 as ReposOwnerRepoPagesPutBodyPropSourceAnyof1, ) - from .group_1139 import ( + from .group_1140 import ( TeamsTeamIdProjectsProjectIdPutResponse403 as TeamsTeamIdProjectsProjectIdPutResponse403, ) - from .group_1152 import ( + from .group_1153 import ( UserCodespacesCodespaceNamePublishPostBody as UserCodespacesCodespaceNamePublishPostBody, ) from .group_0025 import ( @@ -2998,40 +2998,40 @@ from .group_0854 import ( OrgsOrgActionsRunnersRunnerIdLabelsPostBody as OrgsOrgActionsRunnersRunnerIdLabelsPostBody, ) - from .group_0925 import ( + from .group_0926 import ( OrgsOrgTeamsTeamSlugExternalGroupsPatchBody as OrgsOrgTeamsTeamSlugExternalGroupsPatchBody, ) - from .group_0932 import ( + from .group_0933 import ( ProjectsColumnsCardsCardIdDeleteResponse403 as ProjectsColumnsCardsCardIdDeleteResponse403, ) - from .group_0941 import ( + from .group_0942 import ( ProjectsColumnsColumnIdCardsPostResponse503 as ProjectsColumnsColumnIdCardsPostResponse503, ) - from .group_0943 import ( + from .group_0944 import ( ProjectsColumnsColumnIdMovesPostResponse201 as ProjectsColumnsColumnIdMovesPostResponse201, ) - from .group_0952 import ( + from .group_0953 import ( ReposOwnerRepoActionsJobsJobIdRerunPostBody as ReposOwnerRepoActionsJobsJobIdRerunPostBody, ) - from .group_0966 import ( + from .group_0967 import ( ReposOwnerRepoActionsRunsRunIdRerunPostBody as ReposOwnerRepoActionsRunsRunIdRerunPostBody, ) - from .group_0972 import ( + from .group_0973 import ( ReposOwnerRepoActionsVariablesNamePatchBody as ReposOwnerRepoActionsVariablesNamePatchBody, ) - from .group_1022 import ( + from .group_1023 import ( ReposOwnerRepoContentsPathPutBodyPropAuthor as ReposOwnerRepoContentsPathPutBodyPropAuthor, ) - from .group_1047 import ( + from .group_1048 import ( ReposOwnerRepoGitTreesPostBodyPropTreeItems as ReposOwnerRepoGitTreesPostBodyPropTreeItems, ) - from .group_1115 import ( + from .group_1116 import ( ReposOwnerRepoReleasesGenerateNotesPostBody as ReposOwnerRepoReleasesGenerateNotesPostBody, ) - from .group_1127 import ( + from .group_1128 import ( ScimV2OrganizationsOrgUsersPostBodyPropName as ScimV2OrganizationsOrgUsersPostBodyPropName, ) - from .group_1145 import ( + from .group_1146 import ( UserCodespacesPostBodyOneof1PropPullRequest as UserCodespacesPostBodyOneof1PropPullRequest, ) from .group_0053 import ( @@ -3130,43 +3130,43 @@ from .group_0843 import ( OrgsOrgActionsPermissionsRepositoriesPutBody as OrgsOrgActionsPermissionsRepositoriesPutBody, ) - from .group_0872 import ( + from .group_0873 import ( OrgsOrgCodespacesAccessSelectedUsersPostBody as OrgsOrgCodespacesAccessSelectedUsersPostBody, ) - from .group_0881 import ( + from .group_0882 import ( OrgsOrgCopilotBillingSelectedTeamsDeleteBody as OrgsOrgCopilotBillingSelectedTeamsDeleteBody, ) - from .group_0885 import ( + from .group_0886 import ( OrgsOrgCopilotBillingSelectedUsersDeleteBody as OrgsOrgCopilotBillingSelectedUsersDeleteBody, ) - from .group_0896 import ( + from .group_0897 import ( OrgsOrgInteractionLimitsGetResponse200Anyof1 as OrgsOrgInteractionLimitsGetResponse200Anyof1, ) - from .group_0927 import ( + from .group_0928 import ( OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody as OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody, ) - from .group_0951 import ( + from .group_0952 import ( ReposOwnerRepoActionsArtifactsGetResponse200 as ReposOwnerRepoActionsArtifactsGetResponse200, ) - from .group_0970 import ( + from .group_0971 import ( ReposOwnerRepoActionsVariablesGetResponse200 as ReposOwnerRepoActionsVariablesGetResponse200, ) - from .group_0973 import ( + from .group_0974 import ( ReposOwnerRepoActionsWorkflowsGetResponse200 as ReposOwnerRepoActionsWorkflowsGetResponse200, ) - from .group_0976 import ( + from .group_0977 import ( ReposOwnerRepoAttestationsPostBodyPropBundle as ReposOwnerRepoAttestationsPostBodyPropBundle, ) - from .group_1053 import ( + from .group_1054 import ( ReposOwnerRepoImportAuthorsAuthorIdPatchBody as ReposOwnerRepoImportAuthorsAuthorIdPatchBody, ) - from .group_1107 import ( + from .group_1108 import ( ReposOwnerRepoPullsPullNumberReviewsPostBody as ReposOwnerRepoPullsPullNumberReviewsPostBody, ) - from .group_1114 import ( + from .group_1115 import ( ReposOwnerRepoReleasesAssetsAssetIdPatchBody as ReposOwnerRepoReleasesAssetsAssetIdPatchBody, ) - from .group_1128 import ( + from .group_1129 import ( ScimV2OrganizationsOrgUsersScimUserIdPutBody as ScimV2OrganizationsOrgUsersScimUserIdPutBody, ) from .group_0025 import ( @@ -3250,31 +3250,31 @@ from .group_0759 import ( WebhookSecurityAndAnalysisPropChangesPropFrom as WebhookSecurityAndAnalysisPropChangesPropFrom, ) - from .group_0947 import ( + from .group_0948 import ( ProjectsProjectIdCollaboratorsUsernamePutBody as ProjectsProjectIdCollaboratorsUsernamePutBody, ) - from .group_0969 import ( + from .group_0970 import ( ReposOwnerRepoActionsSecretsSecretNamePutBody as ReposOwnerRepoActionsSecretsSecretNamePutBody, ) - from .group_0980 import ( + from .group_0981 import ( ReposOwnerRepoBranchesBranchProtectionPutBody as ReposOwnerRepoBranchesBranchProtectionPutBody, ) - from .group_1003 import ( + from .group_1004 import ( ReposOwnerRepoCheckSuitesPreferencesPatchBody as ReposOwnerRepoCheckSuitesPreferencesPatchBody, ) - from .group_1015 import ( + from .group_1016 import ( ReposOwnerRepoCodespacesSecretsGetResponse200 as ReposOwnerRepoCodespacesSecretsGetResponse200, ) - from .group_1025 import ( + from .group_1026 import ( ReposOwnerRepoDependabotSecretsGetResponse200 as ReposOwnerRepoDependabotSecretsGetResponse200, ) - from .group_1043 import ( + from .group_1044 import ( ReposOwnerRepoGitCommitsPostBodyPropCommitter as ReposOwnerRepoGitCommitsPostBodyPropCommitter, ) - from .group_1095 import ( + from .group_1096 import ( ReposOwnerRepoPullsCommentsCommentIdPatchBody as ReposOwnerRepoPullsCommentsCommentIdPatchBody, ) - from .group_1099 import ( + from .group_1100 import ( ReposOwnerRepoPullsPullNumberCommentsPostBody as ReposOwnerRepoPullsPullNumberCommentsPostBody, ) from .group_0413 import ( @@ -3373,49 +3373,49 @@ from .group_0864 import ( OrgsOrgAttestationsSubjectDigestGetResponse200 as OrgsOrgAttestationsSubjectDigestGetResponse200, ) - from .group_0873 import ( + from .group_0874 import ( OrgsOrgCodespacesAccessSelectedUsersDeleteBody as OrgsOrgCodespacesAccessSelectedUsersDeleteBody, ) - from .group_0898 import ( + from .group_0899 import ( OrgsOrgMembersUsernameCodespacesGetResponse200 as OrgsOrgMembersUsernameCodespacesGetResponse200, ) - from .group_0926 import ( + from .group_0927 import ( OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody as OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody, ) - from .group_0935 import ( + from .group_0936 import ( ProjectsColumnsCardsCardIdMovesPostResponse201 as ProjectsColumnsCardsCardIdMovesPostResponse201, ) - from .group_0936 import ( + from .group_0937 import ( ProjectsColumnsCardsCardIdMovesPostResponse403 as ProjectsColumnsCardsCardIdMovesPostResponse403, ) - from .group_0937 import ( + from .group_0938 import ( ProjectsColumnsCardsCardIdMovesPostResponse503 as ProjectsColumnsCardsCardIdMovesPostResponse503, ) - from .group_0950 import ( + from .group_0951 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysis as ReposOwnerRepoPatchBodyPropSecurityAndAnalysis, ) - from .group_1013 import ( + from .group_1014 import ( ReposOwnerRepoCodespacesMachinesGetResponse200 as ReposOwnerRepoCodespacesMachinesGetResponse200, ) - from .group_1020 import ( + from .group_1021 import ( ReposOwnerRepoCommitsCommitShaCommentsPostBody as ReposOwnerRepoCommitsCommitShaCommentsPostBody, ) - from .group_1022 import ( + from .group_1023 import ( ReposOwnerRepoContentsPathPutBodyPropCommitter as ReposOwnerRepoContentsPathPutBodyPropCommitter, ) - from .group_1023 import ( + from .group_1024 import ( ReposOwnerRepoContentsPathDeleteBodyPropAuthor as ReposOwnerRepoContentsPathDeleteBodyPropAuthor, ) - from .group_1056 import ( + from .group_1057 import ( ReposOwnerRepoInvitationsInvitationIdPatchBody as ReposOwnerRepoInvitationsInvitationIdPatchBody, ) - from .group_1058 import ( + from .group_1059 import ( ReposOwnerRepoIssuesCommentsCommentIdPatchBody as ReposOwnerRepoIssuesCommentsCommentIdPatchBody, ) - from .group_1126 import ( + from .group_1127 import ( ReposTemplateOwnerTemplateRepoGeneratePostBody as ReposTemplateOwnerTemplateRepoGeneratePostBody, ) - from .group_1129 import ( + from .group_1130 import ( ScimV2OrganizationsOrgUsersScimUserIdPatchBody as ScimV2OrganizationsOrgUsersScimUserIdPatchBody, ) from .group_0025 import ( @@ -3526,19 +3526,19 @@ from .group_0837 import ( NotificationsThreadsThreadIdSubscriptionPutBody as NotificationsThreadsThreadIdSubscriptionPutBody, ) - from .group_0996 import ( + from .group_0997 import ( ReposOwnerRepoCheckRunsPostBodyPropActionsItems as ReposOwnerRepoCheckRunsPostBodyPropActionsItems, ) - from .group_1021 import ( + from .group_1022 import ( ReposOwnerRepoCommitsRefCheckRunsGetResponse200 as ReposOwnerRepoCommitsRefCheckRunsGetResponse200, ) - from .group_1063 import ( + from .group_1064 import ( ReposOwnerRepoIssuesIssueNumberCommentsPostBody as ReposOwnerRepoIssuesIssueNumberCommentsPostBody, ) - from .group_1098 import ( + from .group_1099 import ( ReposOwnerRepoPullsPullNumberCodespacesPostBody as ReposOwnerRepoPullsPullNumberCodespacesPostBody, ) - from .group_1132 import ( + from .group_1133 import ( TeamsTeamIdDiscussionsDiscussionNumberPatchBody as TeamsTeamIdDiscussionsDiscussionNumberPatchBody, ) from .group_0081 import ( @@ -3643,52 +3643,52 @@ from .group_0846 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody as OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody, ) - from .group_0912 import ( + from .group_0913 import ( OrgsOrgPropertiesSchemaCustomPropertyNamePutBody as OrgsOrgPropertiesSchemaCustomPropertyNamePutBody, ) - from .group_0953 import ( + from .group_0954 import ( ReposOwnerRepoActionsOidcCustomizationSubPutBody as ReposOwnerRepoActionsOidcCustomizationSubPutBody, ) - from .group_0964 import ( + from .group_0965 import ( ReposOwnerRepoActionsRunsRunIdJobsGetResponse200 as ReposOwnerRepoActionsRunsRunIdJobsGetResponse200, ) - from .group_1000 import ( + from .group_1001 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0 as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0, ) - from .group_1001 import ( + from .group_1002 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1 as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1, ) - from .group_1016 import ( + from .group_1017 import ( ReposOwnerRepoCodespacesSecretsSecretNamePutBody as ReposOwnerRepoCodespacesSecretsSecretNamePutBody, ) - from .group_1019 import ( + from .group_1020 import ( ReposOwnerRepoCommentsCommentIdReactionsPostBody as ReposOwnerRepoCommentsCommentIdReactionsPostBody, ) - from .group_1026 import ( + from .group_1027 import ( ReposOwnerRepoDependabotSecretsSecretNamePutBody as ReposOwnerRepoDependabotSecretsSecretNamePutBody, ) - from .group_1032 import ( + from .group_1033 import ( ReposOwnerRepoEnvironmentsEnvironmentNamePutBody as ReposOwnerRepoEnvironmentsEnvironmentNamePutBody, ) - from .group_1061 import ( + from .group_1062 import ( ReposOwnerRepoIssuesIssueNumberAssigneesPostBody as ReposOwnerRepoIssuesIssueNumberAssigneesPostBody, ) - from .group_1071 import ( + from .group_1072 import ( ReposOwnerRepoIssuesIssueNumberReactionsPostBody as ReposOwnerRepoIssuesIssueNumberReactionsPostBody, ) - from .group_1078 import ( + from .group_1079 import ( ReposOwnerRepoMilestonesMilestoneNumberPatchBody as ReposOwnerRepoMilestonesMilestoneNumberPatchBody, ) - from .group_1102 import ( + from .group_1103 import ( ReposOwnerRepoPullsPullNumberMergePutResponse405 as ReposOwnerRepoPullsPullNumberMergePutResponse405, ) - from .group_1103 import ( + from .group_1104 import ( ReposOwnerRepoPullsPullNumberMergePutResponse409 as ReposOwnerRepoPullsPullNumberMergePutResponse409, ) - from .group_1111 import ( + from .group_1112 import ( ReposOwnerRepoPullsPullNumberUpdateBranchPutBody as ReposOwnerRepoPullsPullNumberUpdateBranchPutBody, ) - from .group_1117 import ( + from .group_1118 import ( ReposOwnerRepoReleasesReleaseIdReactionsPostBody as ReposOwnerRepoReleasesReleaseIdReactionsPostBody, ) from .group_0132 import ( @@ -3853,28 +3853,31 @@ from .group_0813 import ( EnterprisesEnterpriseActionsRunnersGetResponse200 as EnterprisesEnterpriseActionsRunnersGetResponse200, ) - from .group_0880 import ( + from .group_0866 import ( + OrgsOrgCodeSecurityConfigurationsDetachDeleteBody as OrgsOrgCodeSecurityConfigurationsDetachDeleteBody, + ) + from .group_0881 import ( OrgsOrgCopilotBillingSelectedTeamsPostResponse201 as OrgsOrgCopilotBillingSelectedTeamsPostResponse201, ) - from .group_0884 import ( + from .group_0885 import ( OrgsOrgCopilotBillingSelectedUsersPostResponse201 as OrgsOrgCopilotBillingSelectedUsersPostResponse201, ) - from .group_0904 import ( + from .group_0905 import ( OrgsOrgOutsideCollaboratorsUsernamePutResponse202 as OrgsOrgOutsideCollaboratorsUsernamePutResponse202, ) - from .group_0959 import ( + from .group_0960 import ( ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody as ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody, ) - from .group_1023 import ( + from .group_1024 import ( ReposOwnerRepoContentsPathDeleteBodyPropCommitter as ReposOwnerRepoContentsPathDeleteBodyPropCommitter, ) - from .group_1031 import ( + from .group_1032 import ( ReposOwnerRepoDispatchesPostBodyPropClientPayload as ReposOwnerRepoDispatchesPostBodyPropClientPayload, ) - from .group_1057 import ( + from .group_1058 import ( ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1 as ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1, ) - from .group_1151 import ( + from .group_1152 import ( UserCodespacesCodespaceNameMachinesGetResponse200 as UserCodespacesCodespaceNameMachinesGetResponse200, ) from .group_0053 import ( @@ -3982,34 +3985,34 @@ from .group_0858 import ( OrgsOrgActionsSecretsSecretNameRepositoriesPutBody as OrgsOrgActionsSecretsSecretNameRepositoriesPutBody, ) - from .group_0930 import ( + from .group_0931 import ( OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBody as OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBody, ) - from .group_0960 import ( + from .group_0961 import ( ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody as ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody, ) - from .group_1024 import ( + from .group_1025 import ( ReposOwnerRepoDependabotAlertsAlertNumberPatchBody as ReposOwnerRepoDependabotAlertsAlertNumberPatchBody, ) - from .group_1028 import ( + from .group_1029 import ( ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0 as ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0, ) - from .group_1062 import ( + from .group_1063 import ( ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody as ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody, ) - from .group_1064 import ( + from .group_1065 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0 as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0, ) - from .group_1065 import ( + from .group_1066 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2 as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2, ) - from .group_1127 import ( + from .group_1128 import ( ScimV2OrganizationsOrgUsersPostBodyPropEmailsItems as ScimV2OrganizationsOrgUsersPostBodyPropEmailsItems, ) - from .group_1149 import ( + from .group_1150 import ( UserCodespacesSecretsSecretNameRepositoriesPutBody as UserCodespacesSecretsSecretNameRepositoriesPutBody, ) - from .group_1168 import ( + from .group_1169 import ( SigstoreBundle0PropDsseEnvelopePropSignaturesItems as SigstoreBundle0PropDsseEnvelopePropSignaturesItems, ) from .group_0053 import ( @@ -4102,28 +4105,28 @@ from .group_0842 import ( OrgsOrgActionsPermissionsRepositoriesGetResponse200 as OrgsOrgActionsPermissionsRepositoriesGetResponse200, ) - from .group_0882 import ( + from .group_0883 import ( OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200 as OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200, ) - from .group_0886 import ( + from .group_0887 import ( OrgsOrgCopilotBillingSelectedUsersDeleteResponse200 as OrgsOrgCopilotBillingSelectedUsersDeleteResponse200, ) - from .group_0928 import ( + from .group_0929 import ( OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403 as OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403, ) - from .group_1012 import ( + from .group_1013 import ( ReposOwnerRepoCodespacesDevcontainersGetResponse200 as ReposOwnerRepoCodespacesDevcontainersGetResponse200, ) - from .group_1055 import ( + from .group_1056 import ( ReposOwnerRepoInteractionLimitsGetResponse200Anyof1 as ReposOwnerRepoInteractionLimitsGetResponse200Anyof1, ) - from .group_1067 import ( + from .group_1068 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0 as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0, ) - from .group_1068 import ( + from .group_1069 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2 as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2, ) - from .group_1108 import ( + from .group_1109 import ( ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody as ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody, ) from .group_0149 import ( @@ -4219,19 +4222,19 @@ from .group_0838 import ( OrganizationsOrganizationIdCustomRolesGetResponse200 as OrganizationsOrganizationIdCustomRolesGetResponse200, ) - from .group_0905 import ( + from .group_0906 import ( OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422 as OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422, ) - from .group_0999 import ( + from .group_1000 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput, ) - from .group_1005 import ( + from .group_1006 import ( ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody as ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody, ) - from .group_1128 import ( + from .group_1129 import ( ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName as ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName, ) - from .group_1168 import ( + from .group_1169 import ( UsersUsernameAttestationsSubjectDigestGetResponse200 as UsersUsernameAttestationsSubjectDigestGetResponse200, ) from .group_0197 import ( @@ -4372,34 +4375,34 @@ from .group_0862 import ( OrgsOrgActionsVariablesNameRepositoriesGetResponse200 as OrgsOrgActionsVariablesNameRepositoriesGetResponse200, ) - from .group_0877 import ( + from .group_0878 import ( OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody as OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody, ) - from .group_0891 import ( + from .group_0892 import ( OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody as OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody, ) - from .group_0958 import ( + from .group_0959 import ( ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody as ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody, ) - from .group_0962 import ( + from .group_0963 import ( ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200 as ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200, ) - from .group_0967 import ( + from .group_0968 import ( ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody as ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody, ) - from .group_0978 import ( + from .group_0979 import ( ReposOwnerRepoAttestationsSubjectDigestGetResponse200 as ReposOwnerRepoAttestationsSubjectDigestGetResponse200, ) - from .group_1014 import ( + from .group_1015 import ( ReposOwnerRepoCodespacesNewGetResponse200PropDefaults as ReposOwnerRepoCodespacesNewGetResponse200PropDefaults, ) - from .group_1027 import ( + from .group_1028 import ( ReposOwnerRepoDependencyGraphSnapshotsPostResponse201 as ReposOwnerRepoDependencyGraphSnapshotsPostResponse201, ) - from .group_1030 import ( + from .group_1031 import ( ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody as ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody, ) - from .group_1096 import ( + from .group_1097 import ( ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody as ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody, ) from .group_0197 import ( @@ -4519,19 +4522,19 @@ from .group_0822 import ( EnterprisesEnterpriseCopilotBillingSeatsGetResponse200 as EnterprisesEnterpriseCopilotBillingSeatsGetResponse200, ) - from .group_0907 import ( + from .group_0908 import ( OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody as OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody, ) - from .group_0954 import ( + from .group_0955 import ( ReposOwnerRepoActionsOrganizationSecretsGetResponse200 as ReposOwnerRepoActionsOrganizationSecretsGetResponse200, ) - from .group_1059 import ( + from .group_1060 import ( ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody as ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody, ) - from .group_1120 import ( + from .group_1121 import ( ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody as ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody, ) - from .group_1133 import ( + from .group_1134 import ( TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody as TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody, ) from .group_0060 import ( @@ -4645,13 +4648,13 @@ from .group_0778 import ( WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner as WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner, ) - from .group_1066 import ( + from .group_1067 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items, ) - from .group_1112 import ( + from .group_1113 import ( ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202 as ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202, ) - from .group_1136 import ( + from .group_1137 import ( TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody as TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody, ) from .group_0056 import ( @@ -4798,22 +4801,22 @@ from .group_0817 import ( EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBody as EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBody, ) - from .group_0920 import ( + from .group_0921 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody, ) - from .group_0955 import ( + from .group_0956 import ( ReposOwnerRepoActionsOrganizationVariablesGetResponse200 as ReposOwnerRepoActionsOrganizationVariablesGetResponse200, ) - from .group_0965 import ( + from .group_0966 import ( ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody as ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody, ) - from .group_0996 import ( + from .group_0997 import ( ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems as ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems, ) - from .group_1069 import ( + from .group_1070 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items, ) - from .group_1141 import ( + from .group_1142 import ( TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItems as TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItems, ) from .group_0116 import ( @@ -4960,19 +4963,19 @@ from .group_0857 import ( OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200 as OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200, ) - from .group_0866 import ( + from .group_0867 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody as OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody, ) - from .group_1091 import ( + from .group_1092 import ( ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200 as ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200, ) - from .group_1106 import ( + from .group_1107 import ( ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody as ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody, ) - from .group_1148 import ( + from .group_1149 import ( UserCodespacesSecretsSecretNameRepositoriesGetResponse200 as UserCodespacesSecretsSecretNameRepositoriesGetResponse200, ) - from .group_1158 import ( + from .group_1159 import ( UserInstallationsInstallationIdRepositoriesGetResponse200 as UserInstallationsInstallationIdRepositoriesGetResponse200, ) from .group_0439 import ( @@ -5071,22 +5074,22 @@ from .group_0848 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody as OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody, ) - from .group_0941 import ( + from .group_0942 import ( ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems as ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems, ) - from .group_0974 import ( + from .group_0975 import ( ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody as ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody, ) - from .group_0975 import ( + from .group_0976 import ( ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200 as ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200, ) - from .group_0999 import ( + from .group_1000 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems, ) - from .group_1039 import ( + from .group_1040 import ( ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody as ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody, ) - from .group_1110 import ( + from .group_1111 import ( ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody as ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody, ) from .group_0052 import ( @@ -5200,10 +5203,10 @@ from .group_0805 import ( EnterprisesEnterpriseActionsPermissionsOrganizationsPutBody as EnterprisesEnterpriseActionsPermissionsOrganizationsPutBody, ) - from .group_1128 import ( + from .group_1129 import ( ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems as ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems, ) - from .group_1168 import ( + from .group_1169 import ( SigstoreBundle0PropVerificationMaterialPropTlogEntriesItems as SigstoreBundle0PropVerificationMaterialPropTlogEntriesItems, ) from .group_0439 import ( @@ -5320,16 +5323,16 @@ from .group_0849 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200 as OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200, ) - from .group_0876 import ( + from .group_0877 import ( OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200 as OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200, ) - from .group_0890 import ( + from .group_0891 import ( OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200 as OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200, ) - from .group_0976 import ( + from .group_0977 import ( ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope as ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope, ) - from .group_1004 import ( + from .group_1005 import ( ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200 as ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200, ) from .group_0130 import ( @@ -5479,43 +5482,43 @@ from .group_0791 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor as WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor, ) - from .group_0936 import ( + from .group_0937 import ( ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems as ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems, ) - from .group_0937 import ( + from .group_0938 import ( ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems as ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems, ) - from .group_0980 import ( + from .group_0981 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions, ) - from .group_0996 import ( + from .group_0997 import ( ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems as ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems, ) - from .group_1006 import ( + from .group_1007 import ( ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0 as ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0, ) - from .group_1007 import ( + from .group_1008 import ( ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1 as ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1, ) - from .group_1008 import ( + from .group_1009 import ( ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2 as ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2, ) - from .group_1060 import ( + from .group_1061 import ( ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1 as ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1, ) - from .group_1100 import ( + from .group_1101 import ( ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody as ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody, ) - from .group_1104 import ( + from .group_1105 import ( ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0 as ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0, ) - from .group_1105 import ( + from .group_1106 import ( ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1 as ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1, ) - from .group_1107 import ( + from .group_1108 import ( ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems as ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems, ) - from .group_1109 import ( + from .group_1110 import ( ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody as ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody, ) from .group_0439 import ( @@ -5665,10 +5668,10 @@ from .group_0808 import ( EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBody as EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBody, ) - from .group_0867 import ( + from .group_0868 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody as OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody, ) - from .group_1036 import ( + from .group_1037 import ( ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200 as ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200, ) from .group_0203 import ( @@ -5776,16 +5779,16 @@ from .group_0816 import ( EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200 as EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200, ) - from .group_0868 import ( + from .group_0869 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody as OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody, ) - from .group_0921 import ( + from .group_0922 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody, ) - from .group_1040 import ( + from .group_1041 import ( ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody as ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody, ) - from .group_1168 import ( + from .group_1169 import ( SigstoreBundle0PropVerificationMaterialPropX509CertificateChain as SigstoreBundle0PropVerificationMaterialPropX509CertificateChain, ) from .group_0117 import ( @@ -5902,13 +5905,13 @@ from .group_0790 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems, ) - from .group_0924 import ( + from .group_0925 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody, ) - from .group_0950 import ( + from .group_0951 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning, ) - from .group_1038 import ( + from .group_1039 import ( ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200 as ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200, ) from .group_0128 import ( @@ -6040,16 +6043,16 @@ from .group_0847 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200 as OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200, ) - from .group_0930 import ( + from .group_0931 import ( OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItems as OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItems, ) - from .group_1037 import ( + from .group_1038 import ( ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody as ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody, ) - from .group_1065 import ( + from .group_1066 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems, ) - from .group_1129 import ( + from .group_1130 import ( ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItems as ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItems, ) from .group_0116 import ( @@ -6241,13 +6244,13 @@ from .group_0819 import ( EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200 as EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200, ) - from .group_0950 import ( + from .group_0951 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity, ) - from .group_1032 import ( + from .group_1033 import ( ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems as ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems, ) - from .group_1068 import ( + from .group_1069 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems, ) from .group_0230 import ( @@ -6400,13 +6403,13 @@ from .group_0864 import ( OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems, ) - from .group_0982 import ( + from .group_0983 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody, ) - from .group_0986 import ( + from .group_0987 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0, ) - from .group_0999 import ( + from .group_1000 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems, ) from .group_0464 import ( @@ -6547,25 +6550,25 @@ from .group_0712 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion, ) - from .group_0974 import ( + from .group_0975 import ( ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs as ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs, ) - from .group_0976 import ( + from .group_0977 import ( ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial as ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial, ) - from .group_0987 import ( + from .group_0988 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0, ) - from .group_0989 import ( + from .group_0990 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0, ) - from .group_0992 import ( + from .group_0993 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0, ) - from .group_1134 import ( + from .group_1135 import ( TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody as TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody, ) - from .group_1168 import ( + from .group_1169 import ( SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogId as SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogId, ) from .group_0262 import ( @@ -6706,16 +6709,16 @@ from .group_0791 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner, ) - from .group_0963 import ( + from .group_0964 import ( ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200 as ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200, ) - from .group_0980 import ( + from .group_0981 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks, ) - from .group_0990 import ( + from .group_0991 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0, ) - from .group_0993 import ( + from .group_0994 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0, ) from .group_0215 import ( @@ -6832,10 +6835,10 @@ from .group_0791 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems as WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems, ) - from .group_0869 import ( + from .group_0870 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200 as OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200, ) - from .group_0988 import ( + from .group_0989 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0, ) from .group_0116 import ( @@ -6982,13 +6985,13 @@ from .group_0791 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead, ) - from .group_0991 import ( + from .group_0992 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0, ) - from .group_0994 import ( + from .group_0995 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0, ) - from .group_1003 import ( + from .group_1004 import ( ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems as ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems, ) from .group_0484 import ( @@ -7108,7 +7111,7 @@ from .group_0790 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead, ) - from .group_0999 import ( + from .group_1000 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems, ) from .group_0116 import ( @@ -7207,13 +7210,13 @@ from .group_0810 import ( EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBody as EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBody, ) - from .group_0981 import ( + from .group_0982 import ( ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody as ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody, ) - from .group_1012 import ( + from .group_1013 import ( ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems as ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems, ) - from .group_1168 import ( + from .group_1169 import ( UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems as UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems, ) from .group_0464 import ( @@ -7357,13 +7360,13 @@ from .group_0811 import ( EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200 as EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200, ) - from .group_0978 import ( + from .group_0979 import ( ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems, ) - from .group_1034 import ( + from .group_1035 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody, ) - from .group_1168 import ( + from .group_1169 import ( SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersion as SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersion, ) from .group_0485 import ( @@ -7498,7 +7501,7 @@ from .group_0823 import ( EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBody as EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBody, ) - from .group_0980 import ( + from .group_0981 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews, ) from .group_0215 import ( @@ -7588,7 +7591,7 @@ from .group_0756 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems, ) - from .group_1135 import ( + from .group_1136 import ( TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody as TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody, ) from .group_0464 import ( @@ -7672,7 +7675,7 @@ from .group_0864 import ( OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle, ) - from .group_0922 import ( + from .group_0923 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody, ) from .group_0482 import ( @@ -7741,10 +7744,10 @@ from .group_0712 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor, ) - from .group_0950 import ( + from .group_0951 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection, ) - from .group_0950 import ( + from .group_0951 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecks as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecks, ) from .group_0480 import ( @@ -7834,13 +7837,13 @@ from .group_0791 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, ) - from .group_0983 import ( + from .group_0984 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0, ) - from .group_1033 import ( + from .group_1034 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200 as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200, ) - from .group_1168 import ( + from .group_1169 import ( SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromise as SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromise, ) from .group_0275 import ( @@ -7930,10 +7933,10 @@ from .group_0809 import ( EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200 as EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200, ) - from .group_0984 import ( + from .group_0985 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0, ) - from .group_1129 import ( + from .group_1130 import ( ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0 as ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0, ) from .group_0486 import ( @@ -8065,10 +8068,10 @@ from .group_0824 import ( EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse200 as EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse200, ) - from .group_0982 import ( + from .group_0983 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems, ) - from .group_0985 import ( + from .group_0986 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0, ) from .group_0481 import ( @@ -8122,7 +8125,7 @@ from .group_0715 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems, ) - from .group_0950 import ( + from .group_0951 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns, ) from .group_0464 import ( @@ -8191,16 +8194,16 @@ from .group_0826 import ( EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteResponse200 as EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteResponse200, ) - from .group_0978 import ( + from .group_0979 import ( ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle, ) - from .group_0980 import ( + from .group_0981 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems, ) - from .group_1035 import ( + from .group_1036 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200 as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200, ) - from .group_1168 import ( + from .group_1169 import ( SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItems as SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItems, ) from .group_0634 import ( @@ -8245,10 +8248,10 @@ from .group_0712 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems, ) - from .group_0923 import ( + from .group_0924 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody, ) - from .group_1129 import ( + from .group_1130 import ( ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1Items as ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1Items, ) from .group_0634 import ( @@ -8503,7 +8506,7 @@ from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0981 import ( + from .group_0982 import ( ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions as ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions, ) from .group_0712 import ( @@ -8521,10 +8524,10 @@ from .group_0756 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion, ) - from .group_0978 import ( + from .group_0979 import ( ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope, ) - from .group_0980 import ( + from .group_0981 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions, ) from .group_0712 import ( @@ -8554,19 +8557,19 @@ from .group_0712 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1 as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1, ) - from .group_0981 import ( + from .group_0982 import ( ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances as ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances, ) from .group_0712 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3 as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3, ) - from .group_0980 import ( + from .group_0981 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances, ) from .group_0712 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies, ) - from .group_0978 import ( + from .group_0979 import ( ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial, ) else: @@ -12322,136 +12325,137 @@ "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope", ), ".group_0865": ("OrgsOrgCodeSecurityConfigurationsPostBody",), - ".group_0866": ("OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody",), - ".group_0867": ( + ".group_0866": ("OrgsOrgCodeSecurityConfigurationsDetachDeleteBody",), + ".group_0867": ("OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody",), + ".group_0868": ( "OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody", ), - ".group_0868": ( + ".group_0869": ( "OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody", ), - ".group_0869": ( + ".group_0870": ( "OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200", ), - ".group_0870": ("OrgsOrgCodespacesGetResponse200",), - ".group_0871": ("OrgsOrgCodespacesAccessPutBody",), - ".group_0872": ("OrgsOrgCodespacesAccessSelectedUsersPostBody",), - ".group_0873": ("OrgsOrgCodespacesAccessSelectedUsersDeleteBody",), - ".group_0874": ( + ".group_0871": ("OrgsOrgCodespacesGetResponse200",), + ".group_0872": ("OrgsOrgCodespacesAccessPutBody",), + ".group_0873": ("OrgsOrgCodespacesAccessSelectedUsersPostBody",), + ".group_0874": ("OrgsOrgCodespacesAccessSelectedUsersDeleteBody",), + ".group_0875": ( "OrgsOrgCodespacesSecretsGetResponse200", "CodespacesOrgSecret", ), - ".group_0875": ("OrgsOrgCodespacesSecretsSecretNamePutBody",), - ".group_0876": ( + ".group_0876": ("OrgsOrgCodespacesSecretsSecretNamePutBody",), + ".group_0877": ( "OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200", ), - ".group_0877": ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody",), - ".group_0878": ("OrgsOrgCopilotBillingSeatsGetResponse200",), - ".group_0879": ("OrgsOrgCopilotBillingSelectedTeamsPostBody",), - ".group_0880": ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201",), - ".group_0881": ("OrgsOrgCopilotBillingSelectedTeamsDeleteBody",), - ".group_0882": ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200",), - ".group_0883": ("OrgsOrgCopilotBillingSelectedUsersPostBody",), - ".group_0884": ("OrgsOrgCopilotBillingSelectedUsersPostResponse201",), - ".group_0885": ("OrgsOrgCopilotBillingSelectedUsersDeleteBody",), - ".group_0886": ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200",), - ".group_0887": ("OrgsOrgCustomRepositoryRolesGetResponse200",), - ".group_0888": ( + ".group_0878": ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody",), + ".group_0879": ("OrgsOrgCopilotBillingSeatsGetResponse200",), + ".group_0880": ("OrgsOrgCopilotBillingSelectedTeamsPostBody",), + ".group_0881": ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201",), + ".group_0882": ("OrgsOrgCopilotBillingSelectedTeamsDeleteBody",), + ".group_0883": ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200",), + ".group_0884": ("OrgsOrgCopilotBillingSelectedUsersPostBody",), + ".group_0885": ("OrgsOrgCopilotBillingSelectedUsersPostResponse201",), + ".group_0886": ("OrgsOrgCopilotBillingSelectedUsersDeleteBody",), + ".group_0887": ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200",), + ".group_0888": ("OrgsOrgCustomRepositoryRolesGetResponse200",), + ".group_0889": ( "OrgsOrgDependabotSecretsGetResponse200", "OrganizationDependabotSecret", ), - ".group_0889": ("OrgsOrgDependabotSecretsSecretNamePutBody",), - ".group_0890": ( + ".group_0890": ("OrgsOrgDependabotSecretsSecretNamePutBody",), + ".group_0891": ( "OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200", ), - ".group_0891": ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody",), - ".group_0892": ( + ".group_0892": ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody",), + ".group_0893": ( "OrgsOrgHooksPostBody", "OrgsOrgHooksPostBodyPropConfig", ), - ".group_0893": ( + ".group_0894": ( "OrgsOrgHooksHookIdPatchBody", "OrgsOrgHooksHookIdPatchBodyPropConfig", ), - ".group_0894": ("OrgsOrgHooksHookIdConfigPatchBody",), - ".group_0895": ("OrgsOrgInstallationsGetResponse200",), - ".group_0896": ("OrgsOrgInteractionLimitsGetResponse200Anyof1",), - ".group_0897": ("OrgsOrgInvitationsPostBody",), - ".group_0898": ("OrgsOrgMembersUsernameCodespacesGetResponse200",), - ".group_0899": ("OrgsOrgMembershipsUsernamePutBody",), - ".group_0900": ("OrgsOrgMigrationsPostBody",), - ".group_0901": ("OrgsOrgOrganizationRolesPostBody",), - ".group_0902": ("OrgsOrgOrganizationRolesRoleIdPatchBody",), - ".group_0903": ("OrgsOrgOutsideCollaboratorsUsernamePutBody",), - ".group_0904": ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202",), - ".group_0905": ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422",), - ".group_0906": ("OrgsOrgPersonalAccessTokenRequestsPostBody",), - ".group_0907": ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody",), - ".group_0908": ("OrgsOrgPersonalAccessTokensPostBody",), - ".group_0909": ("OrgsOrgPersonalAccessTokensPatIdPostBody",), - ".group_0910": ("OrgsOrgProjectsPostBody",), - ".group_0911": ("OrgsOrgPropertiesSchemaPatchBody",), - ".group_0912": ("OrgsOrgPropertiesSchemaCustomPropertyNamePutBody",), - ".group_0913": ("OrgsOrgPropertiesValuesPatchBody",), - ".group_0914": ( + ".group_0895": ("OrgsOrgHooksHookIdConfigPatchBody",), + ".group_0896": ("OrgsOrgInstallationsGetResponse200",), + ".group_0897": ("OrgsOrgInteractionLimitsGetResponse200Anyof1",), + ".group_0898": ("OrgsOrgInvitationsPostBody",), + ".group_0899": ("OrgsOrgMembersUsernameCodespacesGetResponse200",), + ".group_0900": ("OrgsOrgMembershipsUsernamePutBody",), + ".group_0901": ("OrgsOrgMigrationsPostBody",), + ".group_0902": ("OrgsOrgOrganizationRolesPostBody",), + ".group_0903": ("OrgsOrgOrganizationRolesRoleIdPatchBody",), + ".group_0904": ("OrgsOrgOutsideCollaboratorsUsernamePutBody",), + ".group_0905": ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202",), + ".group_0906": ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422",), + ".group_0907": ("OrgsOrgPersonalAccessTokenRequestsPostBody",), + ".group_0908": ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody",), + ".group_0909": ("OrgsOrgPersonalAccessTokensPostBody",), + ".group_0910": ("OrgsOrgPersonalAccessTokensPatIdPostBody",), + ".group_0911": ("OrgsOrgProjectsPostBody",), + ".group_0912": ("OrgsOrgPropertiesSchemaPatchBody",), + ".group_0913": ("OrgsOrgPropertiesSchemaCustomPropertyNamePutBody",), + ".group_0914": ("OrgsOrgPropertiesValuesPatchBody",), + ".group_0915": ( "OrgsOrgReposPostBody", "OrgsOrgReposPostBodyPropCustomProperties", ), - ".group_0915": ("OrgsOrgRulesetsPostBody",), - ".group_0916": ("OrgsOrgRulesetsRulesetIdPutBody",), - ".group_0917": ("OrgsOrgTeamsPostBody",), - ".group_0918": ("OrgsOrgTeamsTeamSlugPatchBody",), - ".group_0919": ("OrgsOrgTeamsTeamSlugDiscussionsPostBody",), - ".group_0920": ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody",), - ".group_0921": ( + ".group_0916": ("OrgsOrgRulesetsPostBody",), + ".group_0917": ("OrgsOrgRulesetsRulesetIdPutBody",), + ".group_0918": ("OrgsOrgTeamsPostBody",), + ".group_0919": ("OrgsOrgTeamsTeamSlugPatchBody",), + ".group_0920": ("OrgsOrgTeamsTeamSlugDiscussionsPostBody",), + ".group_0921": ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody",), + ".group_0922": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody", ), - ".group_0922": ( + ".group_0923": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody", ), - ".group_0923": ( + ".group_0924": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody", ), - ".group_0924": ( + ".group_0925": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody", ), - ".group_0925": ("OrgsOrgTeamsTeamSlugExternalGroupsPatchBody",), - ".group_0926": ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody",), - ".group_0927": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody",), - ".group_0928": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403",), - ".group_0929": ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody",), - ".group_0930": ( + ".group_0926": ("OrgsOrgTeamsTeamSlugExternalGroupsPatchBody",), + ".group_0927": ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody",), + ".group_0928": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody",), + ".group_0929": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403",), + ".group_0930": ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody",), + ".group_0931": ( "OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBody", "OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItems", ), - ".group_0931": ("OrgsOrgSecurityProductEnablementPostBody",), - ".group_0932": ("ProjectsColumnsCardsCardIdDeleteResponse403",), - ".group_0933": ("ProjectsColumnsCardsCardIdPatchBody",), - ".group_0934": ("ProjectsColumnsCardsCardIdMovesPostBody",), - ".group_0935": ("ProjectsColumnsCardsCardIdMovesPostResponse201",), - ".group_0936": ( + ".group_0932": ("OrgsOrgSecurityProductEnablementPostBody",), + ".group_0933": ("ProjectsColumnsCardsCardIdDeleteResponse403",), + ".group_0934": ("ProjectsColumnsCardsCardIdPatchBody",), + ".group_0935": ("ProjectsColumnsCardsCardIdMovesPostBody",), + ".group_0936": ("ProjectsColumnsCardsCardIdMovesPostResponse201",), + ".group_0937": ( "ProjectsColumnsCardsCardIdMovesPostResponse403", "ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems", ), - ".group_0937": ( + ".group_0938": ( "ProjectsColumnsCardsCardIdMovesPostResponse503", "ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems", ), - ".group_0938": ("ProjectsColumnsColumnIdPatchBody",), - ".group_0939": ("ProjectsColumnsColumnIdCardsPostBodyOneof0",), - ".group_0940": ("ProjectsColumnsColumnIdCardsPostBodyOneof1",), - ".group_0941": ( + ".group_0939": ("ProjectsColumnsColumnIdPatchBody",), + ".group_0940": ("ProjectsColumnsColumnIdCardsPostBodyOneof0",), + ".group_0941": ("ProjectsColumnsColumnIdCardsPostBodyOneof1",), + ".group_0942": ( "ProjectsColumnsColumnIdCardsPostResponse503", "ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems", ), - ".group_0942": ("ProjectsColumnsColumnIdMovesPostBody",), - ".group_0943": ("ProjectsColumnsColumnIdMovesPostResponse201",), - ".group_0944": ("ProjectsProjectIdDeleteResponse403",), - ".group_0945": ("ProjectsProjectIdPatchBody",), - ".group_0946": ("ProjectsProjectIdPatchResponse403",), - ".group_0947": ("ProjectsProjectIdCollaboratorsUsernamePutBody",), - ".group_0948": ("ProjectsProjectIdColumnsPostBody",), - ".group_0949": ("ReposOwnerRepoDeleteResponse403",), - ".group_0950": ( + ".group_0943": ("ProjectsColumnsColumnIdMovesPostBody",), + ".group_0944": ("ProjectsColumnsColumnIdMovesPostResponse201",), + ".group_0945": ("ProjectsProjectIdDeleteResponse403",), + ".group_0946": ("ProjectsProjectIdPatchBody",), + ".group_0947": ("ProjectsProjectIdPatchResponse403",), + ".group_0948": ("ProjectsProjectIdCollaboratorsUsernamePutBody",), + ".group_0949": ("ProjectsProjectIdColumnsPostBody",), + ".group_0950": ("ReposOwnerRepoDeleteResponse403",), + ".group_0951": ( "ReposOwnerRepoPatchBody", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysis", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity", @@ -12460,55 +12464,55 @@ "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecks", ), - ".group_0951": ("ReposOwnerRepoActionsArtifactsGetResponse200",), - ".group_0952": ("ReposOwnerRepoActionsJobsJobIdRerunPostBody",), - ".group_0953": ("ReposOwnerRepoActionsOidcCustomizationSubPutBody",), - ".group_0954": ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200",), - ".group_0955": ("ReposOwnerRepoActionsOrganizationVariablesGetResponse200",), - ".group_0956": ("ReposOwnerRepoActionsPermissionsPutBody",), - ".group_0957": ("ReposOwnerRepoActionsRunnersGetResponse200",), - ".group_0958": ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody",), - ".group_0959": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody",), - ".group_0960": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody",), - ".group_0961": ("ReposOwnerRepoActionsRunsGetResponse200",), - ".group_0962": ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200",), - ".group_0963": ( + ".group_0952": ("ReposOwnerRepoActionsArtifactsGetResponse200",), + ".group_0953": ("ReposOwnerRepoActionsJobsJobIdRerunPostBody",), + ".group_0954": ("ReposOwnerRepoActionsOidcCustomizationSubPutBody",), + ".group_0955": ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200",), + ".group_0956": ("ReposOwnerRepoActionsOrganizationVariablesGetResponse200",), + ".group_0957": ("ReposOwnerRepoActionsPermissionsPutBody",), + ".group_0958": ("ReposOwnerRepoActionsRunnersGetResponse200",), + ".group_0959": ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody",), + ".group_0960": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody",), + ".group_0961": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody",), + ".group_0962": ("ReposOwnerRepoActionsRunsGetResponse200",), + ".group_0963": ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200",), + ".group_0964": ( "ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200", ), - ".group_0964": ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200",), - ".group_0965": ("ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody",), - ".group_0966": ("ReposOwnerRepoActionsRunsRunIdRerunPostBody",), - ".group_0967": ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody",), - ".group_0968": ("ReposOwnerRepoActionsSecretsGetResponse200",), - ".group_0969": ("ReposOwnerRepoActionsSecretsSecretNamePutBody",), - ".group_0970": ("ReposOwnerRepoActionsVariablesGetResponse200",), - ".group_0971": ("ReposOwnerRepoActionsVariablesPostBody",), - ".group_0972": ("ReposOwnerRepoActionsVariablesNamePatchBody",), - ".group_0973": ( + ".group_0965": ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200",), + ".group_0966": ("ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody",), + ".group_0967": ("ReposOwnerRepoActionsRunsRunIdRerunPostBody",), + ".group_0968": ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody",), + ".group_0969": ("ReposOwnerRepoActionsSecretsGetResponse200",), + ".group_0970": ("ReposOwnerRepoActionsSecretsSecretNamePutBody",), + ".group_0971": ("ReposOwnerRepoActionsVariablesGetResponse200",), + ".group_0972": ("ReposOwnerRepoActionsVariablesPostBody",), + ".group_0973": ("ReposOwnerRepoActionsVariablesNamePatchBody",), + ".group_0974": ( "ReposOwnerRepoActionsWorkflowsGetResponse200", "Workflow", ), - ".group_0974": ( + ".group_0975": ( "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody", "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs", ), - ".group_0975": ("ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200",), - ".group_0976": ( + ".group_0976": ("ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200",), + ".group_0977": ( "ReposOwnerRepoAttestationsPostBody", "ReposOwnerRepoAttestationsPostBodyPropBundle", "ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial", "ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope", ), - ".group_0977": ("ReposOwnerRepoAttestationsPostResponse201",), - ".group_0978": ( + ".group_0978": ("ReposOwnerRepoAttestationsPostResponse201",), + ".group_0979": ( "ReposOwnerRepoAttestationsSubjectDigestGetResponse200", "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems", "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle", "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial", "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope", ), - ".group_0979": ("ReposOwnerRepoAutolinksPostBody",), - ".group_0980": ( + ".group_0980": ("ReposOwnerRepoAutolinksPostBody",), + ".group_0981": ( "ReposOwnerRepoBranchesBranchProtectionPutBody", "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks", "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems", @@ -12517,352 +12521,352 @@ "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances", "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions", ), - ".group_0981": ( + ".group_0982": ( "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody", "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions", "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances", ), - ".group_0982": ( + ".group_0983": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody", "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems", ), - ".group_0983": ( + ".group_0984": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0", ), - ".group_0984": ( + ".group_0985": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0", ), - ".group_0985": ( + ".group_0986": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0", ), - ".group_0986": ( + ".group_0987": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0", ), - ".group_0987": ( + ".group_0988": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0", ), - ".group_0988": ( + ".group_0989": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0", ), - ".group_0989": ( + ".group_0990": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0", ), - ".group_0990": ( + ".group_0991": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0", ), - ".group_0991": ( + ".group_0992": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0", ), - ".group_0992": ( + ".group_0993": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0", ), - ".group_0993": ( + ".group_0994": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0", ), - ".group_0994": ( + ".group_0995": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0", ), - ".group_0995": ("ReposOwnerRepoBranchesBranchRenamePostBody",), - ".group_0996": ( + ".group_0996": ("ReposOwnerRepoBranchesBranchRenamePostBody",), + ".group_0997": ( "ReposOwnerRepoCheckRunsPostBodyPropOutput", "ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems", "ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems", "ReposOwnerRepoCheckRunsPostBodyPropActionsItems", ), - ".group_0997": ("ReposOwnerRepoCheckRunsPostBodyOneof0",), - ".group_0998": ("ReposOwnerRepoCheckRunsPostBodyOneof1",), - ".group_0999": ( + ".group_0998": ("ReposOwnerRepoCheckRunsPostBodyOneof0",), + ".group_0999": ("ReposOwnerRepoCheckRunsPostBodyOneof1",), + ".group_1000": ( "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput", "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems", "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems", "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems", ), - ".group_1000": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0",), - ".group_1001": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1",), - ".group_1002": ("ReposOwnerRepoCheckSuitesPostBody",), - ".group_1003": ( + ".group_1001": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0",), + ".group_1002": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1",), + ".group_1003": ("ReposOwnerRepoCheckSuitesPostBody",), + ".group_1004": ( "ReposOwnerRepoCheckSuitesPreferencesPatchBody", "ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems", ), - ".group_1004": ( + ".group_1005": ( "ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200", ), - ".group_1005": ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody",), - ".group_1006": ( + ".group_1006": ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody",), + ".group_1007": ( "ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0", ), - ".group_1007": ( + ".group_1008": ( "ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1", ), - ".group_1008": ( + ".group_1009": ( "ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2", ), - ".group_1009": ("ReposOwnerRepoCodeScanningSarifsPostBody",), - ".group_1010": ("ReposOwnerRepoCodespacesGetResponse200",), - ".group_1011": ("ReposOwnerRepoCodespacesPostBody",), - ".group_1012": ( + ".group_1010": ("ReposOwnerRepoCodeScanningSarifsPostBody",), + ".group_1011": ("ReposOwnerRepoCodespacesGetResponse200",), + ".group_1012": ("ReposOwnerRepoCodespacesPostBody",), + ".group_1013": ( "ReposOwnerRepoCodespacesDevcontainersGetResponse200", "ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems", ), - ".group_1013": ("ReposOwnerRepoCodespacesMachinesGetResponse200",), - ".group_1014": ( + ".group_1014": ("ReposOwnerRepoCodespacesMachinesGetResponse200",), + ".group_1015": ( "ReposOwnerRepoCodespacesNewGetResponse200", "ReposOwnerRepoCodespacesNewGetResponse200PropDefaults", ), - ".group_1015": ( + ".group_1016": ( "ReposOwnerRepoCodespacesSecretsGetResponse200", "RepoCodespacesSecret", ), - ".group_1016": ("ReposOwnerRepoCodespacesSecretsSecretNamePutBody",), - ".group_1017": ("ReposOwnerRepoCollaboratorsUsernamePutBody",), - ".group_1018": ("ReposOwnerRepoCommentsCommentIdPatchBody",), - ".group_1019": ("ReposOwnerRepoCommentsCommentIdReactionsPostBody",), - ".group_1020": ("ReposOwnerRepoCommitsCommitShaCommentsPostBody",), - ".group_1021": ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200",), - ".group_1022": ( + ".group_1017": ("ReposOwnerRepoCodespacesSecretsSecretNamePutBody",), + ".group_1018": ("ReposOwnerRepoCollaboratorsUsernamePutBody",), + ".group_1019": ("ReposOwnerRepoCommentsCommentIdPatchBody",), + ".group_1020": ("ReposOwnerRepoCommentsCommentIdReactionsPostBody",), + ".group_1021": ("ReposOwnerRepoCommitsCommitShaCommentsPostBody",), + ".group_1022": ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200",), + ".group_1023": ( "ReposOwnerRepoContentsPathPutBody", "ReposOwnerRepoContentsPathPutBodyPropCommitter", "ReposOwnerRepoContentsPathPutBodyPropAuthor", ), - ".group_1023": ( + ".group_1024": ( "ReposOwnerRepoContentsPathDeleteBody", "ReposOwnerRepoContentsPathDeleteBodyPropCommitter", "ReposOwnerRepoContentsPathDeleteBodyPropAuthor", ), - ".group_1024": ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBody",), - ".group_1025": ( + ".group_1025": ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBody",), + ".group_1026": ( "ReposOwnerRepoDependabotSecretsGetResponse200", "DependabotSecret", ), - ".group_1026": ("ReposOwnerRepoDependabotSecretsSecretNamePutBody",), - ".group_1027": ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201",), - ".group_1028": ( + ".group_1027": ("ReposOwnerRepoDependabotSecretsSecretNamePutBody",), + ".group_1028": ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201",), + ".group_1029": ( "ReposOwnerRepoDeploymentsPostBody", "ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0", ), - ".group_1029": ("ReposOwnerRepoDeploymentsPostResponse202",), - ".group_1030": ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody",), - ".group_1031": ( + ".group_1030": ("ReposOwnerRepoDeploymentsPostResponse202",), + ".group_1031": ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody",), + ".group_1032": ( "ReposOwnerRepoDispatchesPostBody", "ReposOwnerRepoDispatchesPostBodyPropClientPayload", ), - ".group_1032": ( + ".group_1033": ( "ReposOwnerRepoEnvironmentsEnvironmentNamePutBody", "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems", ), - ".group_1033": ( + ".group_1034": ( "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200", "DeploymentBranchPolicy", ), - ".group_1034": ( + ".group_1035": ( "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody", ), - ".group_1035": ( + ".group_1036": ( "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200", ), - ".group_1036": ( + ".group_1037": ( "ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200", ), - ".group_1037": ( + ".group_1038": ( "ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody", ), - ".group_1038": ( + ".group_1039": ( "ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200", ), - ".group_1039": ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody",), - ".group_1040": ( + ".group_1040": ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody",), + ".group_1041": ( "ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody", ), - ".group_1041": ("ReposOwnerRepoForksPostBody",), - ".group_1042": ("ReposOwnerRepoGitBlobsPostBody",), - ".group_1043": ( + ".group_1042": ("ReposOwnerRepoForksPostBody",), + ".group_1043": ("ReposOwnerRepoGitBlobsPostBody",), + ".group_1044": ( "ReposOwnerRepoGitCommitsPostBody", "ReposOwnerRepoGitCommitsPostBodyPropAuthor", "ReposOwnerRepoGitCommitsPostBodyPropCommitter", ), - ".group_1044": ("ReposOwnerRepoGitRefsPostBody",), - ".group_1045": ("ReposOwnerRepoGitRefsRefPatchBody",), - ".group_1046": ( + ".group_1045": ("ReposOwnerRepoGitRefsPostBody",), + ".group_1046": ("ReposOwnerRepoGitRefsRefPatchBody",), + ".group_1047": ( "ReposOwnerRepoGitTagsPostBody", "ReposOwnerRepoGitTagsPostBodyPropTagger", ), - ".group_1047": ( + ".group_1048": ( "ReposOwnerRepoGitTreesPostBody", "ReposOwnerRepoGitTreesPostBodyPropTreeItems", ), - ".group_1048": ( + ".group_1049": ( "ReposOwnerRepoHooksPostBody", "ReposOwnerRepoHooksPostBodyPropConfig", ), - ".group_1049": ("ReposOwnerRepoHooksHookIdPatchBody",), - ".group_1050": ("ReposOwnerRepoHooksHookIdConfigPatchBody",), - ".group_1051": ("ReposOwnerRepoImportPutBody",), - ".group_1052": ("ReposOwnerRepoImportPatchBody",), - ".group_1053": ("ReposOwnerRepoImportAuthorsAuthorIdPatchBody",), - ".group_1054": ("ReposOwnerRepoImportLfsPatchBody",), - ".group_1055": ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1",), - ".group_1056": ("ReposOwnerRepoInvitationsInvitationIdPatchBody",), - ".group_1057": ( + ".group_1050": ("ReposOwnerRepoHooksHookIdPatchBody",), + ".group_1051": ("ReposOwnerRepoHooksHookIdConfigPatchBody",), + ".group_1052": ("ReposOwnerRepoImportPutBody",), + ".group_1053": ("ReposOwnerRepoImportPatchBody",), + ".group_1054": ("ReposOwnerRepoImportAuthorsAuthorIdPatchBody",), + ".group_1055": ("ReposOwnerRepoImportLfsPatchBody",), + ".group_1056": ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1",), + ".group_1057": ("ReposOwnerRepoInvitationsInvitationIdPatchBody",), + ".group_1058": ( "ReposOwnerRepoIssuesPostBody", "ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1", ), - ".group_1058": ("ReposOwnerRepoIssuesCommentsCommentIdPatchBody",), - ".group_1059": ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody",), - ".group_1060": ( + ".group_1059": ("ReposOwnerRepoIssuesCommentsCommentIdPatchBody",), + ".group_1060": ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody",), + ".group_1061": ( "ReposOwnerRepoIssuesIssueNumberPatchBody", "ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1", ), - ".group_1061": ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBody",), - ".group_1062": ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody",), - ".group_1063": ("ReposOwnerRepoIssuesIssueNumberCommentsPostBody",), - ".group_1064": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0",), - ".group_1065": ( + ".group_1062": ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBody",), + ".group_1063": ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody",), + ".group_1064": ("ReposOwnerRepoIssuesIssueNumberCommentsPostBody",), + ".group_1065": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0",), + ".group_1066": ( "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2", "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems", ), - ".group_1066": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items",), - ".group_1067": ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0",), - ".group_1068": ( + ".group_1067": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items",), + ".group_1068": ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0",), + ".group_1069": ( "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2", "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems", ), - ".group_1069": ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items",), - ".group_1070": ("ReposOwnerRepoIssuesIssueNumberLockPutBody",), - ".group_1071": ("ReposOwnerRepoIssuesIssueNumberReactionsPostBody",), - ".group_1072": ("ReposOwnerRepoKeysPostBody",), - ".group_1073": ("ReposOwnerRepoLabelsPostBody",), - ".group_1074": ("ReposOwnerRepoLabelsNamePatchBody",), - ".group_1075": ("ReposOwnerRepoMergeUpstreamPostBody",), - ".group_1076": ("ReposOwnerRepoMergesPostBody",), - ".group_1077": ("ReposOwnerRepoMilestonesPostBody",), - ".group_1078": ("ReposOwnerRepoMilestonesMilestoneNumberPatchBody",), - ".group_1079": ("ReposOwnerRepoNotificationsPutBody",), - ".group_1080": ("ReposOwnerRepoNotificationsPutResponse202",), - ".group_1081": ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1",), - ".group_1082": ("ReposOwnerRepoPagesPutBodyAnyof0",), - ".group_1083": ("ReposOwnerRepoPagesPutBodyAnyof1",), - ".group_1084": ("ReposOwnerRepoPagesPutBodyAnyof2",), - ".group_1085": ("ReposOwnerRepoPagesPutBodyAnyof3",), - ".group_1086": ("ReposOwnerRepoPagesPutBodyAnyof4",), - ".group_1087": ("ReposOwnerRepoPagesPostBodyPropSource",), - ".group_1088": ("ReposOwnerRepoPagesPostBodyAnyof0",), - ".group_1089": ("ReposOwnerRepoPagesPostBodyAnyof1",), - ".group_1090": ("ReposOwnerRepoPagesDeploymentsPostBody",), - ".group_1091": ("ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200",), - ".group_1092": ("ReposOwnerRepoProjectsPostBody",), - ".group_1093": ("ReposOwnerRepoPropertiesValuesPatchBody",), - ".group_1094": ("ReposOwnerRepoPullsPostBody",), - ".group_1095": ("ReposOwnerRepoPullsCommentsCommentIdPatchBody",), - ".group_1096": ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody",), - ".group_1097": ("ReposOwnerRepoPullsPullNumberPatchBody",), - ".group_1098": ("ReposOwnerRepoPullsPullNumberCodespacesPostBody",), - ".group_1099": ("ReposOwnerRepoPullsPullNumberCommentsPostBody",), - ".group_1100": ( + ".group_1070": ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items",), + ".group_1071": ("ReposOwnerRepoIssuesIssueNumberLockPutBody",), + ".group_1072": ("ReposOwnerRepoIssuesIssueNumberReactionsPostBody",), + ".group_1073": ("ReposOwnerRepoKeysPostBody",), + ".group_1074": ("ReposOwnerRepoLabelsPostBody",), + ".group_1075": ("ReposOwnerRepoLabelsNamePatchBody",), + ".group_1076": ("ReposOwnerRepoMergeUpstreamPostBody",), + ".group_1077": ("ReposOwnerRepoMergesPostBody",), + ".group_1078": ("ReposOwnerRepoMilestonesPostBody",), + ".group_1079": ("ReposOwnerRepoMilestonesMilestoneNumberPatchBody",), + ".group_1080": ("ReposOwnerRepoNotificationsPutBody",), + ".group_1081": ("ReposOwnerRepoNotificationsPutResponse202",), + ".group_1082": ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1",), + ".group_1083": ("ReposOwnerRepoPagesPutBodyAnyof0",), + ".group_1084": ("ReposOwnerRepoPagesPutBodyAnyof1",), + ".group_1085": ("ReposOwnerRepoPagesPutBodyAnyof2",), + ".group_1086": ("ReposOwnerRepoPagesPutBodyAnyof3",), + ".group_1087": ("ReposOwnerRepoPagesPutBodyAnyof4",), + ".group_1088": ("ReposOwnerRepoPagesPostBodyPropSource",), + ".group_1089": ("ReposOwnerRepoPagesPostBodyAnyof0",), + ".group_1090": ("ReposOwnerRepoPagesPostBodyAnyof1",), + ".group_1091": ("ReposOwnerRepoPagesDeploymentsPostBody",), + ".group_1092": ("ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200",), + ".group_1093": ("ReposOwnerRepoProjectsPostBody",), + ".group_1094": ("ReposOwnerRepoPropertiesValuesPatchBody",), + ".group_1095": ("ReposOwnerRepoPullsPostBody",), + ".group_1096": ("ReposOwnerRepoPullsCommentsCommentIdPatchBody",), + ".group_1097": ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody",), + ".group_1098": ("ReposOwnerRepoPullsPullNumberPatchBody",), + ".group_1099": ("ReposOwnerRepoPullsPullNumberCodespacesPostBody",), + ".group_1100": ("ReposOwnerRepoPullsPullNumberCommentsPostBody",), + ".group_1101": ( "ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody", ), - ".group_1101": ("ReposOwnerRepoPullsPullNumberMergePutBody",), - ".group_1102": ("ReposOwnerRepoPullsPullNumberMergePutResponse405",), - ".group_1103": ("ReposOwnerRepoPullsPullNumberMergePutResponse409",), - ".group_1104": ( + ".group_1102": ("ReposOwnerRepoPullsPullNumberMergePutBody",), + ".group_1103": ("ReposOwnerRepoPullsPullNumberMergePutResponse405",), + ".group_1104": ("ReposOwnerRepoPullsPullNumberMergePutResponse409",), + ".group_1105": ( "ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0", ), - ".group_1105": ( + ".group_1106": ( "ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1", ), - ".group_1106": ("ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody",), - ".group_1107": ( + ".group_1107": ("ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody",), + ".group_1108": ( "ReposOwnerRepoPullsPullNumberReviewsPostBody", "ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems", ), - ".group_1108": ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody",), - ".group_1109": ( + ".group_1109": ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody",), + ".group_1110": ( "ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody", ), - ".group_1110": ("ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody",), - ".group_1111": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBody",), - ".group_1112": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202",), - ".group_1113": ("ReposOwnerRepoReleasesPostBody",), - ".group_1114": ("ReposOwnerRepoReleasesAssetsAssetIdPatchBody",), - ".group_1115": ("ReposOwnerRepoReleasesGenerateNotesPostBody",), - ".group_1116": ("ReposOwnerRepoReleasesReleaseIdPatchBody",), - ".group_1117": ("ReposOwnerRepoReleasesReleaseIdReactionsPostBody",), - ".group_1118": ("ReposOwnerRepoRulesetsPostBody",), - ".group_1119": ("ReposOwnerRepoRulesetsRulesetIdPutBody",), - ".group_1120": ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody",), - ".group_1121": ("ReposOwnerRepoStatusesShaPostBody",), - ".group_1122": ("ReposOwnerRepoSubscriptionPutBody",), - ".group_1123": ("ReposOwnerRepoTagsProtectionPostBody",), - ".group_1124": ("ReposOwnerRepoTopicsPutBody",), - ".group_1125": ("ReposOwnerRepoTransferPostBody",), - ".group_1126": ("ReposTemplateOwnerTemplateRepoGeneratePostBody",), - ".group_1127": ( + ".group_1111": ("ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody",), + ".group_1112": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBody",), + ".group_1113": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202",), + ".group_1114": ("ReposOwnerRepoReleasesPostBody",), + ".group_1115": ("ReposOwnerRepoReleasesAssetsAssetIdPatchBody",), + ".group_1116": ("ReposOwnerRepoReleasesGenerateNotesPostBody",), + ".group_1117": ("ReposOwnerRepoReleasesReleaseIdPatchBody",), + ".group_1118": ("ReposOwnerRepoReleasesReleaseIdReactionsPostBody",), + ".group_1119": ("ReposOwnerRepoRulesetsPostBody",), + ".group_1120": ("ReposOwnerRepoRulesetsRulesetIdPutBody",), + ".group_1121": ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody",), + ".group_1122": ("ReposOwnerRepoStatusesShaPostBody",), + ".group_1123": ("ReposOwnerRepoSubscriptionPutBody",), + ".group_1124": ("ReposOwnerRepoTagsProtectionPostBody",), + ".group_1125": ("ReposOwnerRepoTopicsPutBody",), + ".group_1126": ("ReposOwnerRepoTransferPostBody",), + ".group_1127": ("ReposTemplateOwnerTemplateRepoGeneratePostBody",), + ".group_1128": ( "ScimV2OrganizationsOrgUsersPostBody", "ScimV2OrganizationsOrgUsersPostBodyPropName", "ScimV2OrganizationsOrgUsersPostBodyPropEmailsItems", ), - ".group_1128": ( + ".group_1129": ( "ScimV2OrganizationsOrgUsersScimUserIdPutBody", "ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName", "ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems", ), - ".group_1129": ( + ".group_1130": ( "ScimV2OrganizationsOrgUsersScimUserIdPatchBody", "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItems", "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0", "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1Items", ), - ".group_1130": ("TeamsTeamIdPatchBody",), - ".group_1131": ("TeamsTeamIdDiscussionsPostBody",), - ".group_1132": ("TeamsTeamIdDiscussionsDiscussionNumberPatchBody",), - ".group_1133": ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody",), - ".group_1134": ( + ".group_1131": ("TeamsTeamIdPatchBody",), + ".group_1132": ("TeamsTeamIdDiscussionsPostBody",), + ".group_1133": ("TeamsTeamIdDiscussionsDiscussionNumberPatchBody",), + ".group_1134": ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody",), + ".group_1135": ( "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody", ), - ".group_1135": ( + ".group_1136": ( "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody", ), - ".group_1136": ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody",), - ".group_1137": ("TeamsTeamIdMembershipsUsernamePutBody",), - ".group_1138": ("TeamsTeamIdProjectsProjectIdPutBody",), - ".group_1139": ("TeamsTeamIdProjectsProjectIdPutResponse403",), - ".group_1140": ("TeamsTeamIdReposOwnerRepoPutBody",), - ".group_1141": ( + ".group_1137": ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody",), + ".group_1138": ("TeamsTeamIdMembershipsUsernamePutBody",), + ".group_1139": ("TeamsTeamIdProjectsProjectIdPutBody",), + ".group_1140": ("TeamsTeamIdProjectsProjectIdPutResponse403",), + ".group_1141": ("TeamsTeamIdReposOwnerRepoPutBody",), + ".group_1142": ( "TeamsTeamIdTeamSyncGroupMappingsPatchBody", "TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItems", ), - ".group_1142": ("UserPatchBody",), - ".group_1143": ("UserCodespacesGetResponse200",), - ".group_1144": ("UserCodespacesPostBodyOneof0",), - ".group_1145": ( + ".group_1143": ("UserPatchBody",), + ".group_1144": ("UserCodespacesGetResponse200",), + ".group_1145": ("UserCodespacesPostBodyOneof0",), + ".group_1146": ( "UserCodespacesPostBodyOneof1", "UserCodespacesPostBodyOneof1PropPullRequest", ), - ".group_1146": ( + ".group_1147": ( "UserCodespacesSecretsGetResponse200", "CodespacesSecret", ), - ".group_1147": ("UserCodespacesSecretsSecretNamePutBody",), - ".group_1148": ("UserCodespacesSecretsSecretNameRepositoriesGetResponse200",), - ".group_1149": ("UserCodespacesSecretsSecretNameRepositoriesPutBody",), - ".group_1150": ("UserCodespacesCodespaceNamePatchBody",), - ".group_1151": ("UserCodespacesCodespaceNameMachinesGetResponse200",), - ".group_1152": ("UserCodespacesCodespaceNamePublishPostBody",), - ".group_1153": ("UserEmailVisibilityPatchBody",), - ".group_1154": ("UserEmailsPostBodyOneof0",), - ".group_1155": ("UserEmailsDeleteBodyOneof0",), - ".group_1156": ("UserGpgKeysPostBody",), - ".group_1157": ("UserInstallationsGetResponse200",), - ".group_1158": ("UserInstallationsInstallationIdRepositoriesGetResponse200",), - ".group_1159": ("UserInteractionLimitsGetResponse200Anyof1",), - ".group_1160": ("UserKeysPostBody",), - ".group_1161": ("UserMembershipsOrgsOrgPatchBody",), - ".group_1162": ("UserMigrationsPostBody",), - ".group_1163": ("UserProjectsPostBody",), - ".group_1164": ("UserReposPostBody",), - ".group_1165": ("UserSocialAccountsPostBody",), - ".group_1166": ("UserSocialAccountsDeleteBody",), - ".group_1167": ("UserSshSigningKeysPostBody",), - ".group_1168": ( + ".group_1148": ("UserCodespacesSecretsSecretNamePutBody",), + ".group_1149": ("UserCodespacesSecretsSecretNameRepositoriesGetResponse200",), + ".group_1150": ("UserCodespacesSecretsSecretNameRepositoriesPutBody",), + ".group_1151": ("UserCodespacesCodespaceNamePatchBody",), + ".group_1152": ("UserCodespacesCodespaceNameMachinesGetResponse200",), + ".group_1153": ("UserCodespacesCodespaceNamePublishPostBody",), + ".group_1154": ("UserEmailVisibilityPatchBody",), + ".group_1155": ("UserEmailsPostBodyOneof0",), + ".group_1156": ("UserEmailsDeleteBodyOneof0",), + ".group_1157": ("UserGpgKeysPostBody",), + ".group_1158": ("UserInstallationsGetResponse200",), + ".group_1159": ("UserInstallationsInstallationIdRepositoriesGetResponse200",), + ".group_1160": ("UserInteractionLimitsGetResponse200Anyof1",), + ".group_1161": ("UserKeysPostBody",), + ".group_1162": ("UserMembershipsOrgsOrgPatchBody",), + ".group_1163": ("UserMigrationsPostBody",), + ".group_1164": ("UserProjectsPostBody",), + ".group_1165": ("UserReposPostBody",), + ".group_1166": ("UserSocialAccountsPostBody",), + ".group_1167": ("UserSocialAccountsDeleteBody",), + ".group_1168": ("UserSshSigningKeysPostBody",), + ".group_1169": ( "UsersUsernameAttestationsSubjectDigestGetResponse200", "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems", "SigstoreBundle0", diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0086.py b/githubkit/versions/ghec_v2022_11_28/models/group_0086.py index f8d2ce7bf..084875d76 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0086.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0086.py @@ -75,27 +75,27 @@ class OrganizationFull(GitHubModel): web_commit_signoff_required: Missing[bool] = Field(default=UNSET) advanced_security_enabled_for_new_repositories: Missing[bool] = Field( default=UNSET, - description="Whether 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.", + description="**Deprecated.** 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="Whether GitHub Advanced Security is automatically enabled for new repositories and repositories transferred to\nthis organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", + description="**Deprecated.** 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="Whether dependabot security updates are automatically enabled for new repositories and repositories transferred\nto this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", + description="**Deprecated.** 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="Whether dependency graph is automatically enabled for new repositories and repositories transferred to this\norganization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", + description="**Deprecated.** 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="Whether secret scanning is automatically enabled for new repositories and repositories transferred to this\norganization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", + description="**Deprecated.** 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="Whether secret scanning push protection is automatically enabled for new repositories and repositories\ntransferred to this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", + description="**Deprecated.** 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, @@ -107,7 +107,7 @@ class OrganizationFull(GitHubModel): ) secret_scanning_validity_checks_enabled: Missing[bool] = Field( default=UNSET, - description="Whether secret scanning automatic validity checks on supported partner tokens is enabled for all repositories under this organization.", + description="**Deprecated.** 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() diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0090.py b/githubkit/versions/ghec_v2022_11_28/models/group_0090.py index f3d32b974..dc9b025ac 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0090.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0090.py @@ -80,6 +80,9 @@ class CodeSecurityConfiguration(GitHubModel): 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" + ) url: Missing[str] = Field(default=UNSET, description="The URL of the configuration") html_url: Missing[str] = Field( default=UNSET, description="The URL of the configuration" 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 2470f64df..da5f750a5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0839.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0839.py @@ -99,27 +99,27 @@ class OrgsOrgPatchBody(GitHubModel): blog: Missing[str] = Field(default=UNSET) advanced_security_enabled_for_new_repositories: Missing[bool] = Field( default=UNSET, - description='Whether GitHub Advanced Security is automatically enabled for new repositories.\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.', + description='**Deprecated.** 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='Whether Dependabot alerts is automatically enabled for new repositories.\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.', + description='**Deprecated.** 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='Whether Dependabot security updates is automatically enabled for new repositories.\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.', + description='**Deprecated.** 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='Whether dependency graph is automatically enabled for new repositories.\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.', + description='**Deprecated.** 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='Whether secret scanning is automatically enabled for new repositories.\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.', + description='**Deprecated.** 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='Whether secret scanning push protection is automatically enabled for new repositories.\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.', + description='**Deprecated.** 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, @@ -131,7 +131,7 @@ class OrgsOrgPatchBody(GitHubModel): ) secret_scanning_validity_checks_enabled: Missing[bool] = Field( default=UNSET, - description="Whether secret scanning automatic validity checks on supported partner tokens is enabled for all repositories under this organization.", + description="**Deprecated.** 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.", ) 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 2da6058bd..765e1495c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0865.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0865.py @@ -69,6 +69,9 @@ class OrgsOrgCodeSecurityConfigurationsPostBody(GitHubModel): default=UNSET, description="The enablement status of private vulnerability reporting", ) + enforcement: Missing[Literal["enforced", "unenforced"]] = Field( + default=UNSET, description="The status of enforcement" + ) model_rebuild(OrgsOrgCodeSecurityConfigurationsPostBody) 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 1072146d2..04915d58c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0866.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0866.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import List from pydantic import Field @@ -18,62 +18,15 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody(GitHubModel): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody""" +class OrgsOrgCodeSecurityConfigurationsDetachDeleteBody(GitHubModel): + """OrgsOrgCodeSecurityConfigurationsDetachDeleteBody""" - name: Missing[str] = Field( + selected_repository_ids: Missing[List[int]] = 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"]] = Field( - default=UNSET, description="The enablement status of GitHub Advanced Security" - ) - dependency_graph: Missing[Literal["enabled", "disabled", "not_set"]] = Field( - default=UNSET, description="The enablement status of Dependency Graph" - ) - 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", - ) - ) - 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", - ) - private_vulnerability_reporting: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of private vulnerability reporting", + description="An array of repository IDs to detach from configurations.", ) -model_rebuild(OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody) +model_rebuild(OrgsOrgCodeSecurityConfigurationsDetachDeleteBody) -__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody",) +__all__ = ("OrgsOrgCodeSecurityConfigurationsDetachDeleteBody",) 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 e88386374..01ce26c33 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0867.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0867.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Literal +from typing import Literal from pydantic import Field @@ -18,18 +18,65 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody(GitHubModel): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody""" +class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody(GitHubModel): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody""" - scope: Literal["all", "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`" + 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"]] = Field( + default=UNSET, description="The enablement status of GitHub Advanced Security" + ) + dependency_graph: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, description="The enablement status of Dependency Graph" + ) + 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", + ) ) - 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", + ) + ) + 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="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`.", + description="The enablement status of secret scanning validity checks", + ) + 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 status of enforcement" ) -model_rebuild(OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody) +model_rebuild(OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody) -__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody",) +__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody",) 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 0a1d8ab6e..e88386374 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0868.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0868.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import List, Literal from pydantic import Field @@ -18,17 +18,18 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody(GitHubModel): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody""" +class OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody(GitHubModel): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody""" - default_for_new_repos: Missing[ - Literal["all", "none", "private_and_internal", "public"] - ] = Field( + scope: Literal["all", "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="Specify which types of repository this security configuration should be applied to by default.", + 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(OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody) +model_rebuild(OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody) -__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody",) +__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody",) 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 bebe74706..0a1d8ab6e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0869.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0869.py @@ -17,25 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0090 import CodeSecurityConfiguration - -class OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200( - GitHubModel -): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200""" +class OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody(GitHubModel): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody""" 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" + description="Specify which types of repository this security configuration should be applied to by default.", ) -model_rebuild(OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200) +model_rebuild(OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody) -__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200",) +__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody",) 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 1aaa6fb2c..bebe74706 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0870.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0870.py @@ -9,22 +9,33 @@ from __future__ import annotations -from typing import List +from typing import Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0094 import Codespace +from .group_0090 import CodeSecurityConfiguration -class OrgsOrgCodespacesGetResponse200(GitHubModel): - """OrgsOrgCodespacesGetResponse200""" +class OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200( + GitHubModel +): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200""" - total_count: int = Field() - codespaces: List[Codespace] = Field() + 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(OrgsOrgCodespacesGetResponse200) +model_rebuild(OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200) -__all__ = ("OrgsOrgCodespacesGetResponse200",) +__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200",) 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 cd24940ff..1aaa6fb2c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0871.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0871.py @@ -9,33 +9,22 @@ from __future__ import annotations -from typing import List, Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0094 import Codespace -class OrgsOrgCodespacesAccessPutBody(GitHubModel): - """OrgsOrgCodespacesAccessPutBody""" - 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, - 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.", - ) +class OrgsOrgCodespacesGetResponse200(GitHubModel): + """OrgsOrgCodespacesGetResponse200""" + total_count: int = Field() + codespaces: List[Codespace] = Field() -model_rebuild(OrgsOrgCodespacesAccessPutBody) -__all__ = ("OrgsOrgCodespacesAccessPutBody",) +model_rebuild(OrgsOrgCodespacesGetResponse200) + +__all__ = ("OrgsOrgCodespacesGetResponse200",) 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 9c21960a6..cd24940ff 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0872.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0872.py @@ -9,22 +9,33 @@ from __future__ import annotations -from typing import List +from typing import List, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgCodespacesAccessSelectedUsersPostBody(GitHubModel): - """OrgsOrgCodespacesAccessSelectedUsersPostBody""" +class OrgsOrgCodespacesAccessPutBody(GitHubModel): + """OrgsOrgCodespacesAccessPutBody""" - selected_usernames: List[str] = Field( + 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, - description="The usernames of the organization members whose codespaces be billed to the organization.", + 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(OrgsOrgCodespacesAccessSelectedUsersPostBody) +model_rebuild(OrgsOrgCodespacesAccessPutBody) -__all__ = ("OrgsOrgCodespacesAccessSelectedUsersPostBody",) +__all__ = ("OrgsOrgCodespacesAccessPutBody",) 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 83b1c7887..9c21960a6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0873.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0873.py @@ -16,15 +16,15 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgCodespacesAccessSelectedUsersDeleteBody(GitHubModel): - """OrgsOrgCodespacesAccessSelectedUsersDeleteBody""" +class OrgsOrgCodespacesAccessSelectedUsersPostBody(GitHubModel): + """OrgsOrgCodespacesAccessSelectedUsersPostBody""" selected_usernames: List[str] = Field( max_length=100, - description="The usernames of the organization members whose codespaces should not be billed to the organization.", + description="The usernames of the organization members whose codespaces be billed to the organization.", ) -model_rebuild(OrgsOrgCodespacesAccessSelectedUsersDeleteBody) +model_rebuild(OrgsOrgCodespacesAccessSelectedUsersPostBody) -__all__ = ("OrgsOrgCodespacesAccessSelectedUsersDeleteBody",) +__all__ = ("OrgsOrgCodespacesAccessSelectedUsersPostBody",) 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 05a3214de..83b1c7887 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0874.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0874.py @@ -9,49 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgCodespacesSecretsGetResponse200(GitHubModel): - """OrgsOrgCodespacesSecretsGetResponse200""" +class OrgsOrgCodespacesAccessSelectedUsersDeleteBody(GitHubModel): + """OrgsOrgCodespacesAccessSelectedUsersDeleteBody""" - total_count: int = Field() - secrets: List[CodespacesOrgSecret] = Field() - - -class CodespacesOrgSecret(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 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", + selected_usernames: List[str] = Field( + max_length=100, + description="The usernames of the organization members whose codespaces should not be billed to the organization.", ) -model_rebuild(OrgsOrgCodespacesSecretsGetResponse200) -model_rebuild(CodespacesOrgSecret) +model_rebuild(OrgsOrgCodespacesAccessSelectedUsersDeleteBody) -__all__ = ( - "OrgsOrgCodespacesSecretsGetResponse200", - "CodespacesOrgSecret", -) +__all__ = ("OrgsOrgCodespacesAccessSelectedUsersDeleteBody",) 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 c722332b8..05a3214de 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0875.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0875.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import List, Literal from pydantic import Field @@ -18,26 +19,39 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgCodespacesSecretsSecretNamePutBody(GitHubModel): - """OrgsOrgCodespacesSecretsSecretNamePutBody""" +class OrgsOrgCodespacesSecretsGetResponse200(GitHubModel): + """OrgsOrgCodespacesSecretsGetResponse200""" - 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.", + total_count: int = Field() + secrets: List[CodespacesOrgSecret] = Field() + + +class CodespacesOrgSecret(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." ) - key_id: Missing[str] = Field( - default=UNSET, description="The ID of the key you used to encrypt the secret." + 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="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." + description="The type of repositories in the organization that the secret is visible to" ) - selected_repository_ids: Missing[List[int]] = Field( + selected_repositories_url: 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/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="The API URL at which the list of repositories this secret is visible to can be retrieved", ) -model_rebuild(OrgsOrgCodespacesSecretsSecretNamePutBody) +model_rebuild(OrgsOrgCodespacesSecretsGetResponse200) +model_rebuild(CodespacesOrgSecret) -__all__ = ("OrgsOrgCodespacesSecretsSecretNamePutBody",) +__all__ = ( + "OrgsOrgCodespacesSecretsGetResponse200", + "CodespacesOrgSecret", +) 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 35f877dcd..c722332b8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0876.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0876.py @@ -9,22 +9,35 @@ from __future__ import annotations -from typing import List +from typing import List, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0082 import MinimalRepository +class OrgsOrgCodespacesSecretsSecretNamePutBody(GitHubModel): + """OrgsOrgCodespacesSecretsSecretNamePutBody""" -class OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200(GitHubModel): - """OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200""" + 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.", + ) - total_count: int = Field() - repositories: List[MinimalRepository] = Field() +model_rebuild(OrgsOrgCodespacesSecretsSecretNamePutBody) -model_rebuild(OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200) - -__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200",) +__all__ = ("OrgsOrgCodespacesSecretsSecretNamePutBody",) 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 333670cb3..35f877dcd 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0877.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0877.py @@ -15,15 +15,16 @@ from githubkit.compat import GitHubModel, model_rebuild +from .group_0082 import MinimalRepository -class OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody(GitHubModel): - """OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody""" - 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." - ) +class OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200(GitHubModel): + """OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200""" + total_count: int = Field() + repositories: List[MinimalRepository] = Field() -model_rebuild(OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody) -__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody",) +model_rebuild(OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200) + +__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200",) 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 bf2ee2be8..333670cb3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0878.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0878.py @@ -13,23 +13,17 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0049 import CopilotSeatDetails +class OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody(GitHubModel): + """OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody""" -class OrgsOrgCopilotBillingSeatsGetResponse200(GitHubModel): - """OrgsOrgCopilotBillingSeatsGetResponse200""" - - total_seats: Missing[int] = Field( - default=UNSET, - description="Total number of Copilot seats for the organization currently being billed.", + 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." ) - seats: Missing[List[CopilotSeatDetails]] = Field(default=UNSET) -model_rebuild(OrgsOrgCopilotBillingSeatsGetResponse200) +model_rebuild(OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody) -__all__ = ("OrgsOrgCopilotBillingSeatsGetResponse200",) +__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody",) 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 022333c11..bf2ee2be8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0879.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0879.py @@ -13,18 +13,23 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0049 import CopilotSeatDetails -class OrgsOrgCopilotBillingSelectedTeamsPostBody(GitHubModel): - """OrgsOrgCopilotBillingSelectedTeamsPostBody""" - selected_teams: List[str] = Field( - min_length=1, - description="List of team names within the organization to which to grant access to GitHub Copilot.", +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(OrgsOrgCopilotBillingSelectedTeamsPostBody) +model_rebuild(OrgsOrgCopilotBillingSeatsGetResponse200) -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostBody",) +__all__ = ("OrgsOrgCopilotBillingSeatsGetResponse200",) 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 584db74a2..022333c11 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0880.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0880.py @@ -9,20 +9,22 @@ from __future__ import annotations +from typing import List + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgCopilotBillingSelectedTeamsPostResponse201(GitHubModel): - """OrgsOrgCopilotBillingSelectedTeamsPostResponse201 - - The total number of seat assignments created. - """ +class OrgsOrgCopilotBillingSelectedTeamsPostBody(GitHubModel): + """OrgsOrgCopilotBillingSelectedTeamsPostBody""" - seats_created: int = Field() + selected_teams: List[str] = Field( + min_length=1, + description="List of team names within the organization to which to grant access to GitHub Copilot.", + ) -model_rebuild(OrgsOrgCopilotBillingSelectedTeamsPostResponse201) +model_rebuild(OrgsOrgCopilotBillingSelectedTeamsPostBody) -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201",) +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostBody",) 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 e5bd04750..584db74a2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0881.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0881.py @@ -9,22 +9,20 @@ from __future__ import annotations -from typing import List - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgCopilotBillingSelectedTeamsDeleteBody(GitHubModel): - """OrgsOrgCopilotBillingSelectedTeamsDeleteBody""" +class OrgsOrgCopilotBillingSelectedTeamsPostResponse201(GitHubModel): + """OrgsOrgCopilotBillingSelectedTeamsPostResponse201 + + The total number of seat assignments created. + """ - selected_teams: List[str] = Field( - min_length=1, - description="The names of teams from which to revoke access to GitHub Copilot.", - ) + seats_created: int = Field() -model_rebuild(OrgsOrgCopilotBillingSelectedTeamsDeleteBody) +model_rebuild(OrgsOrgCopilotBillingSelectedTeamsPostResponse201) -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteBody",) +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201",) 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 e6a322116..e5bd04750 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0882.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0882.py @@ -9,20 +9,22 @@ from __future__ import annotations +from typing import List + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200(GitHubModel): - """OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200 - - The total number of seat assignments cancelled. - """ +class OrgsOrgCopilotBillingSelectedTeamsDeleteBody(GitHubModel): + """OrgsOrgCopilotBillingSelectedTeamsDeleteBody""" - seats_cancelled: int = Field() + selected_teams: List[str] = Field( + min_length=1, + description="The names of teams from which to revoke access to GitHub Copilot.", + ) -model_rebuild(OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200) +model_rebuild(OrgsOrgCopilotBillingSelectedTeamsDeleteBody) -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200",) +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteBody",) 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 184351fa2..e6a322116 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0883.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0883.py @@ -9,22 +9,20 @@ from __future__ import annotations -from typing import List - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgCopilotBillingSelectedUsersPostBody(GitHubModel): - """OrgsOrgCopilotBillingSelectedUsersPostBody""" +class OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200(GitHubModel): + """OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200 + + The total number of seat assignments cancelled. + """ - selected_usernames: List[str] = Field( - min_length=1, - description="The usernames of the organization members to be granted access to GitHub Copilot.", - ) + seats_cancelled: int = Field() -model_rebuild(OrgsOrgCopilotBillingSelectedUsersPostBody) +model_rebuild(OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200) -__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostBody",) +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200",) 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 6e2dccf88..184351fa2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0884.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0884.py @@ -9,20 +9,22 @@ from __future__ import annotations +from typing import List + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgCopilotBillingSelectedUsersPostResponse201(GitHubModel): - """OrgsOrgCopilotBillingSelectedUsersPostResponse201 - - The total number of seat assignments created. - """ +class OrgsOrgCopilotBillingSelectedUsersPostBody(GitHubModel): + """OrgsOrgCopilotBillingSelectedUsersPostBody""" - seats_created: int = Field() + selected_usernames: List[str] = Field( + min_length=1, + description="The usernames of the organization members to be granted access to GitHub Copilot.", + ) -model_rebuild(OrgsOrgCopilotBillingSelectedUsersPostResponse201) +model_rebuild(OrgsOrgCopilotBillingSelectedUsersPostBody) -__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostResponse201",) +__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostBody",) 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 291c94f37..6e2dccf88 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0885.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0885.py @@ -9,22 +9,20 @@ from __future__ import annotations -from typing import List - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgCopilotBillingSelectedUsersDeleteBody(GitHubModel): - """OrgsOrgCopilotBillingSelectedUsersDeleteBody""" +class OrgsOrgCopilotBillingSelectedUsersPostResponse201(GitHubModel): + """OrgsOrgCopilotBillingSelectedUsersPostResponse201 + + The total number of seat assignments created. + """ - selected_usernames: List[str] = Field( - min_length=1, - description="The usernames of the organization members for which to revoke access to GitHub Copilot.", - ) + seats_created: int = Field() -model_rebuild(OrgsOrgCopilotBillingSelectedUsersDeleteBody) +model_rebuild(OrgsOrgCopilotBillingSelectedUsersPostResponse201) -__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteBody",) +__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostResponse201",) 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 803b279ed..291c94f37 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0886.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0886.py @@ -9,20 +9,22 @@ from __future__ import annotations +from typing import List + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgCopilotBillingSelectedUsersDeleteResponse200(GitHubModel): - """OrgsOrgCopilotBillingSelectedUsersDeleteResponse200 - - The total number of seat assignments cancelled. - """ +class OrgsOrgCopilotBillingSelectedUsersDeleteBody(GitHubModel): + """OrgsOrgCopilotBillingSelectedUsersDeleteBody""" - seats_cancelled: int = Field() + selected_usernames: List[str] = Field( + min_length=1, + description="The usernames of the organization members for which to revoke access to GitHub Copilot.", + ) -model_rebuild(OrgsOrgCopilotBillingSelectedUsersDeleteResponse200) +model_rebuild(OrgsOrgCopilotBillingSelectedUsersDeleteBody) -__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200",) +__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteBody",) 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 76f03189a..803b279ed 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0887.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0887.py @@ -9,26 +9,20 @@ from __future__ import annotations -from typing import List - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0085 import OrganizationCustomRepositoryRole +class OrgsOrgCopilotBillingSelectedUsersDeleteResponse200(GitHubModel): + """OrgsOrgCopilotBillingSelectedUsersDeleteResponse200 -class OrgsOrgCustomRepositoryRolesGetResponse200(GitHubModel): - """OrgsOrgCustomRepositoryRolesGetResponse200""" + The total number of seat assignments cancelled. + """ - total_count: Missing[int] = Field( - default=UNSET, description="The number of custom roles in this organization" - ) - custom_roles: Missing[List[OrganizationCustomRepositoryRole]] = Field(default=UNSET) + seats_cancelled: int = Field() -model_rebuild(OrgsOrgCustomRepositoryRolesGetResponse200) +model_rebuild(OrgsOrgCopilotBillingSelectedUsersDeleteResponse200) -__all__ = ("OrgsOrgCustomRepositoryRolesGetResponse200",) +__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200",) 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 e04c76aa7..76f03189a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0888.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0888.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal +from typing import List from pydantic import Field @@ -18,33 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0085 import OrganizationCustomRepositoryRole -class OrgsOrgDependabotSecretsGetResponse200(GitHubModel): - """OrgsOrgDependabotSecretsGetResponse200""" - total_count: int = Field() - secrets: List[OrganizationDependabotSecret] = Field() +class OrgsOrgCustomRepositoryRolesGetResponse200(GitHubModel): + """OrgsOrgCustomRepositoryRolesGetResponse200""" - -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" + total_count: Missing[int] = Field( + default=UNSET, description="The number of custom roles in this organization" ) - selected_repositories_url: Missing[str] = Field(default=UNSET) + custom_roles: Missing[List[OrganizationCustomRepositoryRole]] = Field(default=UNSET) -model_rebuild(OrgsOrgDependabotSecretsGetResponse200) -model_rebuild(OrganizationDependabotSecret) +model_rebuild(OrgsOrgCustomRepositoryRolesGetResponse200) -__all__ = ( - "OrgsOrgDependabotSecretsGetResponse200", - "OrganizationDependabotSecret", -) +__all__ = ("OrgsOrgCustomRepositoryRolesGetResponse200",) 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 66a73d449..e04c76aa7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0889.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0889.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import List, Literal from pydantic import Field @@ -18,26 +19,32 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgDependabotSecretsSecretNamePutBody(GitHubModel): - """OrgsOrgDependabotSecretsSecretNamePutBody""" +class OrgsOrgDependabotSecretsGetResponse200(GitHubModel): + """OrgsOrgDependabotSecretsGetResponse200""" - 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." - ) + 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="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.", + description="Visibility of a secret" ) + selected_repositories_url: Missing[str] = Field(default=UNSET) -model_rebuild(OrgsOrgDependabotSecretsSecretNamePutBody) +model_rebuild(OrgsOrgDependabotSecretsGetResponse200) +model_rebuild(OrganizationDependabotSecret) -__all__ = ("OrgsOrgDependabotSecretsSecretNamePutBody",) +__all__ = ( + "OrgsOrgDependabotSecretsGetResponse200", + "OrganizationDependabotSecret", +) 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 6715d639a..66a73d449 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0890.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0890.py @@ -9,22 +9,35 @@ from __future__ import annotations -from typing import List +from typing import List, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0082 import MinimalRepository +class OrgsOrgDependabotSecretsSecretNamePutBody(GitHubModel): + """OrgsOrgDependabotSecretsSecretNamePutBody""" -class OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200(GitHubModel): - """OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200""" + 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.", + ) - total_count: int = Field() - repositories: List[MinimalRepository] = Field() +model_rebuild(OrgsOrgDependabotSecretsSecretNamePutBody) -model_rebuild(OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200) - -__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200",) +__all__ = ("OrgsOrgDependabotSecretsSecretNamePutBody",) 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 d4797058d..6715d639a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0891.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0891.py @@ -15,15 +15,16 @@ from githubkit.compat import GitHubModel, model_rebuild +from .group_0082 import MinimalRepository -class OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody(GitHubModel): - """OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody""" - 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." - ) +class OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200(GitHubModel): + """OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200""" + total_count: int = Field() + repositories: List[MinimalRepository] = Field() -model_rebuild(OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody) -__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody",) +model_rebuild(OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200) + +__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200",) 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 d5f7fdb7f..d4797058d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0892.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0892.py @@ -9,56 +9,21 @@ from __future__ import annotations -from typing import List, Union +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgHooksPostBody(GitHubModel): - """OrgsOrgHooksPostBody""" +class OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody(GitHubModel): + """OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody""" - name: str = Field(description='Must be passed as "web".') - config: OrgsOrgHooksPostBodyPropConfig = Field( - description="Key/value pairs to provide settings for this webhook." + 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." ) - 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. - """ - - 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(OrgsOrgHooksPostBody) -model_rebuild(OrgsOrgHooksPostBodyPropConfig) +model_rebuild(OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody) -__all__ = ( - "OrgsOrgHooksPostBody", - "OrgsOrgHooksPostBodyPropConfig", -) +__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody",) 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 a7298f36e..d5f7fdb7f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0893.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0893.py @@ -18,26 +18,25 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgHooksHookIdPatchBody(GitHubModel): - """OrgsOrgHooksHookIdPatchBody""" +class OrgsOrgHooksPostBody(GitHubModel): + """OrgsOrgHooksPostBody""" - config: Missing[OrgsOrgHooksHookIdPatchBodyPropConfig] = Field( - default=UNSET, - description="Key/value pairs to provide settings for this webhook.", + 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.", + 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.", ) - name: Missing[str] = Field(default=UNSET) -class OrgsOrgHooksHookIdPatchBodyPropConfig(GitHubModel): - """OrgsOrgHooksHookIdPatchBodyPropConfig +class OrgsOrgHooksPostBodyPropConfig(GitHubModel): + """OrgsOrgHooksPostBodyPropConfig Key/value pairs to provide settings for this webhook. """ @@ -52,12 +51,14 @@ class OrgsOrgHooksHookIdPatchBodyPropConfig(GitHubModel): 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(OrgsOrgHooksHookIdPatchBody) -model_rebuild(OrgsOrgHooksHookIdPatchBodyPropConfig) +model_rebuild(OrgsOrgHooksPostBody) +model_rebuild(OrgsOrgHooksPostBodyPropConfig) __all__ = ( - "OrgsOrgHooksHookIdPatchBody", - "OrgsOrgHooksHookIdPatchBodyPropConfig", + "OrgsOrgHooksPostBody", + "OrgsOrgHooksPostBodyPropConfig", ) 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 985d78ccf..a7298f36e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0894.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0894.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import List, Union from pydantic import Field @@ -18,12 +18,31 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgHooksHookIdConfigPatchBody(GitHubModel): - """OrgsOrgHooksHookIdConfigPatchBody""" +class OrgsOrgHooksHookIdPatchBody(GitHubModel): + """OrgsOrgHooksHookIdPatchBody""" - url: Missing[str] = Field( - default=UNSET, description="The URL to which the payloads will be delivered." + 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`.", @@ -35,6 +54,10 @@ class OrgsOrgHooksHookIdConfigPatchBody(GitHubModel): insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) -model_rebuild(OrgsOrgHooksHookIdConfigPatchBody) +model_rebuild(OrgsOrgHooksHookIdPatchBody) +model_rebuild(OrgsOrgHooksHookIdPatchBodyPropConfig) -__all__ = ("OrgsOrgHooksHookIdConfigPatchBody",) +__all__ = ( + "OrgsOrgHooksHookIdPatchBody", + "OrgsOrgHooksHookIdPatchBodyPropConfig", +) 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 82b58fb44..985d78ccf 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0895.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0895.py @@ -9,22 +9,32 @@ from __future__ import annotations -from typing import List +from typing import Union from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0015 import Installation +class OrgsOrgHooksHookIdConfigPatchBody(GitHubModel): + """OrgsOrgHooksHookIdConfigPatchBody""" -class OrgsOrgInstallationsGetResponse200(GitHubModel): - """OrgsOrgInstallationsGetResponse200""" + 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() - installations: List[Installation] = Field() +model_rebuild(OrgsOrgHooksHookIdConfigPatchBody) -model_rebuild(OrgsOrgInstallationsGetResponse200) - -__all__ = ("OrgsOrgInstallationsGetResponse200",) +__all__ = ("OrgsOrgHooksHookIdConfigPatchBody",) 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 17fac965f..82b58fb44 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,22 @@ from __future__ import annotations +from typing import List + +from pydantic import Field + from githubkit.compat import GitHubModel, model_rebuild +from .group_0015 import Installation + + +class OrgsOrgInstallationsGetResponse200(GitHubModel): + """OrgsOrgInstallationsGetResponse200""" -class OrgsOrgInteractionLimitsGetResponse200Anyof1(GitHubModel): - """OrgsOrgInteractionLimitsGetResponse200Anyof1""" + total_count: int = Field() + installations: List[Installation] = Field() -model_rebuild(OrgsOrgInteractionLimitsGetResponse200Anyof1) +model_rebuild(OrgsOrgInstallationsGetResponse200) -__all__ = ("OrgsOrgInteractionLimitsGetResponse200Anyof1",) +__all__ = ("OrgsOrgInstallationsGetResponse200",) 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 22b6534f0..17fac965f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0897.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0897.py @@ -9,38 +9,13 @@ from __future__ import annotations -from typing import List, Literal +from githubkit.compat import GitHubModel, model_rebuild -from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +class OrgsOrgInteractionLimitsGetResponse200Anyof1(GitHubModel): + """OrgsOrgInteractionLimitsGetResponse200Anyof1""" + +model_rebuild(OrgsOrgInteractionLimitsGetResponse200Anyof1) -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.", - ) - - -model_rebuild(OrgsOrgInvitationsPostBody) - -__all__ = ("OrgsOrgInvitationsPostBody",) +__all__ = ("OrgsOrgInteractionLimitsGetResponse200Anyof1",) 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 2d110d104..22b6534f0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0898.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0898.py @@ -9,22 +9,38 @@ from __future__ import annotations -from typing import List +from typing import List, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0094 import Codespace - -class OrgsOrgMembersUsernameCodespacesGetResponse200(GitHubModel): - """OrgsOrgMembersUsernameCodespacesGetResponse200""" - - total_count: int = Field() - codespaces: List[Codespace] = Field() - - -model_rebuild(OrgsOrgMembersUsernameCodespacesGetResponse200) - -__all__ = ("OrgsOrgMembersUsernameCodespacesGetResponse200",) +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.", + ) + + +model_rebuild(OrgsOrgInvitationsPostBody) + +__all__ = ("OrgsOrgInvitationsPostBody",) 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 0fda1e440..2d110d104 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0899.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0899.py @@ -9,24 +9,22 @@ from __future__ import annotations -from typing import Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0094 import Codespace -class OrgsOrgMembershipsUsernamePutBody(GitHubModel): - """OrgsOrgMembershipsUsernamePutBody""" - 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.", - ) +class OrgsOrgMembersUsernameCodespacesGetResponse200(GitHubModel): + """OrgsOrgMembersUsernameCodespacesGetResponse200""" + total_count: int = Field() + codespaces: List[Codespace] = Field() -model_rebuild(OrgsOrgMembershipsUsernamePutBody) -__all__ = ("OrgsOrgMembershipsUsernamePutBody",) +model_rebuild(OrgsOrgMembersUsernameCodespacesGetResponse200) + +__all__ = ("OrgsOrgMembersUsernameCodespacesGetResponse200",) 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 7a28ea6f2..0fda1e440 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0900.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0900.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Literal +from typing import Literal from pydantic import Field @@ -18,46 +18,15 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgMigrationsPostBody(GitHubModel): - """OrgsOrgMigrationsPostBody""" +class OrgsOrgMembershipsUsernamePutBody(GitHubModel): + """OrgsOrgMembershipsUsernamePutBody""" - 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( + role: Missing[Literal["admin", "member"]] = Field( default=UNSET, - description="Exclude related items from being returned in the response in order to improve performance of the request.", + 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(OrgsOrgMigrationsPostBody) +model_rebuild(OrgsOrgMembershipsUsernamePutBody) -__all__ = ("OrgsOrgMigrationsPostBody",) +__all__ = ("OrgsOrgMembershipsUsernamePutBody",) 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 442fd0c33..7a28ea6f2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0901.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0901.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List +from typing import List, Literal from pydantic import Field @@ -18,19 +18,46 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgOrganizationRolesPostBody(GitHubModel): - """OrgsOrgOrganizationRolesPostBody""" +class OrgsOrgMigrationsPostBody(GitHubModel): + """OrgsOrgMigrationsPostBody""" - name: str = Field(description="The name of the custom role.") - description: Missing[str] = 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="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="A short description about the intended usage of this role or what permissions it grants.", + description="Indicates whether attachments should be excluded from the migration (to reduce migration archive file size).", ) - permissions: List[str] = Field( - description="A list of additional permissions included in this role." + 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(OrgsOrgOrganizationRolesPostBody) +model_rebuild(OrgsOrgMigrationsPostBody) -__all__ = ("OrgsOrgOrganizationRolesPostBody",) +__all__ = ("OrgsOrgMigrationsPostBody",) 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 36fea21d7..442fd0c33 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0902.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0902.py @@ -18,22 +18,19 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgOrganizationRolesRoleIdPatchBody(GitHubModel): - """OrgsOrgOrganizationRolesRoleIdPatchBody""" +class OrgsOrgOrganizationRolesPostBody(GitHubModel): + """OrgsOrgOrganizationRolesPostBody""" - name: Missing[str] = Field( - default=UNSET, description="The name of the custom role." - ) + 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.", ) - permissions: Missing[List[str]] = Field( - default=UNSET, - description="A list of additional permissions included in this role.", + permissions: List[str] = Field( + description="A list of additional permissions included in this role." ) -model_rebuild(OrgsOrgOrganizationRolesRoleIdPatchBody) +model_rebuild(OrgsOrgOrganizationRolesPostBody) -__all__ = ("OrgsOrgOrganizationRolesRoleIdPatchBody",) +__all__ = ("OrgsOrgOrganizationRolesPostBody",) 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 793575830..36fea21d7 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 List + from pydantic import Field from githubkit.utils import UNSET @@ -16,16 +18,22 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgOutsideCollaboratorsUsernamePutBody(GitHubModel): - """OrgsOrgOutsideCollaboratorsUsernamePutBody""" +class OrgsOrgOrganizationRolesRoleIdPatchBody(GitHubModel): + """OrgsOrgOrganizationRolesRoleIdPatchBody""" - async_: Missing[bool] = Field( + 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 usage of this role or what permissions it grants.", + ) + permissions: Missing[List[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="A list of additional permissions included in this role.", ) -model_rebuild(OrgsOrgOutsideCollaboratorsUsernamePutBody) +model_rebuild(OrgsOrgOrganizationRolesRoleIdPatchBody) -__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutBody",) +__all__ = ("OrgsOrgOrganizationRolesRoleIdPatchBody",) 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 dc2469b07..793575830 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0904.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0904.py @@ -9,13 +9,23 @@ from __future__ import annotations +from pydantic import Field + +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgOutsideCollaboratorsUsernamePutResponse202(GitHubModel): - """OrgsOrgOutsideCollaboratorsUsernamePutResponse202""" +class OrgsOrgOutsideCollaboratorsUsernamePutBody(GitHubModel): + """OrgsOrgOutsideCollaboratorsUsernamePutBody""" + + 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(OrgsOrgOutsideCollaboratorsUsernamePutResponse202) +model_rebuild(OrgsOrgOutsideCollaboratorsUsernamePutBody) -__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202",) +__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutBody",) 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 343f287e2..dc2469b07 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0905.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0905.py @@ -9,20 +9,13 @@ from __future__ import annotations -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422(GitHubModel): - """OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422""" - - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) +class OrgsOrgOutsideCollaboratorsUsernamePutResponse202(GitHubModel): + """OrgsOrgOutsideCollaboratorsUsernamePutResponse202""" -model_rebuild(OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422) +model_rebuild(OrgsOrgOutsideCollaboratorsUsernamePutResponse202) -__all__ = ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422",) +__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202",) 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 79ab5caf5..343f287e2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0906.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0906.py @@ -9,9 +9,6 @@ from __future__ import annotations -from typing import List, Union, Literal -from typing_extensions import Annotated - from pydantic import Field from githubkit.utils import UNSET @@ -19,24 +16,13 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgPersonalAccessTokenRequestsPostBody(GitHubModel): - """OrgsOrgPersonalAccessTokenRequestsPostBody""" +class OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422(GitHubModel): + """OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422""" - pat_request_ids: Missing[List[int]] = Field( - max_length=100, - min_length=1, - 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.", - ) + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) -model_rebuild(OrgsOrgPersonalAccessTokenRequestsPostBody) +model_rebuild(OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422) -__all__ = ("OrgsOrgPersonalAccessTokenRequestsPostBody",) +__all__ = ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422",) 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 eb9596a93..79ab5caf5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0907.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0907.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List, Union, Literal from typing_extensions import Annotated from pydantic import Field @@ -19,18 +19,24 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody(GitHubModel): - """OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody""" +class OrgsOrgPersonalAccessTokenRequestsPostBody(GitHubModel): + """OrgsOrgPersonalAccessTokenRequestsPostBody""" + pat_request_ids: Missing[List[int]] = Field( + max_length=100, + min_length=1, + 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 request." + 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 request. Max 1024 characters.", + description="Reason for approving or denying the requests. Max 1024 characters.", ) -model_rebuild(OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody) +model_rebuild(OrgsOrgPersonalAccessTokenRequestsPostBody) -__all__ = ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody",) +__all__ = ("OrgsOrgPersonalAccessTokenRequestsPostBody",) 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 297f764b9..eb9596a93 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0908.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0908.py @@ -9,26 +9,28 @@ from __future__ import annotations -from typing import List, Literal +from typing import Union, Literal +from typing_extensions import Annotated from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgPersonalAccessTokensPostBody(GitHubModel): - """OrgsOrgPersonalAccessTokensPostBody""" +class OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody(GitHubModel): + """OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody""" - action: Literal["revoke"] = Field( - description="Action to apply to the fine-grained personal access token." + action: Literal["approve", "deny"] = Field( + description="Action to apply to the request." ) - pat_ids: List[int] = Field( - max_length=100, - min_length=1, - description="The IDs of the fine-grained personal access tokens.", + 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(OrgsOrgPersonalAccessTokensPostBody) +model_rebuild(OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody) -__all__ = ("OrgsOrgPersonalAccessTokensPostBody",) +__all__ = ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody",) 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 53f6146e3..297f764b9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0909.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0909.py @@ -9,21 +9,26 @@ from __future__ import annotations -from typing import Literal +from typing import List, Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgPersonalAccessTokensPatIdPostBody(GitHubModel): - """OrgsOrgPersonalAccessTokensPatIdPostBody""" +class OrgsOrgPersonalAccessTokensPostBody(GitHubModel): + """OrgsOrgPersonalAccessTokensPostBody""" action: Literal["revoke"] = Field( description="Action to apply to the fine-grained personal access token." ) + pat_ids: List[int] = Field( + max_length=100, + min_length=1, + description="The IDs of the fine-grained personal access tokens.", + ) -model_rebuild(OrgsOrgPersonalAccessTokensPatIdPostBody) +model_rebuild(OrgsOrgPersonalAccessTokensPostBody) -__all__ = ("OrgsOrgPersonalAccessTokensPatIdPostBody",) +__all__ = ("OrgsOrgPersonalAccessTokensPostBody",) 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 bc57fa609..53f6146e3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0910.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0910.py @@ -9,22 +9,21 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgProjectsPostBody(GitHubModel): - """OrgsOrgProjectsPostBody""" +class OrgsOrgPersonalAccessTokensPatIdPostBody(GitHubModel): + """OrgsOrgPersonalAccessTokensPatIdPostBody""" - name: str = Field(description="The name of the project.") - body: Missing[str] = Field( - default=UNSET, description="The description of the project." + action: Literal["revoke"] = Field( + description="Action to apply to the fine-grained personal access token." ) -model_rebuild(OrgsOrgProjectsPostBody) +model_rebuild(OrgsOrgPersonalAccessTokensPatIdPostBody) -__all__ = ("OrgsOrgProjectsPostBody",) +__all__ = ("OrgsOrgPersonalAccessTokensPatIdPostBody",) 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 50d2caffa..bc57fa609 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0911.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0911.py @@ -9,25 +9,22 @@ from __future__ import annotations -from typing import List - from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0119 import OrgCustomProperty - -class OrgsOrgPropertiesSchemaPatchBody(GitHubModel): - """OrgsOrgPropertiesSchemaPatchBody""" +class OrgsOrgProjectsPostBody(GitHubModel): + """OrgsOrgProjectsPostBody""" - properties: List[OrgCustomProperty] = Field( - max_length=100, - min_length=1, - description="The array of custom properties to create or update.", + name: str = Field(description="The name of the project.") + body: Missing[str] = Field( + default=UNSET, description="The description of the project." ) -model_rebuild(OrgsOrgPropertiesSchemaPatchBody) +model_rebuild(OrgsOrgProjectsPostBody) -__all__ = ("OrgsOrgPropertiesSchemaPatchBody",) +__all__ = ("OrgsOrgProjectsPostBody",) 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 469f3c50f..50d2caffa 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0912.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0912.py @@ -9,44 +9,25 @@ from __future__ import annotations -from typing import List, Union, Literal -from typing_extensions import Annotated +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0119 import OrgCustomProperty -class OrgsOrgPropertiesSchemaCustomPropertyNamePutBody(GitHubModel): - """OrgsOrgPropertiesSchemaCustomPropertyNamePutBody""" - 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) - ], - None, - ] - ] = Field( - default=UNSET, - description="An ordered list of the allowed values of the property.\nThe property can have up to 200 allowed values.", +class OrgsOrgPropertiesSchemaPatchBody(GitHubModel): + """OrgsOrgPropertiesSchemaPatchBody""" + + properties: List[OrgCustomProperty] = Field( + max_length=100, + min_length=1, + description="The array of custom properties to create or update.", ) -model_rebuild(OrgsOrgPropertiesSchemaCustomPropertyNamePutBody) +model_rebuild(OrgsOrgPropertiesSchemaPatchBody) -__all__ = ("OrgsOrgPropertiesSchemaCustomPropertyNamePutBody",) +__all__ = ("OrgsOrgPropertiesSchemaPatchBody",) 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 dcc719e4e..469f3c50f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0913.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0913.py @@ -9,28 +9,44 @@ from __future__ import annotations -from typing import List +from typing import List, Union, Literal +from typing_extensions import Annotated from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0120 import CustomPropertyValue +class OrgsOrgPropertiesSchemaCustomPropertyNamePutBody(GitHubModel): + """OrgsOrgPropertiesSchemaCustomPropertyNamePutBody""" -class OrgsOrgPropertiesValuesPatchBody(GitHubModel): - """OrgsOrgPropertiesValuesPatchBody""" - - repository_names: List[str] = Field( - max_length=30, - min_length=1, - description="The names of repositories that the custom property values will be applied to.", + 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" ) - properties: List[CustomPropertyValue] = Field( - description="List of custom property names and associated values to apply to the repositories." + allowed_values: Missing[ + Union[ + Annotated[ + List[Annotated[str, Field(max_length=75)]], Field(max_length=200) + ], + None, + ] + ] = Field( + default=UNSET, + description="An ordered list of the allowed values of the property.\nThe property can have up to 200 allowed values.", ) -model_rebuild(OrgsOrgPropertiesValuesPatchBody) +model_rebuild(OrgsOrgPropertiesSchemaCustomPropertyNamePutBody) -__all__ = ("OrgsOrgPropertiesValuesPatchBody",) +__all__ = ("OrgsOrgPropertiesSchemaCustomPropertyNamePutBody",) 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 625d7833a..dcc719e4e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0914.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0914.py @@ -9,128 +9,28 @@ from __future__ import annotations -from typing import Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild +from .group_0120 import CustomPropertyValue -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 has been deprecated. 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.", +class OrgsOrgPropertiesValuesPatchBody(GitHubModel): + """OrgsOrgPropertiesValuesPatchBody""" + + repository_names: List[str] = Field( + max_length=30, + min_length=1, + description="The names of repositories that the custom property values will be applied to.", ) - 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.", + properties: List[CustomPropertyValue] = Field( + description="List of custom property names and associated values to apply to the repositories." ) -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(OrgsOrgPropertiesValuesPatchBody) -__all__ = ( - "OrgsOrgReposPostBody", - "OrgsOrgReposPostBodyPropCustomProperties", -) +__all__ = ("OrgsOrgPropertiesValuesPatchBody",) 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 d9796caa5..625d7833a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0915.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0915.py @@ -9,95 +9,128 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - -from .group_0137 import RepositoryRuleUpdate -from .group_0161 import RepositoryRuleOneof17 -from .group_0157 import RepositoryRuleWorkflows -from .group_0142 import RepositoryRulePullRequest -from .group_0133 import OrgRulesetConditionsOneof0 -from .group_0134 import OrgRulesetConditionsOneof1 -from .group_0135 import OrgRulesetConditionsOneof2 -from .group_0159 import RepositoryRuleCodeScanning -from .group_0124 import RepositoryRulesetBypassActor -from .group_0154 import RepositoryRuleTagNamePattern -from .group_0152 import RepositoryRuleBranchNamePattern -from .group_0140 import RepositoryRuleRequiredDeployments -from .group_0144 import RepositoryRuleRequiredStatusChecks -from .group_0146 import RepositoryRuleCommitMessagePattern -from .group_0150 import RepositoryRuleCommitterEmailPattern -from .group_0148 import RepositoryRuleCommitAuthorEmailPattern -from .group_0139 import RepositoryRuleOneof15, RepositoryRuleRequiredLinearHistory -from .group_0136 import ( - RepositoryRuleOneof14, - RepositoryRuleOneof16, - RepositoryRuleCreation, - RepositoryRuleDeletion, - RepositoryRuleNonFastForward, - RepositoryRuleRequiredSignatures, -) +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild -class OrgsOrgRulesetsPostBody(GitHubModel): - """OrgsOrgRulesetsPostBody""" +class OrgsOrgReposPostBody(GitHubModel): + """OrgsOrgReposPostBody""" - name: str = Field(description="The name of the ruleset.") - target: Missing[Literal["branch", "tag", "push"]] = Field( + 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="The target of the ruleset\n\n**Note**: The `push` target is in beta and is subject to change.", + description="Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging.", ) - 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." + 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.", ) - bypass_actors: Missing[List[RepositoryRulesetBypassActor]] = Field( + allow_auto_merge: Missing[bool] = Field( default=UNSET, - description="The actors that can bypass the rules in this ruleset", + description="Either `true` to allow auto-merge on pull requests, or `false` to disallow auto-merge.", ) - conditions: Missing[ - Union[ - OrgRulesetConditionsOneof0, - OrgRulesetConditionsOneof1, - OrgRulesetConditionsOneof2, - ] + 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 has been deprecated. 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, - title="Organization ruleset conditions", - description="Conditions for an organization ruleset. The conditions object should contain both `repository_name` and `ref_name` properties or both `repository_id` and `ref_name` properties.\n", - ) - rules: Missing[ - List[ - Union[ - RepositoryRuleCreation, - RepositoryRuleUpdate, - RepositoryRuleDeletion, - RepositoryRuleRequiredLinearHistory, - RepositoryRuleRequiredDeployments, - RepositoryRuleRequiredSignatures, - RepositoryRulePullRequest, - RepositoryRuleRequiredStatusChecks, - RepositoryRuleNonFastForward, - RepositoryRuleCommitMessagePattern, - RepositoryRuleCommitAuthorEmailPattern, - RepositoryRuleCommitterEmailPattern, - RepositoryRuleBranchNamePattern, - RepositoryRuleTagNamePattern, - RepositoryRuleOneof14, - RepositoryRuleOneof15, - RepositoryRuleOneof16, - RepositoryRuleOneof17, - RepositoryRuleWorkflows, - RepositoryRuleCodeScanning, - ] - ] - ] = Field(default=UNSET, description="An array of rules within the ruleset.") - - -model_rebuild(OrgsOrgRulesetsPostBody) - -__all__ = ("OrgsOrgRulesetsPostBody",) + 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.", + ) + 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) + +__all__ = ( + "OrgsOrgReposPostBody", + "OrgsOrgReposPostBodyPropCustomProperties", +) 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 ea2cf2c91..d9796caa5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0916.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0916.py @@ -44,17 +44,16 @@ ) -class OrgsOrgRulesetsRulesetIdPutBody(GitHubModel): - """OrgsOrgRulesetsRulesetIdPutBody""" +class OrgsOrgRulesetsPostBody(GitHubModel): + """OrgsOrgRulesetsPostBody""" - name: Missing[str] = Field(default=UNSET, description="The name of the ruleset.") + name: str = Field(description="The name of the ruleset.") target: Missing[Literal["branch", "tag", "push"]] = Field( default=UNSET, description="The target of the ruleset\n\n**Note**: The `push` target is in beta and is subject to change.", ) - 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.", + 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." ) bypass_actors: Missing[List[RepositoryRulesetBypassActor]] = Field( default=UNSET, @@ -99,6 +98,6 @@ class OrgsOrgRulesetsRulesetIdPutBody(GitHubModel): ] = Field(default=UNSET, description="An array of rules within the ruleset.") -model_rebuild(OrgsOrgRulesetsRulesetIdPutBody) +model_rebuild(OrgsOrgRulesetsPostBody) -__all__ = ("OrgsOrgRulesetsRulesetIdPutBody",) +__all__ = ("OrgsOrgRulesetsPostBody",) 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 f75a38dbc..ea2cf2c91 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0917.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0917.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Literal +from typing import List, Union, Literal from pydantic import Field @@ -17,41 +17,88 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0137 import RepositoryRuleUpdate +from .group_0161 import RepositoryRuleOneof17 +from .group_0157 import RepositoryRuleWorkflows +from .group_0142 import RepositoryRulePullRequest +from .group_0133 import OrgRulesetConditionsOneof0 +from .group_0134 import OrgRulesetConditionsOneof1 +from .group_0135 import OrgRulesetConditionsOneof2 +from .group_0159 import RepositoryRuleCodeScanning +from .group_0124 import RepositoryRulesetBypassActor +from .group_0154 import RepositoryRuleTagNamePattern +from .group_0152 import RepositoryRuleBranchNamePattern +from .group_0140 import RepositoryRuleRequiredDeployments +from .group_0144 import RepositoryRuleRequiredStatusChecks +from .group_0146 import RepositoryRuleCommitMessagePattern +from .group_0150 import RepositoryRuleCommitterEmailPattern +from .group_0148 import RepositoryRuleCommitAuthorEmailPattern +from .group_0139 import RepositoryRuleOneof15, RepositoryRuleRequiredLinearHistory +from .group_0136 import ( + RepositoryRuleOneof14, + RepositoryRuleOneof16, + RepositoryRuleCreation, + RepositoryRuleDeletion, + RepositoryRuleNonFastForward, + RepositoryRuleRequiredSignatures, +) -class OrgsOrgTeamsPostBody(GitHubModel): - """OrgsOrgTeamsPostBody""" - 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( +class OrgsOrgRulesetsRulesetIdPutBody(GitHubModel): + """OrgsOrgRulesetsRulesetIdPutBody""" + + name: Missing[str] = Field(default=UNSET, description="The name of the ruleset.") + target: Missing[Literal["branch", "tag", "push"]] = Field( default=UNSET, - description="List GitHub IDs for organization members who will become team maintainers.", + description="The target of the ruleset\n\n**Note**: The `push` target is in beta and is subject to change.", ) - repo_names: Missing[List[str]] = Field( + enforcement: Missing[Literal["disabled", "active", "evaluate"]] = Field( default=UNSET, - description='The full name (e.g., "organization-name/repository-name") of repositories to add the team to.', + 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.", ) - privacy: Missing[Literal["secret", "closed"]] = Field( + bypass_actors: Missing[List[RepositoryRulesetBypassActor]] = 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`", + description="The actors that can bypass the rules in this ruleset", ) - notification_setting: Missing[ - Literal["notifications_enabled", "notifications_disabled"] + conditions: Missing[ + Union[ + OrgRulesetConditionsOneof0, + OrgRulesetConditionsOneof1, + OrgRulesetConditionsOneof2, + ] ] = 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="**Deprecated**. 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." + title="Organization ruleset conditions", + description="Conditions for an organization ruleset. The conditions object should contain both `repository_name` and `ref_name` properties or both `repository_id` and `ref_name` properties.\n", ) + rules: Missing[ + List[ + Union[ + RepositoryRuleCreation, + RepositoryRuleUpdate, + RepositoryRuleDeletion, + RepositoryRuleRequiredLinearHistory, + RepositoryRuleRequiredDeployments, + RepositoryRuleRequiredSignatures, + RepositoryRulePullRequest, + RepositoryRuleRequiredStatusChecks, + RepositoryRuleNonFastForward, + RepositoryRuleCommitMessagePattern, + RepositoryRuleCommitAuthorEmailPattern, + RepositoryRuleCommitterEmailPattern, + RepositoryRuleBranchNamePattern, + RepositoryRuleTagNamePattern, + RepositoryRuleOneof14, + RepositoryRuleOneof15, + RepositoryRuleOneof16, + RepositoryRuleOneof17, + RepositoryRuleWorkflows, + RepositoryRuleCodeScanning, + ] + ] + ] = Field(default=UNSET, description="An array of rules within the ruleset.") -model_rebuild(OrgsOrgTeamsPostBody) +model_rebuild(OrgsOrgRulesetsRulesetIdPutBody) -__all__ = ("OrgsOrgTeamsPostBody",) +__all__ = ("OrgsOrgRulesetsRulesetIdPutBody",) 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 f3835d246..f75a38dbc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0918.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0918.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List, Literal from pydantic import Field @@ -18,32 +18,40 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgTeamsTeamSlugPatchBody(GitHubModel): - """OrgsOrgTeamsTeamSlugPatchBody""" +class OrgsOrgTeamsPostBody(GitHubModel): + """OrgsOrgTeamsPostBody""" - name: Missing[str] = Field(default=UNSET, description="The name of the team.") + 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 IDs 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. 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.", + 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. 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 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", "admin"]] = Field( + permission: Missing[Literal["pull", "push"]] = Field( default=UNSET, description="**Deprecated**. The permission that new repositories will be added to the team with when none is specified.", ) - parent_team_id: Missing[Union[int, None]] = Field( + parent_team_id: Missing[int] = Field( default=UNSET, description="The ID of a team to set as the parent team." ) -model_rebuild(OrgsOrgTeamsTeamSlugPatchBody) +model_rebuild(OrgsOrgTeamsPostBody) -__all__ = ("OrgsOrgTeamsTeamSlugPatchBody",) +__all__ = ("OrgsOrgTeamsPostBody",) 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 02ba3ccdd..f3835d246 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0919.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0919.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Union, Literal + from pydantic import Field from githubkit.utils import UNSET @@ -16,17 +18,32 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgTeamsTeamSlugDiscussionsPostBody(GitHubModel): - """OrgsOrgTeamsTeamSlugDiscussionsPostBody""" +class OrgsOrgTeamsTeamSlugPatchBody(GitHubModel): + """OrgsOrgTeamsTeamSlugPatchBody""" - title: str = Field(description="The discussion post's title.") - body: str = Field(description="The discussion post's body text.") - private: Missing[bool] = Field( + 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="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="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="**Deprecated**. 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(OrgsOrgTeamsTeamSlugDiscussionsPostBody) +model_rebuild(OrgsOrgTeamsTeamSlugPatchBody) -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsPostBody",) +__all__ = ("OrgsOrgTeamsTeamSlugPatchBody",) 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 f19071c10..02ba3ccdd 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0920.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0920.py @@ -16,17 +16,17 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody(GitHubModel): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody""" - - 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." +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.", ) -model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody) +model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsPostBody) -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody",) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsPostBody",) 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 d8f084a3e..f19071c10 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0921.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0921.py @@ -11,15 +11,22 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody(GitHubModel): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody(GitHubModel): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody""" - body: str = Field(description="The discussion comment's body text.") + 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(OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody) +model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody) -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody",) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody",) 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 f9ed8041d..d8f084a3e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0922.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0922.py @@ -14,18 +14,12 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody( - GitHubModel -): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody(GitHubModel): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody""" body: str = Field(description="The discussion comment's body text.") -model_rebuild( - OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody -) +model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody) -__all__ = ( - "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody", -) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody",) 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 6459343b4..f9ed8041d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0923.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0923.py @@ -9,31 +9,23 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody( +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody( GitHubModel ): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPos - tBody - """ + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" - 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." - ) + body: str = Field(description="The discussion comment's body text.") model_rebuild( - OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody + OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody ) __all__ = ( - "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody", + "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody", ) 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 1c2173ab7..6459343b4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0924.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0924.py @@ -16,16 +16,24 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody(GitHubModel): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody( + GitHubModel +): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPos + tBody + """ 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." + 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(OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody) +model_rebuild( + OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody +) -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody",) +__all__ = ( + "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody", +) 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 c48fb6c94..1c2173ab7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0925.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0925.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 OrgsOrgTeamsTeamSlugExternalGroupsPatchBody(GitHubModel): - """OrgsOrgTeamsTeamSlugExternalGroupsPatchBody""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody(GitHubModel): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody""" - group_id: int = Field(description="External Group Id") + 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(OrgsOrgTeamsTeamSlugExternalGroupsPatchBody) +model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody) -__all__ = ("OrgsOrgTeamsTeamSlugExternalGroupsPatchBody",) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody",) 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 6b6e99580..c48fb6c94 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0926.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0926.py @@ -9,23 +9,17 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody(GitHubModel): - """OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody""" +class OrgsOrgTeamsTeamSlugExternalGroupsPatchBody(GitHubModel): + """OrgsOrgTeamsTeamSlugExternalGroupsPatchBody""" - role: Missing[Literal["member", "maintainer"]] = Field( - default=UNSET, description="The role that this user should have in the team." - ) + group_id: int = Field(description="External Group Id") -model_rebuild(OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody) +model_rebuild(OrgsOrgTeamsTeamSlugExternalGroupsPatchBody) -__all__ = ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody",) +__all__ = ("OrgsOrgTeamsTeamSlugExternalGroupsPatchBody",) 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 3e7506639..6b6e99580 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0927.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0927.py @@ -18,15 +18,14 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody(GitHubModel): - """OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody""" +class OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody(GitHubModel): + """OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody""" - 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).\"", + role: Missing[Literal["member", "maintainer"]] = Field( + default=UNSET, description="The role that this user should have in the team." ) -model_rebuild(OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody) +model_rebuild(OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody) -__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody",) +__all__ = ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody",) 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 3603ad202..3e7506639 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0928.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0928.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.utils import UNSET @@ -16,13 +18,15 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403(GitHubModel): - """OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403""" +class OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody(GitHubModel): + """OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody""" - message: Missing[str] = Field(default=UNSET) - documentation_url: 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(OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403) +model_rebuild(OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody) -__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403",) +__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody",) 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 cb788d669..3603ad202 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0929.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0929.py @@ -16,15 +16,13 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody(GitHubModel): - """OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody""" +class OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403(GitHubModel): + """OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403""" - 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.", - ) + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) -model_rebuild(OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody) +model_rebuild(OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403) -__all__ = ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody",) +__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403",) 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 ba1a1500d..cb788d669 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0930.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0930.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import List - from pydantic import Field from githubkit.utils import UNSET @@ -18,29 +16,15 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBody(GitHubModel): - """OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBody""" +class OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody(GitHubModel): + """OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody""" - groups: Missing[ - List[OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItems] - ] = Field( + permission: Missing[str] = 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.", + 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.", ) -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) +model_rebuild(OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody) -__all__ = ( - "OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBody", - "OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItems", -) +__all__ = ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody",) 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 0164cc723..ba1a1500d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0931.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0931.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import List from pydantic import Field @@ -18,15 +18,29 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgSecurityProductEnablementPostBody(GitHubModel): - """OrgsOrgSecurityProductEnablementPostBody""" +class OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBody(GitHubModel): + """OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBody""" - query_suite: Missing[Literal["default", "extended"]] = Field( + groups: Missing[ + List[OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItems] + ] = 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.", + 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(OrgsOrgSecurityProductEnablementPostBody) +class OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItems(GitHubModel): + """OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItems""" -__all__ = ("OrgsOrgSecurityProductEnablementPostBody",) + 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__ = ( + "OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBody", + "OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItems", +) 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 8e85c1489..0164cc723 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0932.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0932.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List +from typing import Literal from pydantic import Field @@ -18,14 +18,15 @@ from githubkit.compat import GitHubModel, model_rebuild -class ProjectsColumnsCardsCardIdDeleteResponse403(GitHubModel): - """ProjectsColumnsCardsCardIdDeleteResponse403""" +class OrgsOrgSecurityProductEnablementPostBody(GitHubModel): + """OrgsOrgSecurityProductEnablementPostBody""" - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) - errors: Missing[List[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(ProjectsColumnsCardsCardIdDeleteResponse403) +model_rebuild(OrgsOrgSecurityProductEnablementPostBody) -__all__ = ("ProjectsColumnsCardsCardIdDeleteResponse403",) +__all__ = ("OrgsOrgSecurityProductEnablementPostBody",) 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 6ff9e974c..8e85c1489 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0933.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0933.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import List from pydantic import Field @@ -18,17 +18,14 @@ from githubkit.compat import GitHubModel, model_rebuild -class ProjectsColumnsCardsCardIdPatchBody(GitHubModel): - """ProjectsColumnsCardsCardIdPatchBody""" +class ProjectsColumnsCardsCardIdDeleteResponse403(GitHubModel): + """ProjectsColumnsCardsCardIdDeleteResponse403""" - 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" - ) + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) + errors: Missing[List[str]] = Field(default=UNSET) -model_rebuild(ProjectsColumnsCardsCardIdPatchBody) +model_rebuild(ProjectsColumnsCardsCardIdDeleteResponse403) -__all__ = ("ProjectsColumnsCardsCardIdPatchBody",) +__all__ = ("ProjectsColumnsCardsCardIdDeleteResponse403",) 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 d9c5ebe68..6ff9e974c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0934.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0934.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.utils import UNSET @@ -16,19 +18,17 @@ from githubkit.compat import GitHubModel, model_rebuild -class ProjectsColumnsCardsCardIdMovesPostBody(GitHubModel): - """ProjectsColumnsCardsCardIdMovesPostBody""" +class ProjectsColumnsCardsCardIdPatchBody(GitHubModel): + """ProjectsColumnsCardsCardIdPatchBody""" - 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.", + note: Missing[Union[str, None]] = Field( + default=UNSET, description="The project card's note" ) - column_id: Missing[int] = Field( - default=UNSET, - description="The unique identifier of the column the card should be moved to", + archived: Missing[bool] = Field( + default=UNSET, description="Whether or not the card is archived" ) -model_rebuild(ProjectsColumnsCardsCardIdMovesPostBody) +model_rebuild(ProjectsColumnsCardsCardIdPatchBody) -__all__ = ("ProjectsColumnsCardsCardIdMovesPostBody",) +__all__ = ("ProjectsColumnsCardsCardIdPatchBody",) 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 7d3245c63..d9c5ebe68 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0935.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0935.py @@ -9,13 +9,26 @@ from __future__ import annotations +from pydantic import Field + +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ProjectsColumnsCardsCardIdMovesPostResponse201(GitHubModel): - """ProjectsColumnsCardsCardIdMovesPostResponse201""" +class ProjectsColumnsCardsCardIdMovesPostBody(GitHubModel): + """ProjectsColumnsCardsCardIdMovesPostBody""" + + 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(ProjectsColumnsCardsCardIdMovesPostResponse201) +model_rebuild(ProjectsColumnsCardsCardIdMovesPostBody) -__all__ = ("ProjectsColumnsCardsCardIdMovesPostResponse201",) +__all__ = ("ProjectsColumnsCardsCardIdMovesPostBody",) 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 97fe55aa9..7d3245c63 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0936.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0936.py @@ -9,38 +9,13 @@ from __future__ import annotations -from typing import List - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -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""" - - code: Missing[str] = Field(default=UNSET) - message: Missing[str] = Field(default=UNSET) - resource: Missing[str] = Field(default=UNSET) - field: Missing[str] = Field(default=UNSET) +class ProjectsColumnsCardsCardIdMovesPostResponse201(GitHubModel): + """ProjectsColumnsCardsCardIdMovesPostResponse201""" -model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse403) -model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems) +model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse201) -__all__ = ( - "ProjectsColumnsCardsCardIdMovesPostResponse403", - "ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems", -) +__all__ = ("ProjectsColumnsCardsCardIdMovesPostResponse201",) 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 2a0dcefa7..97fe55aa9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0937.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0937.py @@ -18,28 +18,29 @@ from githubkit.compat import GitHubModel, model_rebuild -class ProjectsColumnsCardsCardIdMovesPostResponse503(GitHubModel): - """ProjectsColumnsCardsCardIdMovesPostResponse503""" +class ProjectsColumnsCardsCardIdMovesPostResponse403(GitHubModel): + """ProjectsColumnsCardsCardIdMovesPostResponse403""" - code: Missing[str] = Field(default=UNSET) message: Missing[str] = Field(default=UNSET) documentation_url: Missing[str] = Field(default=UNSET) errors: Missing[ - List[ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems] + List[ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems] ] = Field(default=UNSET) -class ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems(GitHubModel): - """ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems""" +class ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems(GitHubModel): + """ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems""" 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(ProjectsColumnsCardsCardIdMovesPostResponse503) -model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems) +model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse403) +model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems) __all__ = ( - "ProjectsColumnsCardsCardIdMovesPostResponse503", - "ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems", + "ProjectsColumnsCardsCardIdMovesPostResponse403", + "ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems", ) 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 e6f9395a8..2a0dcefa7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0938.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0938.py @@ -9,17 +9,37 @@ from __future__ import annotations +from typing import List + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ProjectsColumnsColumnIdPatchBody(GitHubModel): - """ProjectsColumnsColumnIdPatchBody""" +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""" - name: str = Field(description="Name of the project column") + code: Missing[str] = Field(default=UNSET) + message: Missing[str] = Field(default=UNSET) -model_rebuild(ProjectsColumnsColumnIdPatchBody) +model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse503) +model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems) -__all__ = ("ProjectsColumnsColumnIdPatchBody",) +__all__ = ( + "ProjectsColumnsCardsCardIdMovesPostResponse503", + "ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems", +) 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 17db0e859..e6f9395a8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0939.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0939.py @@ -9,19 +9,17 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class ProjectsColumnsColumnIdCardsPostBodyOneof0(GitHubModel): - """ProjectsColumnsColumnIdCardsPostBodyOneof0""" +class ProjectsColumnsColumnIdPatchBody(GitHubModel): + """ProjectsColumnsColumnIdPatchBody""" - note: Union[str, None] = Field(description="The project card's note") + name: str = Field(description="Name of the project column") -model_rebuild(ProjectsColumnsColumnIdCardsPostBodyOneof0) +model_rebuild(ProjectsColumnsColumnIdPatchBody) -__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof0",) +__all__ = ("ProjectsColumnsColumnIdPatchBody",) 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 78dbfee00..17db0e859 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0940.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0940.py @@ -9,22 +9,19 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class ProjectsColumnsColumnIdCardsPostBodyOneof1(GitHubModel): - """ProjectsColumnsColumnIdCardsPostBodyOneof1""" +class ProjectsColumnsColumnIdCardsPostBodyOneof0(GitHubModel): + """ProjectsColumnsColumnIdCardsPostBodyOneof0""" - 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" - ) + note: Union[str, None] = Field(description="The project card's note") -model_rebuild(ProjectsColumnsColumnIdCardsPostBodyOneof1) +model_rebuild(ProjectsColumnsColumnIdCardsPostBodyOneof0) -__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof1",) +__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof0",) 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 090a030ce..78dbfee00 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0941.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0941.py @@ -9,37 +9,22 @@ from __future__ import annotations -from typing import List - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -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 ProjectsColumnsColumnIdCardsPostBodyOneof1(GitHubModel): + """ProjectsColumnsColumnIdCardsPostBodyOneof1""" - code: Missing[str] = Field(default=UNSET) - message: 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(ProjectsColumnsColumnIdCardsPostResponse503) -model_rebuild(ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems) +model_rebuild(ProjectsColumnsColumnIdCardsPostBodyOneof1) -__all__ = ( - "ProjectsColumnsColumnIdCardsPostResponse503", - "ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems", -) +__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof1",) 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 003392298..090a030ce 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0942.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0942.py @@ -9,20 +9,37 @@ from __future__ import annotations +from typing import List + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ProjectsColumnsColumnIdMovesPostBody(GitHubModel): - """ProjectsColumnsColumnIdMovesPostBody""" +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""" - 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.", - ) + code: Missing[str] = Field(default=UNSET) + message: Missing[str] = Field(default=UNSET) -model_rebuild(ProjectsColumnsColumnIdMovesPostBody) +model_rebuild(ProjectsColumnsColumnIdCardsPostResponse503) +model_rebuild(ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems) -__all__ = ("ProjectsColumnsColumnIdMovesPostBody",) +__all__ = ( + "ProjectsColumnsColumnIdCardsPostResponse503", + "ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems", +) 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 6009bdb4e..003392298 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0943.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0943.py @@ -9,13 +9,20 @@ from __future__ import annotations +from pydantic import Field + from githubkit.compat import GitHubModel, model_rebuild -class ProjectsColumnsColumnIdMovesPostResponse201(GitHubModel): - """ProjectsColumnsColumnIdMovesPostResponse201""" +class ProjectsColumnsColumnIdMovesPostBody(GitHubModel): + """ProjectsColumnsColumnIdMovesPostBody""" + + 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(ProjectsColumnsColumnIdMovesPostResponse201) +model_rebuild(ProjectsColumnsColumnIdMovesPostBody) -__all__ = ("ProjectsColumnsColumnIdMovesPostResponse201",) +__all__ = ("ProjectsColumnsColumnIdMovesPostBody",) 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 8185d7ede..6009bdb4e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0944.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0944.py @@ -9,23 +9,13 @@ from __future__ import annotations -from typing import List - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -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 ProjectsColumnsColumnIdMovesPostResponse201(GitHubModel): + """ProjectsColumnsColumnIdMovesPostResponse201""" -model_rebuild(ProjectsProjectIdDeleteResponse403) +model_rebuild(ProjectsColumnsColumnIdMovesPostResponse201) -__all__ = ("ProjectsProjectIdDeleteResponse403",) +__all__ = ("ProjectsColumnsColumnIdMovesPostResponse201",) 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 b66b14460..8185d7ede 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0945.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0945.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List from pydantic import Field @@ -18,26 +18,14 @@ from githubkit.compat import GitHubModel, model_rebuild -class ProjectsProjectIdPatchBody(GitHubModel): - """ProjectsProjectIdPatchBody""" +class ProjectsProjectIdDeleteResponse403(GitHubModel): + """ProjectsProjectIdDeleteResponse403""" - 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.", - ) + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) + errors: Missing[List[str]] = Field(default=UNSET) -model_rebuild(ProjectsProjectIdPatchBody) +model_rebuild(ProjectsProjectIdDeleteResponse403) -__all__ = ("ProjectsProjectIdPatchBody",) +__all__ = ("ProjectsProjectIdDeleteResponse403",) 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 5a474d68b..b66b14460 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0946.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0946.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List +from typing import Union, Literal from pydantic import Field @@ -18,14 +18,26 @@ from githubkit.compat import GitHubModel, model_rebuild -class ProjectsProjectIdPatchResponse403(GitHubModel): - """ProjectsProjectIdPatchResponse403""" +class ProjectsProjectIdPatchBody(GitHubModel): + """ProjectsProjectIdPatchBody""" - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) - errors: Missing[List[str]] = Field(default=UNSET) + 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(ProjectsProjectIdPatchResponse403) +model_rebuild(ProjectsProjectIdPatchBody) -__all__ = ("ProjectsProjectIdPatchResponse403",) +__all__ = ("ProjectsProjectIdPatchBody",) 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 a5695c5c0..5a474d68b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0947.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0947.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import List from pydantic import Field @@ -18,14 +18,14 @@ from githubkit.compat import GitHubModel, model_rebuild -class ProjectsProjectIdCollaboratorsUsernamePutBody(GitHubModel): - """ProjectsProjectIdCollaboratorsUsernamePutBody""" +class ProjectsProjectIdPatchResponse403(GitHubModel): + """ProjectsProjectIdPatchResponse403""" - permission: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET, description="The permission to grant the collaborator." - ) + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) + errors: Missing[List[str]] = Field(default=UNSET) -model_rebuild(ProjectsProjectIdCollaboratorsUsernamePutBody) +model_rebuild(ProjectsProjectIdPatchResponse403) -__all__ = ("ProjectsProjectIdCollaboratorsUsernamePutBody",) +__all__ = ("ProjectsProjectIdPatchResponse403",) 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 e33e0910d..a5695c5c0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0948.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0948.py @@ -9,17 +9,23 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ProjectsProjectIdColumnsPostBody(GitHubModel): - """ProjectsProjectIdColumnsPostBody""" +class ProjectsProjectIdCollaboratorsUsernamePutBody(GitHubModel): + """ProjectsProjectIdCollaboratorsUsernamePutBody""" - name: str = Field(description="Name of the project column") + permission: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET, description="The permission to grant the collaborator." + ) -model_rebuild(ProjectsProjectIdColumnsPostBody) +model_rebuild(ProjectsProjectIdCollaboratorsUsernamePutBody) -__all__ = ("ProjectsProjectIdColumnsPostBody",) +__all__ = ("ProjectsProjectIdCollaboratorsUsernamePutBody",) 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 f4e118c4e..e33e0910d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0949.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0949.py @@ -11,18 +11,15 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoDeleteResponse403(GitHubModel): - """ReposOwnerRepoDeleteResponse403""" +class ProjectsProjectIdColumnsPostBody(GitHubModel): + """ProjectsProjectIdColumnsPostBody""" - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the project column") -model_rebuild(ReposOwnerRepoDeleteResponse403) +model_rebuild(ProjectsProjectIdColumnsPostBody) -__all__ = ("ReposOwnerRepoDeleteResponse403",) +__all__ = ("ProjectsProjectIdColumnsPostBody",) 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 c059c9845..f4e118c4e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0950.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0950.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Union, Literal - from pydantic import Field from githubkit.utils import UNSET @@ -18,257 +16,13 @@ from githubkit.compat import GitHubModel, model_rebuild -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 has been deprecated. 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.", - ) - 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)."', - ) - 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_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 "[Secret scanning supported secrets](/code-security/secret-scanning/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 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 ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns( - GitHubModel -): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatte - rns - - Use the `status` property to enable or disable secret scanning non-provider - patterns for this repository. For more information, see "[Secret scanning - supported secrets](/code-security/secret-scanning/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. - """ +class ReposOwnerRepoDeleteResponse403(GitHubModel): + """ReposOwnerRepoDeleteResponse403""" - status: Missing[str] = Field( - default=UNSET, description="Can be `enabled` or `disabled`." - ) + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoPatchBody) -model_rebuild(ReposOwnerRepoPatchBodyPropSecurityAndAnalysis) -model_rebuild(ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity) -model_rebuild(ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning) -model_rebuild( - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection -) -model_rebuild( - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns -) -model_rebuild( - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecks -) +model_rebuild(ReposOwnerRepoDeleteResponse403) -__all__ = ( - "ReposOwnerRepoPatchBody", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysis", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecks", -) +__all__ = ("ReposOwnerRepoDeleteResponse403",) 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 18ca3ff49..c059c9845 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0951.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0951.py @@ -9,22 +9,266 @@ from __future__ import annotations -from typing import List +from typing import Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0181 import Artifact +class ReposOwnerRepoPatchBody(GitHubModel): + """ReposOwnerRepoPatchBody""" -class ReposOwnerRepoActionsArtifactsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsArtifactsGetResponse200""" + 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 has been deprecated. 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.", + ) + 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.", + ) - total_count: int = Field() - artifacts: List[Artifact] = Field() +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysis(GitHubModel): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysis -model_rebuild(ReposOwnerRepoActionsArtifactsGetResponse200) + Specify which security and analysis features to enable or disable for the + repository. -__all__ = ("ReposOwnerRepoActionsArtifactsGetResponse200",) + 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)."', + ) + 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_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 "[Secret scanning supported secrets](/code-security/secret-scanning/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 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 ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns( + GitHubModel +): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatte + rns + + Use the `status` property to enable or disable secret scanning non-provider + patterns for this repository. For more information, see "[Secret scanning + supported secrets](/code-security/secret-scanning/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`." + ) + + +model_rebuild(ReposOwnerRepoPatchBody) +model_rebuild(ReposOwnerRepoPatchBodyPropSecurityAndAnalysis) +model_rebuild(ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity) +model_rebuild(ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning) +model_rebuild( + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection +) +model_rebuild( + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns +) +model_rebuild( + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecks +) + +__all__ = ( + "ReposOwnerRepoPatchBody", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysis", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecks", +) 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 4b45f9286..18ca3ff49 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0952.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0952.py @@ -9,21 +9,22 @@ from __future__ import annotations +from typing import List + from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0181 import Artifact + -class ReposOwnerRepoActionsJobsJobIdRerunPostBody(GitHubModel): - """ReposOwnerRepoActionsJobsJobIdRerunPostBody""" +class ReposOwnerRepoActionsArtifactsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsArtifactsGetResponse200""" - 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(ReposOwnerRepoActionsArtifactsGetResponse200) -__all__ = ("ReposOwnerRepoActionsJobsJobIdRerunPostBody",) +__all__ = ("ReposOwnerRepoActionsArtifactsGetResponse200",) 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 7f44831d4..4b45f9286 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0953.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0953.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import List - from pydantic import Field from githubkit.utils import UNSET @@ -18,21 +16,14 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoActionsOidcCustomizationSubPutBody(GitHubModel): - """Actions OIDC subject customization for a repository - - Actions OIDC subject customization for a repository - """ +class ReposOwnerRepoActionsJobsJobIdRerunPostBody(GitHubModel): + """ReposOwnerRepoActionsJobsJobIdRerunPostBody""" - 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.", + enable_debug_logging: Missing[bool] = Field( + default=UNSET, description="Whether to enable debug logging for the re-run." ) -model_rebuild(ReposOwnerRepoActionsOidcCustomizationSubPutBody) +model_rebuild(ReposOwnerRepoActionsJobsJobIdRerunPostBody) -__all__ = ("ReposOwnerRepoActionsOidcCustomizationSubPutBody",) +__all__ = ("ReposOwnerRepoActionsJobsJobIdRerunPostBody",) 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 6dca7036f..7f44831d4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0954.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0954.py @@ -13,18 +13,26 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0185 import ActionsSecret +class ReposOwnerRepoActionsOidcCustomizationSubPutBody(GitHubModel): + """Actions OIDC subject customization for a repository -class ReposOwnerRepoActionsOrganizationSecretsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsOrganizationSecretsGetResponse200""" + Actions OIDC subject customization for a repository + """ - total_count: int = Field() - secrets: List[ActionsSecret] = 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(ReposOwnerRepoActionsOrganizationSecretsGetResponse200) +model_rebuild(ReposOwnerRepoActionsOidcCustomizationSubPutBody) -__all__ = ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200",) +__all__ = ("ReposOwnerRepoActionsOidcCustomizationSubPutBody",) 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 a03bae057..6dca7036f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0955.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0955.py @@ -15,16 +15,16 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0186 import ActionsVariable +from .group_0185 import ActionsSecret -class ReposOwnerRepoActionsOrganizationVariablesGetResponse200(GitHubModel): - """ReposOwnerRepoActionsOrganizationVariablesGetResponse200""" +class ReposOwnerRepoActionsOrganizationSecretsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsOrganizationSecretsGetResponse200""" total_count: int = Field() - variables: List[ActionsVariable] = Field() + secrets: List[ActionsSecret] = Field() -model_rebuild(ReposOwnerRepoActionsOrganizationVariablesGetResponse200) +model_rebuild(ReposOwnerRepoActionsOrganizationSecretsGetResponse200) -__all__ = ("ReposOwnerRepoActionsOrganizationVariablesGetResponse200",) +__all__ = ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200",) 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 cd92079a4..a03bae057 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0956.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0956.py @@ -9,27 +9,22 @@ from __future__ import annotations -from typing import Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0186 import ActionsVariable -class ReposOwnerRepoActionsPermissionsPutBody(GitHubModel): - """ReposOwnerRepoActionsPermissionsPutBody""" - 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.", - ) +class ReposOwnerRepoActionsOrganizationVariablesGetResponse200(GitHubModel): + """ReposOwnerRepoActionsOrganizationVariablesGetResponse200""" + total_count: int = Field() + variables: List[ActionsVariable] = Field() -model_rebuild(ReposOwnerRepoActionsPermissionsPutBody) -__all__ = ("ReposOwnerRepoActionsPermissionsPutBody",) +model_rebuild(ReposOwnerRepoActionsOrganizationVariablesGetResponse200) + +__all__ = ("ReposOwnerRepoActionsOrganizationVariablesGetResponse200",) 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 0eada8df4..cd92079a4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0957.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0957.py @@ -9,22 +9,27 @@ from __future__ import annotations -from typing import List +from typing import Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0034 import Runner +class ReposOwnerRepoActionsPermissionsPutBody(GitHubModel): + """ReposOwnerRepoActionsPermissionsPutBody""" -class ReposOwnerRepoActionsRunnersGetResponse200(GitHubModel): - """ReposOwnerRepoActionsRunnersGetResponse200""" + 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.", + ) - total_count: int = Field() - runners: List[Runner] = Field() +model_rebuild(ReposOwnerRepoActionsPermissionsPutBody) -model_rebuild(ReposOwnerRepoActionsRunnersGetResponse200) - -__all__ = ("ReposOwnerRepoActionsRunnersGetResponse200",) +__all__ = ("ReposOwnerRepoActionsPermissionsPutBody",) 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 c091701cc..0eada8df4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0958.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0958.py @@ -13,29 +13,18 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0034 import Runner -class ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody(GitHubModel): - """ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody""" - 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, - min_length=1, - 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 ReposOwnerRepoActionsRunnersGetResponse200(GitHubModel): + """ReposOwnerRepoActionsRunnersGetResponse200""" + total_count: int = Field() + runners: List[Runner] = Field() -model_rebuild(ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody) -__all__ = ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody",) +model_rebuild(ReposOwnerRepoActionsRunnersGetResponse200) + +__all__ = ("ReposOwnerRepoActionsRunnersGetResponse200",) 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 47ec574ee..c091701cc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0959.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0959.py @@ -13,18 +13,29 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody(GitHubModel): - """ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody""" +class ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody(GitHubModel): + """ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody""" + 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, - description="The names of the custom labels to set for the runner. You can pass an empty array to remove all custom labels.", + min_length=1, + 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(ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody) +model_rebuild(ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody) -__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody",) +__all__ = ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody",) 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 f0573dca7..47ec574ee 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0960.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0960.py @@ -16,16 +16,15 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody(GitHubModel): - """ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody""" +class ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody(GitHubModel): + """ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody""" labels: List[str] = Field( max_length=100, - min_length=1, - description="The names of the custom labels to add to the runner.", + 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(ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody) +model_rebuild(ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody) -__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody",) +__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody",) 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 d3f7dc5e2..f0573dca7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0961.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0961.py @@ -15,16 +15,17 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0191 import WorkflowRun +class ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody(GitHubModel): + """ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody""" -class ReposOwnerRepoActionsRunsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsRunsGetResponse200""" + labels: List[str] = Field( + max_length=100, + min_length=1, + description="The names of the custom labels to add to the runner.", + ) - total_count: int = Field() - workflow_runs: List[WorkflowRun] = Field() +model_rebuild(ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody) -model_rebuild(ReposOwnerRepoActionsRunsGetResponse200) - -__all__ = ("ReposOwnerRepoActionsRunsGetResponse200",) +__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody",) 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 cb84fe4d4..d3f7dc5e2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0962.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0962.py @@ -15,16 +15,16 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0181 import Artifact +from .group_0191 import WorkflowRun -class ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200""" +class ReposOwnerRepoActionsRunsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsRunsGetResponse200""" total_count: int = Field() - artifacts: List[Artifact] = Field() + workflow_runs: List[WorkflowRun] = Field() -model_rebuild(ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200) +model_rebuild(ReposOwnerRepoActionsRunsGetResponse200) -__all__ = ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200",) +__all__ = ("ReposOwnerRepoActionsRunsGetResponse200",) 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 9d96c9e96..cb84fe4d4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0963.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0963.py @@ -15,18 +15,16 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0183 import Job +from .group_0181 import Artifact -class ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200( - GitHubModel -): - """ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200""" +class ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200""" total_count: int = Field() - jobs: List[Job] = Field() + artifacts: List[Artifact] = Field() -model_rebuild(ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200) +model_rebuild(ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200) -__all__ = ("ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200",) +__all__ = ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200",) 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 552cd35bf..9d96c9e96 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0964.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0964.py @@ -18,13 +18,15 @@ from .group_0183 import Job -class ReposOwnerRepoActionsRunsRunIdJobsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsRunsRunIdJobsGetResponse200""" +class ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200( + GitHubModel +): + """ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200""" total_count: int = Field() jobs: List[Job] = Field() -model_rebuild(ReposOwnerRepoActionsRunsRunIdJobsGetResponse200) +model_rebuild(ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200) -__all__ = ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200",) +__all__ = ("ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200",) 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 d62931f9a..552cd35bf 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0965.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0965.py @@ -9,25 +9,22 @@ from __future__ import annotations -from typing import List, Literal +from typing import List from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from .group_0183 import Job -class ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody(GitHubModel): - """ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody""" - 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") +class ReposOwnerRepoActionsRunsRunIdJobsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsRunsRunIdJobsGetResponse200""" + total_count: int = Field() + jobs: List[Job] = Field() -model_rebuild(ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody) -__all__ = ("ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody",) +model_rebuild(ReposOwnerRepoActionsRunsRunIdJobsGetResponse200) + +__all__ = ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200",) 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 28385e889..d62931f9a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0966.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0966.py @@ -9,21 +9,25 @@ from __future__ import annotations +from typing import List, Literal + from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoActionsRunsRunIdRerunPostBody(GitHubModel): - """ReposOwnerRepoActionsRunsRunIdRerunPostBody""" +class ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody(GitHubModel): + """ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody""" - enable_debug_logging: Missing[bool] = Field( - default=UNSET, description="Whether to enable debug logging for the re-run." + 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(ReposOwnerRepoActionsRunsRunIdRerunPostBody) +model_rebuild(ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody) -__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunPostBody",) +__all__ = ("ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody",) 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 c79dac58f..28385e889 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0967.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0967.py @@ -16,14 +16,14 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody(GitHubModel): - """ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody""" +class ReposOwnerRepoActionsRunsRunIdRerunPostBody(GitHubModel): + """ReposOwnerRepoActionsRunsRunIdRerunPostBody""" enable_debug_logging: Missing[bool] = Field( default=UNSET, description="Whether to enable debug logging for the re-run." ) -model_rebuild(ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody) +model_rebuild(ReposOwnerRepoActionsRunsRunIdRerunPostBody) -__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody",) +__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunPostBody",) 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 3644fa6ca..c79dac58f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0968.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0968.py @@ -9,22 +9,21 @@ from __future__ import annotations -from typing import List - from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0185 import ActionsSecret - -class ReposOwnerRepoActionsSecretsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsSecretsGetResponse200""" +class ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody(GitHubModel): + """ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody""" - total_count: int = Field() - secrets: List[ActionsSecret] = Field() + enable_debug_logging: Missing[bool] = Field( + default=UNSET, description="Whether to enable debug logging for the re-run." + ) -model_rebuild(ReposOwnerRepoActionsSecretsGetResponse200) +model_rebuild(ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody) -__all__ = ("ReposOwnerRepoActionsSecretsGetResponse200",) +__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody",) 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 e1968472d..3644fa6ca 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0969.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0969.py @@ -9,26 +9,22 @@ from __future__ import annotations +from typing import List + from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0185 import ActionsSecret + -class ReposOwnerRepoActionsSecretsSecretNamePutBody(GitHubModel): - """ReposOwnerRepoActionsSecretsSecretNamePutBody""" +class ReposOwnerRepoActionsSecretsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsSecretsGetResponse200""" - 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/actions/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." - ) + total_count: int = Field() + secrets: List[ActionsSecret] = Field() -model_rebuild(ReposOwnerRepoActionsSecretsSecretNamePutBody) +model_rebuild(ReposOwnerRepoActionsSecretsGetResponse200) -__all__ = ("ReposOwnerRepoActionsSecretsSecretNamePutBody",) +__all__ = ("ReposOwnerRepoActionsSecretsGetResponse200",) 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 cf5392f75..e1968472d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0970.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0970.py @@ -9,22 +9,26 @@ from __future__ import annotations -from typing import List - from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0186 import ActionsVariable - -class ReposOwnerRepoActionsVariablesGetResponse200(GitHubModel): - """ReposOwnerRepoActionsVariablesGetResponse200""" +class ReposOwnerRepoActionsSecretsSecretNamePutBody(GitHubModel): + """ReposOwnerRepoActionsSecretsSecretNamePutBody""" - total_count: int = Field() - variables: List[ActionsVariable] = 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/enterprise-cloud@latest//rest/actions/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(ReposOwnerRepoActionsVariablesGetResponse200) +model_rebuild(ReposOwnerRepoActionsSecretsSecretNamePutBody) -__all__ = ("ReposOwnerRepoActionsVariablesGetResponse200",) +__all__ = ("ReposOwnerRepoActionsSecretsSecretNamePutBody",) 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 bf9209ee5..cf5392f75 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0971.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0971.py @@ -9,18 +9,22 @@ from __future__ import annotations +from typing import List + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from .group_0186 import ActionsVariable + -class ReposOwnerRepoActionsVariablesPostBody(GitHubModel): - """ReposOwnerRepoActionsVariablesPostBody""" +class ReposOwnerRepoActionsVariablesGetResponse200(GitHubModel): + """ReposOwnerRepoActionsVariablesGetResponse200""" - name: str = Field(description="The name of the variable.") - value: str = Field(description="The value of the variable.") + total_count: int = Field() + variables: List[ActionsVariable] = Field() -model_rebuild(ReposOwnerRepoActionsVariablesPostBody) +model_rebuild(ReposOwnerRepoActionsVariablesGetResponse200) -__all__ = ("ReposOwnerRepoActionsVariablesPostBody",) +__all__ = ("ReposOwnerRepoActionsVariablesGetResponse200",) 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 f0b922c41..bf9209ee5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0972.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0972.py @@ -11,18 +11,16 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoActionsVariablesNamePatchBody(GitHubModel): - """ReposOwnerRepoActionsVariablesNamePatchBody""" +class ReposOwnerRepoActionsVariablesPostBody(GitHubModel): + """ReposOwnerRepoActionsVariablesPostBody""" - name: Missing[str] = Field(default=UNSET, description="The name of the variable.") - value: Missing[str] = Field(default=UNSET, description="The value of the variable.") + name: str = Field(description="The name of the variable.") + value: str = Field(description="The value of the variable.") -model_rebuild(ReposOwnerRepoActionsVariablesNamePatchBody) +model_rebuild(ReposOwnerRepoActionsVariablesPostBody) -__all__ = ("ReposOwnerRepoActionsVariablesNamePatchBody",) +__all__ = ("ReposOwnerRepoActionsVariablesPostBody",) 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 d5193e37e..f0b922c41 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0973.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0973.py @@ -9,9 +9,6 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal - from pydantic import Field from githubkit.utils import UNSET @@ -19,38 +16,13 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoActionsWorkflowsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsWorkflowsGetResponse200""" - - total_count: int = Field() - workflows: List[Workflow] = Field() - - -class Workflow(GitHubModel): - """Workflow - - A GitHub Actions workflow - """ +class ReposOwnerRepoActionsVariablesNamePatchBody(GitHubModel): + """ReposOwnerRepoActionsVariablesNamePatchBody""" - 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) + 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(ReposOwnerRepoActionsWorkflowsGetResponse200) -model_rebuild(Workflow) +model_rebuild(ReposOwnerRepoActionsVariablesNamePatchBody) -__all__ = ( - "ReposOwnerRepoActionsWorkflowsGetResponse200", - "Workflow", -) +__all__ = ("ReposOwnerRepoActionsVariablesNamePatchBody",) 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 506702767..d5193e37e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0974.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0974.py @@ -9,42 +9,48 @@ from __future__ import annotations +from datetime import datetime +from typing import List, Literal + from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody(GitHubModel): - """ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody""" +class ReposOwnerRepoActionsWorkflowsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsWorkflowsGetResponse200""" - 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.", - ) + total_count: int = Field() + workflows: List[Workflow] = Field() -class ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs( - ExtraGitHubModel -): - """ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs +class Workflow(GitHubModel): + """Workflow - 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. + A GitHub Actions workflow """ + 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(ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody) -model_rebuild(ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs) +model_rebuild(ReposOwnerRepoActionsWorkflowsGetResponse200) +model_rebuild(Workflow) __all__ = ( - "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody", - "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs", + "ReposOwnerRepoActionsWorkflowsGetResponse200", + "Workflow", ) 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 1e64f0b6b..506702767 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0975.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0975.py @@ -9,22 +9,42 @@ from __future__ import annotations -from typing import List - from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.utils import UNSET +from githubkit.typing import Missing +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild + + +class ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody(GitHubModel): + """ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody""" -from .group_0191 import WorkflowRun + 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 ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200""" +class ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs( + ExtraGitHubModel +): + """ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs - total_count: int = Field() - workflow_runs: List[WorkflowRun] = Field() + 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(ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200) +model_rebuild(ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody) +model_rebuild(ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs) -__all__ = ("ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200",) +__all__ = ( + "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody", + "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs", +) 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 d40211dee..1e64f0b6b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0976.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0976.py @@ -9,57 +9,22 @@ from __future__ import annotations -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild - - -class ReposOwnerRepoAttestationsPostBody(GitHubModel): - """ReposOwnerRepoAttestationsPostBody""" +from typing import List - 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. - """ +from pydantic import Field - 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") +from githubkit.compat import GitHubModel, model_rebuild +from .group_0191 import WorkflowRun -class ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial( - ExtraGitHubModel -): - """ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial""" +class ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200""" -class ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope(ExtraGitHubModel): - """ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope""" + total_count: int = Field() + workflow_runs: List[WorkflowRun] = Field() -model_rebuild(ReposOwnerRepoAttestationsPostBody) -model_rebuild(ReposOwnerRepoAttestationsPostBodyPropBundle) -model_rebuild(ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial) -model_rebuild(ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope) +model_rebuild(ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200) -__all__ = ( - "ReposOwnerRepoAttestationsPostBody", - "ReposOwnerRepoAttestationsPostBodyPropBundle", - "ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial", - "ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope", -) +__all__ = ("ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200",) 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 2a363197c..d40211dee 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0977.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0977.py @@ -13,15 +13,53 @@ from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild -class ReposOwnerRepoAttestationsPostResponse201(GitHubModel): - """ReposOwnerRepoAttestationsPostResponse201""" +class ReposOwnerRepoAttestationsPostBody(GitHubModel): + """ReposOwnerRepoAttestationsPostBody""" - id: Missing[int] = Field(default=UNSET, description="The ID of the attestation.") + 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." + ) -model_rebuild(ReposOwnerRepoAttestationsPostResponse201) +class ReposOwnerRepoAttestationsPostBodyPropBundle(GitHubModel): + """ReposOwnerRepoAttestationsPostBodyPropBundle -__all__ = ("ReposOwnerRepoAttestationsPostResponse201",) + 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", + "ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial", + "ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope", +) 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 3159f56c1..2a363197c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0978.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0978.py @@ -9,92 +9,19 @@ from __future__ import annotations -from typing import List - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild - - -class ReposOwnerRepoAttestationsSubjectDigestGetResponse200(GitHubModel): - """ReposOwnerRepoAttestationsSubjectDigestGetResponse200""" - - 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.", - ) - repository_id: Missing[int] = 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") - +from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial( - ExtraGitHubModel -): - """ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBu - ndlePropVerificationMaterial - """ +class ReposOwnerRepoAttestationsPostResponse201(GitHubModel): + """ReposOwnerRepoAttestationsPostResponse201""" -class ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope( - ExtraGitHubModel -): - """ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBu - ndlePropDsseEnvelope - """ + id: Missing[int] = Field(default=UNSET, description="The ID of the attestation.") -model_rebuild(ReposOwnerRepoAttestationsSubjectDigestGetResponse200) -model_rebuild( - ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems -) -model_rebuild( - ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle -) -model_rebuild( - ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial -) -model_rebuild( - ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope -) +model_rebuild(ReposOwnerRepoAttestationsPostResponse201) -__all__ = ( - "ReposOwnerRepoAttestationsSubjectDigestGetResponse200", - "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems", - "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle", - "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial", - "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope", -) +__all__ = ("ReposOwnerRepoAttestationsPostResponse201",) 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 171e026b6..3159f56c1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0979.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0979.py @@ -9,28 +9,92 @@ from __future__ import annotations +from typing import List + from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild -class ReposOwnerRepoAutolinksPostBody(GitHubModel): - """ReposOwnerRepoAutolinksPostBody""" +class ReposOwnerRepoAttestationsSubjectDigestGetResponse200(GitHubModel): + """ReposOwnerRepoAttestationsSubjectDigestGetResponse200""" - 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( + attestations: Missing[ + List[ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems] + ] = Field(default=UNSET) + + +class ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems( + GitHubModel +): + """ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems""" + + bundle: Missing[ + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle + ] = 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.", + 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) + + +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(ReposOwnerRepoAutolinksPostBody) +model_rebuild(ReposOwnerRepoAttestationsSubjectDigestGetResponse200) +model_rebuild( + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems +) +model_rebuild( + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle +) +model_rebuild( + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial +) +model_rebuild( + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope +) -__all__ = ("ReposOwnerRepoAutolinksPostBody",) +__all__ = ( + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope", +) 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 37533ed53..171e026b6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0980.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0980.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import List, Union - from pydantic import Field from githubkit.utils import UNSET @@ -18,218 +16,21 @@ from githubkit.compat import GitHubModel, model_rebuild -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="**Deprecated**: 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.\n" - ) - 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. - """ +class ReposOwnerRepoAutolinksPostBody(GitHubModel): + """ReposOwnerRepoAutolinksPostBody""" - 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.", + 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." ) - 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.", + url_template: str = Field( + description="The URL must contain `` for the reference number. `` matches different characters depending on the value of `is_alphanumeric`." ) - require_last_push_approval: Missing[bool] = Field( + is_alphanumeric: 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. - """ - - 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" + 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(ReposOwnerRepoBranchesBranchProtectionPutBody) -model_rebuild(ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks) -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems -) -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews -) -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions -) -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances -) -model_rebuild(ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions) +model_rebuild(ReposOwnerRepoAutolinksPostBody) -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionPutBody", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions", -) +__all__ = ("ReposOwnerRepoAutolinksPostBody",) 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 bf12fcce1..37533ed53 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0981.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0981.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List +from typing import List, Union from pydantic import Field @@ -18,13 +18,107 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody( +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 ): - """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody""" + """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="**Deprecated**: 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.\n" + ) + 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[ - ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions + 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.", @@ -35,29 +129,29 @@ class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody( ) 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.", + 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="Specifies the number of reviewers required to approve pull requests. Use a number between 1 and 6 or 0 to not require reviewers.", + 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`", + 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 + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances ] = Field( default=UNSET, description="Allow specific users, teams, or apps to bypass pull request requirements.", ) -class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions( +class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions( GitHubModel ): - """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDis - missalRestrictions + """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropD + ismissalRestrictions Specify which users, teams, and apps can dismiss pull request reviews. Pass an empty `dismissal_restrictions` object to disable. User and team @@ -76,11 +170,11 @@ class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyP ) -class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances( +class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances( GitHubModel ): - """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropByp - assPullRequestAllowances + """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropB + ypassPullRequestAllowances Allow specific users, teams, or apps to bypass pull request requirements. """ @@ -99,16 +193,43 @@ class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyP ) -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody) +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. + """ + + 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(ReposOwnerRepoBranchesBranchProtectionPutBody) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems +) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews +) model_rebuild( - ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions ) model_rebuild( - ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances ) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions) __all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody", - "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions", - "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances", + "ReposOwnerRepoBranchesBranchProtectionPutBody", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions", ) 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 2c40acb3b..bf12fcce1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0982.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0982.py @@ -18,46 +18,97 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody""" +class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody""" - strict: Missing[bool] = Field( - default=UNSET, description="Require branches to be up to date before merging." + 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.", ) - contexts: Missing[List[str]] = Field( + require_last_push_approval: Missing[bool] = Field( default=UNSET, - description="**Deprecated**: 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.\n", + description="Whether the most recent push must be approved by someone other than the person who pushed it. Default: `false`", ) - checks: Missing[ - List[ - ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems - ] + bypass_pull_request_allowances: Missing[ + ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances ] = Field( default=UNSET, - description="The list of status checks to require in order to merge into this branch.", + description="Allow specific users, teams, or apps to bypass pull request requirements.", ) -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems( +class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions( GitHubModel ): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksIte - ms + """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. """ - context: str = Field(description="The name of the required check") - app_id: Missing[int] = Field( + 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 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.", + 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(ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions +) model_rebuild( - ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems + ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances ) __all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody", - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems", + "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody", + "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions", + "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances", ) 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 39635099b..2c40acb3b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0983.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0983.py @@ -13,25 +13,51 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0( +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="**Deprecated**: 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.\n", + ) + 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 ): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 - - Examples: - {'contexts': ['contexts']} + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksIte + ms """ - contexts: List[str] = Field(description="The name of the status checks") + 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( - ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 + ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems ) __all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0", + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody", + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems", ) 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 f699ea725..39635099b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0984.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0984.py @@ -16,10 +16,10 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0( +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0( GitHubModel ): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0 + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 Examples: {'contexts': ['contexts']} @@ -29,9 +29,9 @@ class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBody model_rebuild( - ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0 + ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 ) __all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0", + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0", ) 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 0a6816433..f699ea725 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0985.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0985.py @@ -16,11 +16,10 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0( +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0( GitHubModel ): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneo - f0 + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0 Examples: {'contexts': ['contexts']} @@ -30,9 +29,9 @@ class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBo model_rebuild( - ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0 + ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0 ) __all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0", + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0", ) 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 661488f46..0a6816433 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0986.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0986.py @@ -16,18 +16,23 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0 +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneo + f0 Examples: - {'apps': ['my-app']} + {'contexts': ['contexts']} """ - 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." - ) + contexts: List[str] = Field(description="The name of the status checks") -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0 +) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0",) +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0", +) 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 04feeadfe..661488f46 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0987.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0987.py @@ -16,8 +16,8 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0 +class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0 Examples: {'apps': ['my-app']} @@ -28,6 +28,6 @@ class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0(GitHu ) -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0",) 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 f44772a3b..04feeadfe 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0988.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0988.py @@ -16,10 +16,8 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0 +class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0 Examples: {'apps': ['my-app']} @@ -30,6 +28,6 @@ class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0( ) -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0",) 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 1f7be7c63..f44772a3b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0989.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0989.py @@ -16,16 +16,20 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0 +class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0 Examples: - {'teams': ['justice-league']} + {'apps': ['my-app']} """ - teams: List[str] = Field(description="The slug values for teams") + 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(ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0",) 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 cad6d2023..1f7be7c63 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0990.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0990.py @@ -16,18 +16,16 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0 +class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0 Examples: - {'teams': ['my-team']} + {'teams': ['justice-league']} """ teams: List[str] = Field(description="The slug values for teams") -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0",) 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 a92d25c56..cad6d2023 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0991.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0991.py @@ -16,10 +16,10 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0( +class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0( GitHubModel ): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0 + """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0 Examples: {'teams': ['my-team']} @@ -28,6 +28,6 @@ class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0( teams: List[str] = Field(description="The slug values for teams") -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0",) 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 1c399dbec..a92d25c56 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0992.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0992.py @@ -16,16 +16,18 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0 +class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0 Examples: - {'users': ['mona']} + {'teams': ['my-team']} """ - users: List[str] = Field(description="The username for users") + teams: List[str] = Field(description="The slug values for teams") -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0",) 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 669ca7afa..1c399dbec 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0993.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0993.py @@ -16,10 +16,8 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0 +class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0 Examples: {'users': ['mona']} @@ -28,6 +26,6 @@ class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0( users: List[str] = Field(description="The username for users") -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0",) 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 4fc86a736..669ca7afa 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0994.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0994.py @@ -16,10 +16,10 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0( +class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0( GitHubModel ): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0 + """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0 Examples: {'users': ['mona']} @@ -28,6 +28,6 @@ class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0( users: List[str] = Field(description="The username for users") -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0",) 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 5fcd45c02..4fc86a736 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0995.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0995.py @@ -9,17 +9,25 @@ from __future__ import annotations +from typing import List + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchRenamePostBody(GitHubModel): - """ReposOwnerRepoBranchesBranchRenamePostBody""" +class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0 + + Examples: + {'users': ['mona']} + """ - new_name: str = Field(description="The new name of the branch.") + users: List[str] = Field(description="The username for users") -model_rebuild(ReposOwnerRepoBranchesBranchRenamePostBody) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0) -__all__ = ("ReposOwnerRepoBranchesBranchRenamePostBody",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0",) 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 0746e9073..5fcd45c02 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0996.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0996.py @@ -9,117 +9,17 @@ from __future__ import annotations -from typing import List, Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCheckRunsPostBodyPropOutput(GitHubModel): - """ReposOwnerRepoCheckRunsPostBodyPropOutput - - 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, - 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""" +class ReposOwnerRepoBranchesBranchRenamePostBody(GitHubModel): + """ReposOwnerRepoBranchesBranchRenamePostBody""" - 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.", - ) + new_name: str = Field(description="The new name of the branch.") -model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropOutput) -model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems) -model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems) -model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropActionsItems) +model_rebuild(ReposOwnerRepoBranchesBranchRenamePostBody) -__all__ = ( - "ReposOwnerRepoCheckRunsPostBodyPropOutput", - "ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems", - "ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems", - "ReposOwnerRepoCheckRunsPostBodyPropActionsItems", -) +__all__ = ("ReposOwnerRepoBranchesBranchRenamePostBody",) 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 47c6ba7ef..0746e9073 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0997.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0997.py @@ -9,67 +9,117 @@ from __future__ import annotations -from datetime import datetime from typing import List, Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -from .group_0996 import ( - ReposOwnerRepoCheckRunsPostBodyPropOutput, - ReposOwnerRepoCheckRunsPostBodyPropActionsItems, -) +class ReposOwnerRepoCheckRunsPostBodyPropOutput(GitHubModel): + """ReposOwnerRepoCheckRunsPostBodyPropOutput -class ReposOwnerRepoCheckRunsPostBodyOneof0(ExtraGitHubModel): - """ReposOwnerRepoCheckRunsPostBodyOneof0""" + 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. + """ - name: str = Field( - description='The name of the check. For example, "code-coverage".' + 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.", ) - head_sha: str = Field(description="The SHA of the commit.") - details_url: Missing[str] = Field( + annotations: Missing[ + List[ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems] + ] = Field( + max_length=50, 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.", + 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`." ) - external_id: Missing[str] = Field( - default=UNSET, description="A reference for the run on the integrator's system." + start_line: int = Field( + description="The start line of the annotation. Line numbers start at 1." ) - status: Literal["completed"] = Field() - started_at: Missing[datetime] = Field( + end_line: int = Field(description="The end line of the annotation.") + start_column: Missing[int] = 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." + 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.", ) - completed_at: Missing[datetime] = Field( + end_column: Missing[int] = 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`.", + 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." ) - output: Missing[ReposOwnerRepoCheckRunsPostBodyPropOutput] = Field( + title: Missing[str] = 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.", + description="The title that represents the annotation. The maximum size is 255 characters.", ) - actions: Missing[List[ReposOwnerRepoCheckRunsPostBodyPropActionsItems]] = Field( - max_length=3, + raw_details: Missing[str] = Field( 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)."', + description="Details about this annotation. The maximum size is 64 KB.", ) -model_rebuild(ReposOwnerRepoCheckRunsPostBodyOneof0) +class ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems(GitHubModel): + """ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems""" -__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof0",) + 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(ReposOwnerRepoCheckRunsPostBodyPropOutput) +model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems) +model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems) +model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropActionsItems) + +__all__ = ( + "ReposOwnerRepoCheckRunsPostBodyPropOutput", + "ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems", + "ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems", + "ReposOwnerRepoCheckRunsPostBodyPropActionsItems", +) 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 837677d27..d57cdf975 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0998.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0998.py @@ -18,14 +18,14 @@ from githubkit.typing import Missing from githubkit.compat import ExtraGitHubModel, model_rebuild -from .group_0996 import ( +from .group_0997 import ( ReposOwnerRepoCheckRunsPostBodyPropOutput, ReposOwnerRepoCheckRunsPostBodyPropActionsItems, ) -class ReposOwnerRepoCheckRunsPostBodyOneof1(ExtraGitHubModel): - """ReposOwnerRepoCheckRunsPostBodyOneof1""" +class ReposOwnerRepoCheckRunsPostBodyOneof0(ExtraGitHubModel): + """ReposOwnerRepoCheckRunsPostBodyOneof0""" name: str = Field( description='The name of the check. For example, "code-coverage".' @@ -38,25 +38,22 @@ class ReposOwnerRepoCheckRunsPostBodyOneof1(ExtraGitHubModel): external_id: Missing[str] = Field( default=UNSET, description="A reference for the run on the integrator's system." ) - status: Missing[Literal["queued", "in_progress"]] = Field(default=UNSET) + 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: Missing[ - Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "success", - "skipped", - "stale", - "timed_out", - ] + conclusion: 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.", + 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, @@ -73,6 +70,6 @@ class ReposOwnerRepoCheckRunsPostBodyOneof1(ExtraGitHubModel): ) -model_rebuild(ReposOwnerRepoCheckRunsPostBodyOneof1) +model_rebuild(ReposOwnerRepoCheckRunsPostBodyOneof0) -__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof1",) +__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof0",) 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 b658d212e..41e53b8f9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0999.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0999.py @@ -9,114 +9,70 @@ from __future__ import annotations +from datetime import datetime from typing import List, Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, model_rebuild +from .group_0997 import ( + ReposOwnerRepoCheckRunsPostBodyPropOutput, + ReposOwnerRepoCheckRunsPostBodyPropActionsItems, +) -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. - """ +class ReposOwnerRepoCheckRunsPostBodyOneof1(ExtraGitHubModel): + """ReposOwnerRepoCheckRunsPostBodyOneof1""" - 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, - 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)\".", + name: str = Field( + description='The name of the check. For example, "code-coverage".' ) - images: Missing[ - List[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems] - ] = Field( + head_sha: str = Field(description="The SHA of the commit.") + details_url: Missing[str] = Field( default=UNSET, - 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`." + 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.", ) - start_line: int = Field( - description="The start line of the annotation. Line numbers start at 1." + external_id: Missing[str] = Field( + default=UNSET, description="A reference for the run on the integrator's system." ) - end_line: int = Field(description="The end line of the annotation.") - start_column: Missing[int] = Field( + status: Missing[Literal["queued", "in_progress"]] = Field(default=UNSET) + started_at: Missing[datetime] = 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.", + 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`.", ) - end_column: Missing[int] = Field( + conclusion: Missing[ + Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "success", + "skipped", + "stale", + "timed_out", + ] + ] = 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." + 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.", ) - title: Missing[str] = Field( + completed_at: Missing[datetime] = Field( default=UNSET, - description="The title that represents the annotation. The maximum size is 255 characters.", + 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`.", ) - raw_details: Missing[str] = Field( + output: Missing[ReposOwnerRepoCheckRunsPostBodyPropOutput] = Field( default=UNSET, - description="Details about this annotation. The maximum size is 64 KB.", + 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.", ) - - -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.", + actions: Missing[List[ReposOwnerRepoCheckRunsPostBodyPropActionsItems]] = Field( + max_length=3, + 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(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput) -model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems) -model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems) -model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems) +model_rebuild(ReposOwnerRepoCheckRunsPostBodyOneof1) -__all__ = ( - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput", - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems", - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems", - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems", -) +__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof1",) 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 8cc54daf6..b658d212e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1000.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1000.py @@ -9,69 +9,114 @@ from __future__ import annotations -from datetime import datetime from typing import List, Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -from .group_0999 import ( - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput, - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems, -) +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput(GitHubModel): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0(ExtraGitHubModel): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0""" + 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. + """ - name: Missing[str] = Field( + 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, default=UNSET, - description='The name of the check. For example, "code-coverage".', + 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)\".", ) - details_url: Missing[str] = Field( + images: Missing[ + List[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems] + ] = Field( default=UNSET, - description="The URL of the integrator's site that has the full details of the check.", + 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`." ) - external_id: Missing[str] = Field( - default=UNSET, description="A reference for the run on the integrator's system." + start_line: int = Field( + description="The start line of the annotation. Line numbers start at 1." ) - started_at: Missing[datetime] = Field( + end_line: int = Field(description="The end line of the annotation.") + start_column: Missing[int] = 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." + 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.", ) - completed_at: Missing[datetime] = Field( + end_column: Missing[int] = 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`.", + 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." ) - output: Missing[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput] = Field( + title: Missing[str] = 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.", + description="The title that represents the annotation. The maximum size is 255 characters.", ) - actions: Missing[ - List[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems] - ] = Field( - max_length=3, + raw_details: Missing[str] = Field( 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)."', + 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(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0) +model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput) +model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems) +model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems) +model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems) -__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0",) +__all__ = ( + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput", + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems", + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems", + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems", +) 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 637e24f23..248371dc8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1001.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1001.py @@ -18,14 +18,14 @@ from githubkit.typing import Missing from githubkit.compat import ExtraGitHubModel, model_rebuild -from .group_0999 import ( +from .group_1000 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput, ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems, ) -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1(ExtraGitHubModel): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1""" +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0(ExtraGitHubModel): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0""" name: Missing[str] = Field( default=UNSET, @@ -42,21 +42,18 @@ class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1(ExtraGitHubModel): 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", - ] + status: Missing[Literal["completed"]] = Field(default=UNSET) + conclusion: 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.", + 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, @@ -75,6 +72,6 @@ class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1(ExtraGitHubModel): ) -model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1) +model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0) -__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1",) +__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0",) 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 2a8e7cd54..6aafc91cd 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1002.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1002.py @@ -9,17 +9,72 @@ from __future__ import annotations +from datetime import datetime +from typing import List, Literal + from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.utils import UNSET +from githubkit.typing import Missing +from githubkit.compat import ExtraGitHubModel, model_rebuild + +from .group_1000 import ( + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput, + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems, +) -class ReposOwnerRepoCheckSuitesPostBody(GitHubModel): - """ReposOwnerRepoCheckSuitesPostBody""" +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1(ExtraGitHubModel): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1""" - head_sha: str = Field(description="The sha of the head commit.") + 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, + 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(ReposOwnerRepoCheckSuitesPostBody) +model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1) -__all__ = ("ReposOwnerRepoCheckSuitesPostBody",) +__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1",) 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 e31b287e9..2a8e7cd54 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1003.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1003.py @@ -9,42 +9,17 @@ from __future__ import annotations -from typing import List - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCheckSuitesPreferencesPatchBody(GitHubModel): - """ReposOwnerRepoCheckSuitesPreferencesPatchBody""" - - 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 ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems( - GitHubModel -): - """ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems""" +class ReposOwnerRepoCheckSuitesPostBody(GitHubModel): + """ReposOwnerRepoCheckSuitesPostBody""" - 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.", - ) + head_sha: str = Field(description="The sha of the head commit.") -model_rebuild(ReposOwnerRepoCheckSuitesPreferencesPatchBody) -model_rebuild(ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems) +model_rebuild(ReposOwnerRepoCheckSuitesPostBody) -__all__ = ( - "ReposOwnerRepoCheckSuitesPreferencesPatchBody", - "ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems", -) +__all__ = ("ReposOwnerRepoCheckSuitesPostBody",) 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 9bf857b2f..e31b287e9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1004.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1004.py @@ -13,18 +13,38 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0217 import CheckRun +class ReposOwnerRepoCheckSuitesPreferencesPatchBody(GitHubModel): + """ReposOwnerRepoCheckSuitesPreferencesPatchBody""" -class ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200(GitHubModel): - """ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200""" + 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() - check_runs: List[CheckRun] = Field() +class ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems( + GitHubModel +): + """ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems""" -model_rebuild(ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200) + 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__ = ("ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200",) + +model_rebuild(ReposOwnerRepoCheckSuitesPreferencesPatchBody) +model_rebuild(ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems) + +__all__ = ( + "ReposOwnerRepoCheckSuitesPreferencesPatchBody", + "ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems", +) 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 14e8507cc..9bf857b2f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1005.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1005.py @@ -9,36 +9,22 @@ from __future__ import annotations -from typing import Union, Literal -from typing_extensions import Annotated +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0217 import CheckRun -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.", - ) - ) +class ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200(GitHubModel): + """ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200""" + total_count: int = Field() + check_runs: List[CheckRun] = Field() -model_rebuild(ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody) -__all__ = ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody",) +model_rebuild(ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200) + +__all__ = ("ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200",) 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 e03cf7d53..14e8507cc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1006.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1006.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import List, Literal +from typing import Union, Literal +from typing_extensions import Annotated from pydantic import Field @@ -18,30 +19,26 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0(GitHubModel): - """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0""" +class ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody(GitHubModel): + """ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody""" - language: Literal[ - "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "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" + 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`." ) - 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, + dismissed_reason: Missing[ + Union[None, Literal["false positive", "won't fix", "used in tests"]] + ] = 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="**Required when the state is dismissed.** The reason for dismissing or closing the alert.", ) - repository_owners: Missing[List[str]] = Field( - max_length=1, - 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.", + 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.", + ) ) -model_rebuild(ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0) +model_rebuild(ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody) -__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0",) +__all__ = ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody",) 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 7716f42e6..e03cf7d53 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1007.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1007.py @@ -18,8 +18,8 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1(GitHubModel): - """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1""" +class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0(GitHubModel): + """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0""" language: Literal[ "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "swift" @@ -27,12 +27,12 @@ class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1(GitHubModel) 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.", + 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: List[str] = Field( + repository_lists: Missing[List[str]] = Field( max_length=1, + 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( @@ -42,6 +42,6 @@ class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1(GitHubModel) ) -model_rebuild(ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1) +model_rebuild(ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0) -__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1",) +__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0",) 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 42a935203..7716f42e6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1008.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1008.py @@ -18,8 +18,8 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2(GitHubModel): - """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2""" +class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1(GitHubModel): + """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1""" language: Literal[ "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "swift" @@ -31,17 +31,17 @@ class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2(GitHubModel) 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( + repository_lists: List[str] = Field( max_length=1, - 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( + repository_owners: Missing[List[str]] = Field( max_length=1, + 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(ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2) +model_rebuild(ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1) -__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2",) +__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1",) 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 ed78e98a4..42a935203 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1009.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1009.py @@ -9,7 +9,7 @@ from __future__ import annotations -from datetime import datetime +from typing import List, Literal from pydantic import Field @@ -18,41 +18,30 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCodeScanningSarifsPostBody(GitHubModel): - """ReposOwnerRepoCodeScanningSarifsPostBody""" +class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2(GitHubModel): + """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2""" - 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.", + language: Literal[ + "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "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" ) - 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( + repositories: Missing[List[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.", + 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.", ) - started_at: Missing[datetime] = Field( + repository_lists: Missing[List[str]] = Field( + max_length=1, 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="List of repository lists to run the query against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", ) - 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.", + repository_owners: List[str] = Field( + max_length=1, + 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(ReposOwnerRepoCodeScanningSarifsPostBody) +model_rebuild(ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2) -__all__ = ("ReposOwnerRepoCodeScanningSarifsPostBody",) +__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2",) 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 9c41bec00..ed78e98a4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1010.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1010.py @@ -9,22 +9,50 @@ from __future__ import annotations -from typing import List +from datetime import datetime from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0094 import Codespace - -class ReposOwnerRepoCodespacesGetResponse200(GitHubModel): - """ReposOwnerRepoCodespacesGetResponse200""" - - total_count: int = Field() - codespaces: List[Codespace] = Field() - - -model_rebuild(ReposOwnerRepoCodespacesGetResponse200) - -__all__ = ("ReposOwnerRepoCodespacesGetResponse200",) +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/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(ReposOwnerRepoCodeScanningSarifsPostBody) + +__all__ = ("ReposOwnerRepoCodeScanningSarifsPostBody",) 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 fcbf9ab7e..9c41bec00 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1011.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1011.py @@ -9,61 +9,22 @@ from __future__ import annotations -from typing import Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0094 import Codespace -class ReposOwnerRepoCodespacesPostBody(GitHubModel): - """ReposOwnerRepoCodespacesPostBody""" - 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 being deprecated.", - ) - 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).", - ) +class ReposOwnerRepoCodespacesGetResponse200(GitHubModel): + """ReposOwnerRepoCodespacesGetResponse200""" + total_count: int = Field() + codespaces: List[Codespace] = Field() -model_rebuild(ReposOwnerRepoCodespacesPostBody) -__all__ = ("ReposOwnerRepoCodespacesPostBody",) +model_rebuild(ReposOwnerRepoCodespacesGetResponse200) + +__all__ = ("ReposOwnerRepoCodespacesGetResponse200",) 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 94896c110..fcbf9ab7e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1012.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1012.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List +from typing import Literal from pydantic import Field @@ -18,29 +18,52 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCodespacesDevcontainersGetResponse200(GitHubModel): - """ReposOwnerRepoCodespacesDevcontainersGetResponse200""" - - total_count: int = 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(ReposOwnerRepoCodespacesDevcontainersGetResponse200) -model_rebuild(ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems) - -__all__ = ( - "ReposOwnerRepoCodespacesDevcontainersGetResponse200", - "ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems", -) +class ReposOwnerRepoCodespacesPostBody(GitHubModel): + """ReposOwnerRepoCodespacesPostBody""" + + 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 being deprecated.", + ) + 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(ReposOwnerRepoCodespacesPostBody) + +__all__ = ("ReposOwnerRepoCodespacesPostBody",) 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 f4c7cb5a7..94896c110 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1013.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1013.py @@ -13,18 +13,34 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0093 import CodespaceMachine - -class ReposOwnerRepoCodespacesMachinesGetResponse200(GitHubModel): - """ReposOwnerRepoCodespacesMachinesGetResponse200""" +class ReposOwnerRepoCodespacesDevcontainersGetResponse200(GitHubModel): + """ReposOwnerRepoCodespacesDevcontainersGetResponse200""" total_count: int = Field() - machines: List[CodespaceMachine] = 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(ReposOwnerRepoCodespacesMachinesGetResponse200) +model_rebuild(ReposOwnerRepoCodespacesDevcontainersGetResponse200) +model_rebuild(ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems) -__all__ = ("ReposOwnerRepoCodespacesMachinesGetResponse200",) +__all__ = ( + "ReposOwnerRepoCodespacesDevcontainersGetResponse200", + "ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems", +) 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 cbb5b1e1b..f4c7cb5a7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1014.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1014.py @@ -9,39 +9,22 @@ from __future__ import annotations -from typing import Union +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser +from .group_0093 import CodespaceMachine -class ReposOwnerRepoCodespacesNewGetResponse200(GitHubModel): - """ReposOwnerRepoCodespacesNewGetResponse200""" +class ReposOwnerRepoCodespacesMachinesGetResponse200(GitHubModel): + """ReposOwnerRepoCodespacesMachinesGetResponse200""" - billable_owner: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) - defaults: Missing[ReposOwnerRepoCodespacesNewGetResponse200PropDefaults] = Field( - default=UNSET - ) + total_count: int = Field() + machines: List[CodespaceMachine] = Field() -class ReposOwnerRepoCodespacesNewGetResponse200PropDefaults(GitHubModel): - """ReposOwnerRepoCodespacesNewGetResponse200PropDefaults""" +model_rebuild(ReposOwnerRepoCodespacesMachinesGetResponse200) - location: str = Field() - devcontainer_path: Union[str, None] = Field() - - -model_rebuild(ReposOwnerRepoCodespacesNewGetResponse200) -model_rebuild(ReposOwnerRepoCodespacesNewGetResponse200PropDefaults) - -__all__ = ( - "ReposOwnerRepoCodespacesNewGetResponse200", - "ReposOwnerRepoCodespacesNewGetResponse200PropDefaults", -) +__all__ = ("ReposOwnerRepoCodespacesMachinesGetResponse200",) 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 e99811a75..cbb5b1e1b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1015.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1015.py @@ -9,36 +9,39 @@ from __future__ import annotations -from typing import List -from datetime import datetime +from typing import Union from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0001 import SimpleUser -class ReposOwnerRepoCodespacesSecretsGetResponse200(GitHubModel): - """ReposOwnerRepoCodespacesSecretsGetResponse200""" - total_count: int = Field() - secrets: List[RepoCodespacesSecret] = Field() +class ReposOwnerRepoCodespacesNewGetResponse200(GitHubModel): + """ReposOwnerRepoCodespacesNewGetResponse200""" + billable_owner: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) + defaults: Missing[ReposOwnerRepoCodespacesNewGetResponse200PropDefaults] = Field( + default=UNSET + ) -class RepoCodespacesSecret(GitHubModel): - """Codespaces Secret - Set repository secrets for GitHub Codespaces. - """ +class ReposOwnerRepoCodespacesNewGetResponse200PropDefaults(GitHubModel): + """ReposOwnerRepoCodespacesNewGetResponse200PropDefaults""" - name: str = Field(description="The name of the secret.") - created_at: datetime = Field() - updated_at: datetime = Field() + location: str = Field() + devcontainer_path: Union[str, None] = Field() -model_rebuild(ReposOwnerRepoCodespacesSecretsGetResponse200) -model_rebuild(RepoCodespacesSecret) +model_rebuild(ReposOwnerRepoCodespacesNewGetResponse200) +model_rebuild(ReposOwnerRepoCodespacesNewGetResponse200PropDefaults) __all__ = ( - "ReposOwnerRepoCodespacesSecretsGetResponse200", - "RepoCodespacesSecret", + "ReposOwnerRepoCodespacesNewGetResponse200", + "ReposOwnerRepoCodespacesNewGetResponse200PropDefaults", ) 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 f9c1b8267..e99811a75 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1016.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1016.py @@ -9,26 +9,36 @@ from __future__ import annotations +from typing import List +from datetime import datetime + from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCodespacesSecretsSecretNamePutBody(GitHubModel): - """ReposOwnerRepoCodespacesSecretsSecretNamePutBody""" +class ReposOwnerRepoCodespacesSecretsGetResponse200(GitHubModel): + """ReposOwnerRepoCodespacesSecretsGetResponse200""" + + total_count: int = Field() + secrets: List[RepoCodespacesSecret] = Field() + + +class RepoCodespacesSecret(GitHubModel): + """Codespaces Secret + + Set repository secrets for GitHub Codespaces. + """ - 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/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." - ) + name: str = Field(description="The name of the secret.") + created_at: datetime = Field() + updated_at: datetime = Field() -model_rebuild(ReposOwnerRepoCodespacesSecretsSecretNamePutBody) +model_rebuild(ReposOwnerRepoCodespacesSecretsGetResponse200) +model_rebuild(RepoCodespacesSecret) -__all__ = ("ReposOwnerRepoCodespacesSecretsSecretNamePutBody",) +__all__ = ( + "ReposOwnerRepoCodespacesSecretsGetResponse200", + "RepoCodespacesSecret", +) 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 e02fc904b..f9c1b8267 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1017.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1017.py @@ -16,15 +16,19 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCollaboratorsUsernamePutBody(GitHubModel): - """ReposOwnerRepoCollaboratorsUsernamePutBody""" +class ReposOwnerRepoCodespacesSecretsSecretNamePutBody(GitHubModel): + """ReposOwnerRepoCodespacesSecretsSecretNamePutBody""" - permission: Missing[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 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="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(ReposOwnerRepoCollaboratorsUsernamePutBody) +model_rebuild(ReposOwnerRepoCodespacesSecretsSecretNamePutBody) -__all__ = ("ReposOwnerRepoCollaboratorsUsernamePutBody",) +__all__ = ("ReposOwnerRepoCodespacesSecretsSecretNamePutBody",) 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 75effd211..e02fc904b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1018.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1018.py @@ -11,15 +11,20 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCommentsCommentIdPatchBody(GitHubModel): - """ReposOwnerRepoCommentsCommentIdPatchBody""" +class ReposOwnerRepoCollaboratorsUsernamePutBody(GitHubModel): + """ReposOwnerRepoCollaboratorsUsernamePutBody""" - body: str = Field(description="The contents of the comment") + 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(ReposOwnerRepoCommentsCommentIdPatchBody) +model_rebuild(ReposOwnerRepoCollaboratorsUsernamePutBody) -__all__ = ("ReposOwnerRepoCommentsCommentIdPatchBody",) +__all__ = ("ReposOwnerRepoCollaboratorsUsernamePutBody",) 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 a64b1dfaa..75effd211 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1019.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1019.py @@ -9,23 +9,17 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCommentsCommentIdReactionsPostBody(GitHubModel): - """ReposOwnerRepoCommentsCommentIdReactionsPostBody""" +class ReposOwnerRepoCommentsCommentIdPatchBody(GitHubModel): + """ReposOwnerRepoCommentsCommentIdPatchBody""" - 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." - ) + body: str = Field(description="The contents of the comment") -model_rebuild(ReposOwnerRepoCommentsCommentIdReactionsPostBody) +model_rebuild(ReposOwnerRepoCommentsCommentIdPatchBody) -__all__ = ("ReposOwnerRepoCommentsCommentIdReactionsPostBody",) +__all__ = ("ReposOwnerRepoCommentsCommentIdPatchBody",) 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 7a8745468..a64b1dfaa 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1020.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1020.py @@ -9,29 +9,23 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCommitsCommitShaCommentsPostBody(GitHubModel): - """ReposOwnerRepoCommitsCommitShaCommentsPostBody""" +class ReposOwnerRepoCommentsCommentIdReactionsPostBody(GitHubModel): + """ReposOwnerRepoCommentsCommentIdReactionsPostBody""" - 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="**Deprecated**. Use **position** parameter instead. Line number in the file to comment on.", + 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(ReposOwnerRepoCommitsCommitShaCommentsPostBody) +model_rebuild(ReposOwnerRepoCommentsCommentIdReactionsPostBody) -__all__ = ("ReposOwnerRepoCommitsCommitShaCommentsPostBody",) +__all__ = ("ReposOwnerRepoCommentsCommentIdReactionsPostBody",) 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 fb2ead147..7a8745468 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1021.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1021.py @@ -9,22 +9,29 @@ from __future__ import annotations -from typing import List - from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0217 import CheckRun - -class ReposOwnerRepoCommitsRefCheckRunsGetResponse200(GitHubModel): - """ReposOwnerRepoCommitsRefCheckRunsGetResponse200""" +class ReposOwnerRepoCommitsCommitShaCommentsPostBody(GitHubModel): + """ReposOwnerRepoCommitsCommitShaCommentsPostBody""" - total_count: int = Field() - check_runs: List[CheckRun] = Field() + 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="**Deprecated**. Use **position** parameter instead. Line number in the file to comment on.", + ) -model_rebuild(ReposOwnerRepoCommitsRefCheckRunsGetResponse200) +model_rebuild(ReposOwnerRepoCommitsCommitShaCommentsPostBody) -__all__ = ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200",) +__all__ = ("ReposOwnerRepoCommitsCommitShaCommentsPostBody",) 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 ed215f98b..fb2ead147 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1022.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1022.py @@ -9,73 +9,22 @@ from __future__ import annotations +from typing import List + from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0217 import CheckRun -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 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`. - """ +class ReposOwnerRepoCommitsRefCheckRunsGetResponse200(GitHubModel): + """ReposOwnerRepoCommitsRefCheckRunsGetResponse200""" - 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) + total_count: int = Field() + check_runs: List[CheckRun] = Field() -model_rebuild(ReposOwnerRepoContentsPathPutBody) -model_rebuild(ReposOwnerRepoContentsPathPutBodyPropCommitter) -model_rebuild(ReposOwnerRepoContentsPathPutBodyPropAuthor) +model_rebuild(ReposOwnerRepoCommitsRefCheckRunsGetResponse200) -__all__ = ( - "ReposOwnerRepoContentsPathPutBody", - "ReposOwnerRepoContentsPathPutBodyPropCommitter", - "ReposOwnerRepoContentsPathPutBodyPropAuthor", -) +__all__ = ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200",) 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 887992d4b..ed215f98b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1023.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1023.py @@ -16,59 +16,66 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoContentsPathDeleteBody(GitHubModel): - """ReposOwnerRepoContentsPathDeleteBody""" +class ReposOwnerRepoContentsPathPutBody(GitHubModel): + """ReposOwnerRepoContentsPathPutBody""" message: str = Field(description="The commit message.") - sha: str = Field(description="The blob SHA of the file being deleted.") + 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", + description="The branch name. Default: the repository’s default branch.", ) - committer: Missing[ReposOwnerRepoContentsPathDeleteBodyPropCommitter] = Field( - default=UNSET, description="object containing information about the committer." + committer: Missing[ReposOwnerRepoContentsPathPutBodyPropCommitter] = Field( + default=UNSET, + description="The person that committed the file. Default: the authenticated user.", ) - author: Missing[ReposOwnerRepoContentsPathDeleteBodyPropAuthor] = Field( - default=UNSET, description="object containing information about the author." + author: Missing[ReposOwnerRepoContentsPathPutBodyPropAuthor] = Field( + default=UNSET, + description="The author of the file. Default: The `committer` or the authenticated user if you omit `committer`.", ) -class ReposOwnerRepoContentsPathDeleteBodyPropCommitter(GitHubModel): - """ReposOwnerRepoContentsPathDeleteBodyPropCommitter +class ReposOwnerRepoContentsPathPutBodyPropCommitter(GitHubModel): + """ReposOwnerRepoContentsPathPutBodyPropCommitter - object containing information about the committer. + The person that committed the file. Default: the authenticated user. """ - name: Missing[str] = Field( - default=UNSET, description="The name of the author (or committer) of the commit" + 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: Missing[str] = Field( - default=UNSET, - description="The email of the author (or committer) of the commit", + 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 ReposOwnerRepoContentsPathDeleteBodyPropAuthor(GitHubModel): - """ReposOwnerRepoContentsPathDeleteBodyPropAuthor +class ReposOwnerRepoContentsPathPutBodyPropAuthor(GitHubModel): + """ReposOwnerRepoContentsPathPutBodyPropAuthor - object containing information about the author. + The author of the file. Default: The `committer` or the authenticated user if + you omit `committer`. """ - name: Missing[str] = Field( - default=UNSET, description="The name of the author (or committer) of the commit" + 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: Missing[str] = Field( - default=UNSET, - description="The email of the author (or committer) of the commit", + 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(ReposOwnerRepoContentsPathDeleteBody) -model_rebuild(ReposOwnerRepoContentsPathDeleteBodyPropCommitter) -model_rebuild(ReposOwnerRepoContentsPathDeleteBodyPropAuthor) +model_rebuild(ReposOwnerRepoContentsPathPutBody) +model_rebuild(ReposOwnerRepoContentsPathPutBodyPropCommitter) +model_rebuild(ReposOwnerRepoContentsPathPutBodyPropAuthor) __all__ = ( - "ReposOwnerRepoContentsPathDeleteBody", - "ReposOwnerRepoContentsPathDeleteBodyPropCommitter", - "ReposOwnerRepoContentsPathDeleteBodyPropAuthor", + "ReposOwnerRepoContentsPathPutBody", + "ReposOwnerRepoContentsPathPutBodyPropCommitter", + "ReposOwnerRepoContentsPathPutBodyPropAuthor", ) 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 d872bec34..887992d4b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1024.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1024.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.utils import UNSET @@ -18,27 +16,59 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoDependabotAlertsAlertNumberPatchBody(GitHubModel): - """ReposOwnerRepoDependabotAlertsAlertNumberPatchBody""" +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. + """ - state: Literal["dismissed", "open"] = Field( - description="The state of the Dependabot alert.\nA `dismissed_reason` must be provided when setting the state to `dismissed`." + name: Missing[str] = Field( + default=UNSET, description="The name of the author (or committer) of the commit" ) - dismissed_reason: Missing[ - Literal[ - "fix_started", "inaccurate", "no_bandwidth", "not_used", "tolerable_risk" - ] - ] = Field( + email: Missing[str] = Field( default=UNSET, - description="**Required when `state` is `dismissed`.** A reason for dismissing the alert.", + 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" ) - dismissed_comment: Missing[str] = Field( - max_length=280, + email: Missing[str] = Field( default=UNSET, - description="An optional comment associated with dismissing the alert.", + description="The email of the author (or committer) of the commit", ) -model_rebuild(ReposOwnerRepoDependabotAlertsAlertNumberPatchBody) +model_rebuild(ReposOwnerRepoContentsPathDeleteBody) +model_rebuild(ReposOwnerRepoContentsPathDeleteBodyPropCommitter) +model_rebuild(ReposOwnerRepoContentsPathDeleteBodyPropAuthor) -__all__ = ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBody",) +__all__ = ( + "ReposOwnerRepoContentsPathDeleteBody", + "ReposOwnerRepoContentsPathDeleteBodyPropCommitter", + "ReposOwnerRepoContentsPathDeleteBodyPropAuthor", +) 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 6b696bdc7..d872bec34 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1025.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1025.py @@ -9,36 +9,36 @@ from __future__ import annotations -from typing import List -from datetime import datetime +from typing import Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoDependabotSecretsGetResponse200(GitHubModel): - """ReposOwnerRepoDependabotSecretsGetResponse200""" +class ReposOwnerRepoDependabotAlertsAlertNumberPatchBody(GitHubModel): + """ReposOwnerRepoDependabotAlertsAlertNumberPatchBody""" - total_count: int = Field() - secrets: List[DependabotSecret] = Field() + 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.", + ) -class DependabotSecret(GitHubModel): - """Dependabot Secret +model_rebuild(ReposOwnerRepoDependabotAlertsAlertNumberPatchBody) - 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__ = ( - "ReposOwnerRepoDependabotSecretsGetResponse200", - "DependabotSecret", -) +__all__ = ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBody",) 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 e84feaee0..6b696bdc7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1026.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1026.py @@ -9,26 +9,36 @@ from __future__ import annotations +from typing import List +from datetime import datetime + from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoDependabotSecretsSecretNamePutBody(GitHubModel): - """ReposOwnerRepoDependabotSecretsSecretNamePutBody""" +class ReposOwnerRepoDependabotSecretsGetResponse200(GitHubModel): + """ReposOwnerRepoDependabotSecretsGetResponse200""" + + total_count: int = Field() + secrets: List[DependabotSecret] = Field() + + +class DependabotSecret(GitHubModel): + """Dependabot Secret + + Set secrets for Dependabot. + """ - 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.", - ) - key_id: Missing[str] = Field( - default=UNSET, description="ID of the key you used to encrypt the secret." - ) + name: str = Field(description="The name of the secret.") + created_at: datetime = Field() + updated_at: datetime = Field() -model_rebuild(ReposOwnerRepoDependabotSecretsSecretNamePutBody) +model_rebuild(ReposOwnerRepoDependabotSecretsGetResponse200) +model_rebuild(DependabotSecret) -__all__ = ("ReposOwnerRepoDependabotSecretsSecretNamePutBody",) +__all__ = ( + "ReposOwnerRepoDependabotSecretsGetResponse200", + "DependabotSecret", +) 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 d8abaeb32..e84feaee0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1027.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1027.py @@ -11,22 +11,24 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoDependencyGraphSnapshotsPostResponse201(GitHubModel): - """ReposOwnerRepoDependencyGraphSnapshotsPostResponse201""" +class ReposOwnerRepoDependabotSecretsSecretNamePutBody(GitHubModel): + """ReposOwnerRepoDependabotSecretsSecretNamePutBody""" - 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.' + 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.", ) - message: str = Field( - description="A message providing further details about the result, such as why the dependencies were not updated." + key_id: Missing[str] = Field( + default=UNSET, description="ID of the key you used to encrypt the secret." ) -model_rebuild(ReposOwnerRepoDependencyGraphSnapshotsPostResponse201) +model_rebuild(ReposOwnerRepoDependabotSecretsSecretNamePutBody) -__all__ = ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201",) +__all__ = ("ReposOwnerRepoDependabotSecretsSecretNamePutBody",) 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 e794f6b41..d8abaeb32 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1028.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1028.py @@ -9,61 +9,24 @@ from __future__ import annotations -from typing import List, Union - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoDeploymentsPostBody(GitHubModel): - """ReposOwnerRepoDeploymentsPostBody""" +class ReposOwnerRepoDependencyGraphSnapshotsPostResponse201(GitHubModel): + """ReposOwnerRepoDependencyGraphSnapshotsPostResponse201""" - 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) + 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.' ) - environment: Missing[str] = Field( - default=UNSET, - description="Name for the target deployment environment (e.g., `production`, `staging`, `qa`).", + message: str = Field( + description="A message providing further details about the result, such as why the dependencies were not updated." ) - 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(ReposOwnerRepoDependencyGraphSnapshotsPostResponse201) -__all__ = ( - "ReposOwnerRepoDeploymentsPostBody", - "ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0", -) +__all__ = ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201",) 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 8fe47fba1..e794f6b41 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1029.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1029.py @@ -9,19 +9,61 @@ from __future__ import annotations +from typing import List, Union + from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild + + +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 ReposOwnerRepoDeploymentsPostResponse202(GitHubModel): - """ReposOwnerRepoDeploymentsPostResponse202""" - message: Missing[str] = Field(default=UNSET) +class ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0(ExtraGitHubModel): + """ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0""" -model_rebuild(ReposOwnerRepoDeploymentsPostResponse202) +model_rebuild(ReposOwnerRepoDeploymentsPostBody) +model_rebuild(ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0) -__all__ = ("ReposOwnerRepoDeploymentsPostResponse202",) +__all__ = ( + "ReposOwnerRepoDeploymentsPostBody", + "ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0", +) 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 b51ea5c18..8fe47fba1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1030.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1030.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.utils import UNSET @@ -18,40 +16,12 @@ from githubkit.compat import GitHubModel, model_rebuild -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. **Note:** 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",) +class ReposOwnerRepoDeploymentsPostResponse202(GitHubModel): + """ReposOwnerRepoDeploymentsPostResponse202""" + + message: Missing[str] = Field(default=UNSET) + + +model_rebuild(ReposOwnerRepoDeploymentsPostResponse202) + +__all__ = ("ReposOwnerRepoDeploymentsPostResponse202",) 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 019ffdc28..b51ea5c18 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1031.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1031.py @@ -9,39 +9,49 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoDispatchesPostBody(GitHubModel): - """ReposOwnerRepoDispatchesPostBody""" +class ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody(GitHubModel): + """ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody""" - event_type: str = Field( - min_length=1, - max_length=100, - description="A custom webhook event name. Must be 100 characters or fewer.", + 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." ) - client_payload: Missing[ReposOwnerRepoDispatchesPostBodyPropClientPayload] = Field( + target_url: 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.", + 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. **Note:** 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`", ) -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. - """ - - -model_rebuild(ReposOwnerRepoDispatchesPostBody) -model_rebuild(ReposOwnerRepoDispatchesPostBodyPropClientPayload) +model_rebuild(ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody) -__all__ = ( - "ReposOwnerRepoDispatchesPostBody", - "ReposOwnerRepoDispatchesPostBodyPropClientPayload", -) +__all__ = ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody",) 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 98d0d8e31..019ffdc28 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1032.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1032.py @@ -9,61 +9,39 @@ from __future__ import annotations -from typing import List, Union, Literal - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - -from .group_0268 import DeploymentBranchPolicySettings +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild -class ReposOwnerRepoEnvironmentsEnvironmentNamePutBody(GitHubModel): - """ReposOwnerRepoEnvironmentsEnvironmentNamePutBody""" +class ReposOwnerRepoDispatchesPostBody(GitHubModel): + """ReposOwnerRepoDispatchesPostBody""" - 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.", + event_type: str = Field( + min_length=1, + max_length=100, + description="A custom webhook event name. Must be 100 characters or fewer.", ) - reviewers: Missing[ - Union[ - List[ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems], - None, - ] - ] = Field( + client_payload: Missing[ReposOwnerRepoDispatchesPostBodyPropClientPayload] = 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`.", - ) + 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.", ) -class ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems(GitHubModel): - """ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems""" +class ReposOwnerRepoDispatchesPostBodyPropClientPayload(ExtraGitHubModel): + """ReposOwnerRepoDispatchesPostBodyPropClientPayload - type: Missing[Literal["User", "Team"]] = Field( - default=UNSET, description="The type of reviewer." - ) - id: Missing[int] = Field( - default=UNSET, - description="The id of the user or team who can review the deployment", - ) + 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. + """ -model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNamePutBody) -model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems) +model_rebuild(ReposOwnerRepoDispatchesPostBody) +model_rebuild(ReposOwnerRepoDispatchesPostBodyPropClientPayload) __all__ = ( - "ReposOwnerRepoEnvironmentsEnvironmentNamePutBody", - "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems", + "ReposOwnerRepoDispatchesPostBody", + "ReposOwnerRepoDispatchesPostBodyPropClientPayload", ) 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 164fcd76f..98d0d8e31 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1033.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1033.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Literal +from typing import List, Union, Literal from pydantic import Field @@ -17,43 +17,53 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0268 import DeploymentBranchPolicySettings -class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200( - GitHubModel -): - """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200""" - total_count: int = Field( - description="The number of deployment branch policies for the environment." - ) - branch_policies: List[DeploymentBranchPolicy] = Field() +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).", + ) + 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 DeploymentBranchPolicy(GitHubModel): - """Deployment branch policy - Details of a deployment branch or tag policy. - """ +class ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems(GitHubModel): + """ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems""" - id: Missing[int] = Field( - default=UNSET, description="The unique identifier of the branch or tag policy." + type: Missing[Literal["User", "Team"]] = Field( + default=UNSET, description="The type of reviewer." ) - node_id: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field( + id: Missing[int] = 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." + description="The id of the user or team who can review the deployment", ) -model_rebuild( - ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200 -) -model_rebuild(DeploymentBranchPolicy) +model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNamePutBody) +model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems) __all__ = ( - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200", - "DeploymentBranchPolicy", + "ReposOwnerRepoEnvironmentsEnvironmentNamePutBody", + "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems", ) 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 b159fbf0c..164fcd76f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1034.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1034.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import List, Literal + from pydantic import Field from githubkit.utils import UNSET @@ -16,21 +18,42 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody( +class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200( GitHubModel ): - """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody""" + """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200""" + + total_count: int = Field( + description="The number of deployment branch policies for the environment." + ) + branch_policies: List[DeploymentBranchPolicy] = Field() + - integration_id: Missing[int] = 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( default=UNSET, - description="The ID of the custom app that will be enabled on the environment.", + 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( - ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody + ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200 ) +model_rebuild(DeploymentBranchPolicy) __all__ = ( - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody", + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200", + "DeploymentBranchPolicy", ) 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 6c79832b1..b159fbf0c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1035.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1035.py @@ -9,37 +9,28 @@ from __future__ import annotations -from typing import List - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0274 import CustomDeploymentRuleApp - -class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200( +class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody( GitHubModel ): - """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetRespons - e200 - """ + """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody""" - total_count: Missing[int] = Field( + integration_id: Missing[int] = Field( default=UNSET, - description="The total number of custom deployment protection rule integrations available for this environment.", + description="The ID of the custom app that will be enabled on the environment.", ) - available_custom_deployment_protection_rule_integrations: Missing[ - List[CustomDeploymentRuleApp] - ] = Field(default=UNSET) model_rebuild( - ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200 + ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody ) __all__ = ( - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200", + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody", ) 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 9f65ffdfd..6c79832b1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1036.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1036.py @@ -13,18 +13,33 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0185 import ActionsSecret +from .group_0274 import CustomDeploymentRuleApp -class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200(GitHubModel): - """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200""" +class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200( + GitHubModel +): + """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetRespons + e200 + """ - total_count: int = Field() - secrets: List[ActionsSecret] = Field() + total_count: Missing[int] = Field( + default=UNSET, + 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(ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200) +model_rebuild( + ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200 +) -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200",) +__all__ = ( + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200", +) 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 60d9411b7..9f65ffdfd 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1037.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1037.py @@ -9,21 +9,22 @@ from __future__ import annotations +from typing import List + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from .group_0185 import ActionsSecret + -class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody(GitHubModel): - """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody""" +class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200(GitHubModel): + """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200""" - 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.") + total_count: int = Field() + secrets: List[ActionsSecret] = Field() -model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody) +model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200) -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody",) +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200",) 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 b1d22d4c3..60d9411b7 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,21 @@ from __future__ import annotations -from typing import List - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0186 import ActionsVariable - -class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200(GitHubModel): - """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200""" +class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody(GitHubModel): + """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody""" - total_count: int = Field() - variables: List[ActionsVariable] = 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 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(ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200) +model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody) -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200",) +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody",) 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 376060834..b1d22d4c3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1039.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1039.py @@ -9,18 +9,22 @@ from __future__ import annotations +from typing import List + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from .group_0186 import ActionsVariable + -class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody(GitHubModel): - """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody""" +class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200(GitHubModel): + """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200""" - name: str = Field(description="The name of the variable.") - value: str = Field(description="The value of the variable.") + total_count: int = Field() + variables: List[ActionsVariable] = Field() -model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody) +model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200) -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody",) +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200",) 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 4bf82006d..376060834 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1040.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1040.py @@ -11,18 +11,16 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody(GitHubModel): - """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody""" +class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody(GitHubModel): + """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody""" - name: Missing[str] = Field(default=UNSET, description="The name of the variable.") - value: Missing[str] = Field(default=UNSET, description="The value of the variable.") + name: str = Field(description="The name of the variable.") + value: str = Field(description="The value of the variable.") -model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody) +model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody) -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody",) +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody",) 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 0fe1a32f9..4bf82006d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1041.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1041.py @@ -16,23 +16,13 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoForksPostBody(GitHubModel): - """ReposOwnerRepoForksPostBody""" - - 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.", - ) - default_branch_only: Missing[bool] = Field( - default=UNSET, - description="When forking from an existing repository, fork with only the default branch.", - ) - - -model_rebuild(ReposOwnerRepoForksPostBody) - -__all__ = ("ReposOwnerRepoForksPostBody",) +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/ghec_v2022_11_28/models/group_1042.py b/githubkit/versions/ghec_v2022_11_28/models/group_1042.py index 5ef2b62bc..0fe1a32f9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1042.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1042.py @@ -16,16 +16,23 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoGitBlobsPostBody(GitHubModel): - """ReposOwnerRepoGitBlobsPostBody""" +class ReposOwnerRepoForksPostBody(GitHubModel): + """ReposOwnerRepoForksPostBody""" - content: str = Field(description="The new blob's content.") - encoding: Missing[str] = Field( + organization: Missing[str] = Field( default=UNSET, - description='The encoding used for `content`. Currently, `"utf-8"` and `"base64"` are supported.', + 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.", + ) + default_branch_only: Missing[bool] = Field( + default=UNSET, + description="When forking from an existing repository, fork with only the default branch.", ) -model_rebuild(ReposOwnerRepoGitBlobsPostBody) +model_rebuild(ReposOwnerRepoForksPostBody) -__all__ = ("ReposOwnerRepoGitBlobsPostBody",) +__all__ = ("ReposOwnerRepoForksPostBody",) 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 56b388fb9..5ef2b62bc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1043.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1043.py @@ -9,9 +9,6 @@ from __future__ import annotations -from typing import List -from datetime import datetime - from pydantic import Field from githubkit.utils import UNSET @@ -19,74 +16,16 @@ from githubkit.compat import GitHubModel, model_rebuild -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 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 ReposOwnerRepoGitBlobsPostBody(GitHubModel): + """ReposOwnerRepoGitBlobsPostBody""" - 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( + content: str = Field(description="The new blob's content.") + encoding: Missing[str] = 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 encoding used for `content`. Currently, `"utf-8"` and `"base64"` are supported.', ) -model_rebuild(ReposOwnerRepoGitCommitsPostBody) -model_rebuild(ReposOwnerRepoGitCommitsPostBodyPropAuthor) -model_rebuild(ReposOwnerRepoGitCommitsPostBodyPropCommitter) +model_rebuild(ReposOwnerRepoGitBlobsPostBody) -__all__ = ( - "ReposOwnerRepoGitCommitsPostBody", - "ReposOwnerRepoGitCommitsPostBodyPropAuthor", - "ReposOwnerRepoGitCommitsPostBodyPropCommitter", -) +__all__ = ("ReposOwnerRepoGitBlobsPostBody",) 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 e02988ad3..56b388fb9 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,84 @@ from __future__ import annotations +from typing import List +from datetime import datetime + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoGitRefsPostBody(GitHubModel): - """ReposOwnerRepoGitRefsPostBody""" +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 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. + """ - 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." + 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`.", ) - sha: str = Field(description="The SHA1 value for this reference.") -model_rebuild(ReposOwnerRepoGitRefsPostBody) +model_rebuild(ReposOwnerRepoGitCommitsPostBody) +model_rebuild(ReposOwnerRepoGitCommitsPostBodyPropAuthor) +model_rebuild(ReposOwnerRepoGitCommitsPostBodyPropCommitter) -__all__ = ("ReposOwnerRepoGitRefsPostBody",) +__all__ = ( + "ReposOwnerRepoGitCommitsPostBody", + "ReposOwnerRepoGitCommitsPostBodyPropAuthor", + "ReposOwnerRepoGitCommitsPostBodyPropCommitter", +) 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 457380b7b..e02988ad3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1045.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1045.py @@ -11,21 +11,18 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoGitRefsRefPatchBody(GitHubModel): - """ReposOwnerRepoGitRefsRefPatchBody""" +class ReposOwnerRepoGitRefsPostBody(GitHubModel): + """ReposOwnerRepoGitRefsPostBody""" - 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.", + 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(ReposOwnerRepoGitRefsRefPatchBody) +model_rebuild(ReposOwnerRepoGitRefsPostBody) -__all__ = ("ReposOwnerRepoGitRefsRefPatchBody",) +__all__ = ("ReposOwnerRepoGitRefsPostBody",) 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 74d3527c4..457380b7b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1046.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1046.py @@ -9,9 +9,6 @@ from __future__ import annotations -from typing import Literal -from datetime import datetime - from pydantic import Field from githubkit.utils import UNSET @@ -19,43 +16,16 @@ from githubkit.compat import GitHubModel, model_rebuild -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 ReposOwnerRepoGitRefsRefPatchBody(GitHubModel): + """ReposOwnerRepoGitRefsRefPatchBody""" - 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( + sha: str = Field(description="The SHA1 value to set this reference to") + force: Missing[bool] = 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`.", + 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(ReposOwnerRepoGitTagsPostBody) -model_rebuild(ReposOwnerRepoGitTagsPostBodyPropTagger) +model_rebuild(ReposOwnerRepoGitRefsRefPatchBody) -__all__ = ( - "ReposOwnerRepoGitTagsPostBody", - "ReposOwnerRepoGitTagsPostBodyPropTagger", -) +__all__ = ("ReposOwnerRepoGitRefsRefPatchBody",) 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 43ce478ab..74d3527c4 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,8 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal +from datetime import datetime from pydantic import Field @@ -18,45 +19,43 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoGitTreesPostBody(GitHubModel): - """ReposOwnerRepoGitTreesPostBody""" +class ReposOwnerRepoGitTagsPostBody(GitHubModel): + """ReposOwnerRepoGitTagsPostBody""" - tree: List[ReposOwnerRepoGitTreesPostBodyPropTreeItems] = Field( - description="Objects (of `path`, `mode`, `type`, and `sha`) specifying a tree structure." + tag: str = Field( + description='The tag\'s name. This is typically a version (e.g., "v0.0.1").' ) - base_tree: Missing[str] = Field( + 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="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.\n", + description="An object with information about the individual creating the tag.", ) -class ReposOwnerRepoGitTreesPostBodyPropTreeItems(GitHubModel): - """ReposOwnerRepoGitTreesPostBodyPropTreeItems""" +class ReposOwnerRepoGitTagsPostBodyPropTagger(GitHubModel): + """ReposOwnerRepoGitTagsPostBodyPropTagger - 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( + 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="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.", + 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(ReposOwnerRepoGitTreesPostBody) -model_rebuild(ReposOwnerRepoGitTreesPostBodyPropTreeItems) +model_rebuild(ReposOwnerRepoGitTagsPostBody) +model_rebuild(ReposOwnerRepoGitTagsPostBodyPropTagger) __all__ = ( - "ReposOwnerRepoGitTreesPostBody", - "ReposOwnerRepoGitTreesPostBodyPropTreeItems", + "ReposOwnerRepoGitTagsPostBody", + "ReposOwnerRepoGitTagsPostBodyPropTagger", ) 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 2891623cb..43ce478ab 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1048.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1048.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Union +from typing import List, Union, Literal from pydantic import Field @@ -18,51 +18,45 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoHooksPostBody(GitHubModel): - """ReposOwnerRepoHooksPostBody""" +class ReposOwnerRepoGitTreesPostBody(GitHubModel): + """ReposOwnerRepoGitTreesPostBody""" - 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.", + tree: List[ReposOwnerRepoGitTreesPostBodyPropTreeItems] = Field( + description="Objects (of `path`, `mode`, `type`, and `sha`) specifying a tree structure." ) - active: Missing[bool] = Field( + base_tree: Missing[str] = Field( default=UNSET, - description="Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.", + 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.\n", ) -class ReposOwnerRepoHooksPostBodyPropConfig(GitHubModel): - """ReposOwnerRepoHooksPostBodyPropConfig +class ReposOwnerRepoGitTreesPostBodyPropTreeItems(GitHubModel): + """ReposOwnerRepoGitTreesPostBodyPropTreeItems""" - 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." + 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`." ) - content_type: Missing[str] = Field( + sha: Missing[Union[str, None]] = Field( default=UNSET, - description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", + 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.", ) - secret: Missing[str] = Field( + content: 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).", + 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.", ) - insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoHooksPostBody) -model_rebuild(ReposOwnerRepoHooksPostBodyPropConfig) +model_rebuild(ReposOwnerRepoGitTreesPostBody) +model_rebuild(ReposOwnerRepoGitTreesPostBodyPropTreeItems) __all__ = ( - "ReposOwnerRepoHooksPostBody", - "ReposOwnerRepoHooksPostBodyPropConfig", + "ReposOwnerRepoGitTreesPostBody", + "ReposOwnerRepoGitTreesPostBodyPropTreeItems", ) 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 78efdb398..2891623cb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1049.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1049.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List +from typing import List, Union from pydantic import Field @@ -17,35 +17,52 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0007 import WebhookConfig +class ReposOwnerRepoHooksPostBody(GitHubModel): + """ReposOwnerRepoHooksPostBody""" -class ReposOwnerRepoHooksHookIdPatchBody(GitHubModel): - """ReposOwnerRepoHooksHookIdPatchBody""" - - config: Missing[WebhookConfig] = Field( + 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, - title="Webhook Configuration", - description="Configuration object of the webhook", + 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. This replaces the entire array of events.", + description="Determines what [events](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads) the hook is triggered for.", ) - add_events: Missing[List[str]] = Field( + active: Missing[bool] = Field( default=UNSET, - description="Determines a list of events to be added to the list of events that the Hook triggers for.", + 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. + """ + + url: Missing[str] = Field( + default=UNSET, description="The URL to which the payloads will be delivered." ) - remove_events: Missing[List[str]] = Field( + content_type: Missing[str] = Field( default=UNSET, - description="Determines a list of events to be removed from the list of events that the Hook triggers for.", + description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", ) - active: Missing[bool] = Field( + secret: Missing[str] = Field( default=UNSET, - description="Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.", + 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(ReposOwnerRepoHooksHookIdPatchBody) +model_rebuild(ReposOwnerRepoHooksPostBody) +model_rebuild(ReposOwnerRepoHooksPostBodyPropConfig) -__all__ = ("ReposOwnerRepoHooksHookIdPatchBody",) +__all__ = ( + "ReposOwnerRepoHooksPostBody", + "ReposOwnerRepoHooksPostBodyPropConfig", +) 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 20e79ec0d..78efdb398 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1050.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1050.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import List from pydantic import Field @@ -17,24 +17,35 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0007 import WebhookConfig -class ReposOwnerRepoHooksHookIdConfigPatchBody(GitHubModel): - """ReposOwnerRepoHooksHookIdConfigPatchBody""" - url: Missing[str] = Field( - default=UNSET, description="The URL to which the payloads will be delivered." +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.", ) - content_type: Missing[str] = Field( + remove_events: Missing[List[str]] = Field( default=UNSET, - description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", + description="Determines a list of events to be removed from the list of events that the Hook triggers for.", ) - secret: Missing[str] = Field( + active: 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/enterprise-cloud@latest//webhooks/event-payloads/#delivery-headers).", + description="Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.", ) - insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoHooksHookIdConfigPatchBody) +model_rebuild(ReposOwnerRepoHooksHookIdPatchBody) -__all__ = ("ReposOwnerRepoHooksHookIdConfigPatchBody",) +__all__ = ("ReposOwnerRepoHooksHookIdPatchBody",) 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 9ec5ec399..20e79ec0d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1051.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1051.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field @@ -18,28 +18,23 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoImportPutBody(GitHubModel): - """ReposOwnerRepoImportPutBody""" +class ReposOwnerRepoHooksHookIdConfigPatchBody(GitHubModel): + """ReposOwnerRepoHooksHookIdConfigPatchBody""" - 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`.", + url: Missing[str] = Field( + default=UNSET, description="The URL to which the payloads will be delivered." ) - vcs_password: Missing[str] = Field( + content_type: Missing[str] = Field( default=UNSET, - description="If authentication is required, the password to provide to `vcs_url`.", + description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", ) - tfvc_project: Missing[str] = Field( + secret: Missing[str] = Field( default=UNSET, - description="For a tfvc import, the name of the project that is being imported.", + 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(ReposOwnerRepoImportPutBody) +model_rebuild(ReposOwnerRepoHooksHookIdConfigPatchBody) -__all__ = ("ReposOwnerRepoImportPutBody",) +__all__ = ("ReposOwnerRepoHooksHookIdConfigPatchBody",) 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 c2aa14687..9ec5ec399 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1052.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1052.py @@ -18,20 +18,21 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoImportPatchBody(GitHubModel): - """ReposOwnerRepoImportPatchBody""" +class ReposOwnerRepoImportPutBody(GitHubModel): + """ReposOwnerRepoImportPutBody""" - vcs_username: Missing[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 username to provide to the originating repository.", + 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_password: Missing[str] = Field( + vcs_username: Missing[str] = Field( default=UNSET, - description="The password to provide to the originating repository.", + description="If authentication is required, the username to provide to `vcs_url`.", ) - vcs: Missing[Literal["subversion", "tfvc", "git", "mercurial"]] = Field( + vcs_password: Missing[str] = Field( default=UNSET, - description="The type of version control system you are migrating from.", + description="If authentication is required, the password to provide to `vcs_url`.", ) tfvc_project: Missing[str] = Field( default=UNSET, @@ -39,6 +40,6 @@ class ReposOwnerRepoImportPatchBody(GitHubModel): ) -model_rebuild(ReposOwnerRepoImportPatchBody) +model_rebuild(ReposOwnerRepoImportPutBody) -__all__ = ("ReposOwnerRepoImportPatchBody",) +__all__ = ("ReposOwnerRepoImportPutBody",) 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 c5a5b2258..c2aa14687 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1053.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1053.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.utils import UNSET @@ -16,13 +18,27 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoImportAuthorsAuthorIdPatchBody(GitHubModel): - """ReposOwnerRepoImportAuthorsAuthorIdPatchBody""" +class ReposOwnerRepoImportPatchBody(GitHubModel): + """ReposOwnerRepoImportPatchBody""" - email: Missing[str] = Field(default=UNSET, description="The new Git author email.") - name: Missing[str] = Field(default=UNSET, description="The new Git author name.") + 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="For a tfvc import, the name of the project that is being imported.", + ) -model_rebuild(ReposOwnerRepoImportAuthorsAuthorIdPatchBody) +model_rebuild(ReposOwnerRepoImportPatchBody) -__all__ = ("ReposOwnerRepoImportAuthorsAuthorIdPatchBody",) +__all__ = ("ReposOwnerRepoImportPatchBody",) 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 7727d20f6..c5a5b2258 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1054.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1054.py @@ -9,21 +9,20 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoImportLfsPatchBody(GitHubModel): - """ReposOwnerRepoImportLfsPatchBody""" +class ReposOwnerRepoImportAuthorsAuthorIdPatchBody(GitHubModel): + """ReposOwnerRepoImportAuthorsAuthorIdPatchBody""" - 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." - ) + 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(ReposOwnerRepoImportLfsPatchBody) +model_rebuild(ReposOwnerRepoImportAuthorsAuthorIdPatchBody) -__all__ = ("ReposOwnerRepoImportLfsPatchBody",) +__all__ = ("ReposOwnerRepoImportAuthorsAuthorIdPatchBody",) 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 759975570..7727d20f6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1055.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1055.py @@ -9,13 +9,21 @@ from __future__ import annotations +from typing import Literal + +from pydantic import Field + from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoInteractionLimitsGetResponse200Anyof1(GitHubModel): - """ReposOwnerRepoInteractionLimitsGetResponse200Anyof1""" +class ReposOwnerRepoImportLfsPatchBody(GitHubModel): + """ReposOwnerRepoImportLfsPatchBody""" + + 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(ReposOwnerRepoInteractionLimitsGetResponse200Anyof1) +model_rebuild(ReposOwnerRepoImportLfsPatchBody) -__all__ = ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1",) +__all__ = ("ReposOwnerRepoImportLfsPatchBody",) 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 d06271828..759975570 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1056.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1056.py @@ -9,26 +9,13 @@ from __future__ import annotations -from typing import Literal - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoInvitationsInvitationIdPatchBody(GitHubModel): - """ReposOwnerRepoInvitationsInvitationIdPatchBody""" - - 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`.", - ) - ) +class ReposOwnerRepoInteractionLimitsGetResponse200Anyof1(GitHubModel): + """ReposOwnerRepoInteractionLimitsGetResponse200Anyof1""" -model_rebuild(ReposOwnerRepoInvitationsInvitationIdPatchBody) +model_rebuild(ReposOwnerRepoInteractionLimitsGetResponse200Anyof1) -__all__ = ("ReposOwnerRepoInvitationsInvitationIdPatchBody",) +__all__ = ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1",) 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 e40165dc9..d06271828 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1057.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1057.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Union +from typing import Literal from pydantic import Field @@ -18,41 +18,17 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoIssuesPostBody(GitHubModel): - """ReposOwnerRepoIssuesPostBody""" +class ReposOwnerRepoInvitationsInvitationIdPatchBody(GitHubModel): + """ReposOwnerRepoInvitationsInvitationIdPatchBody""" - 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 deprecated.**_", + 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`.", + ) ) - 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._", - ) - - -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(ReposOwnerRepoInvitationsInvitationIdPatchBody) -__all__ = ( - "ReposOwnerRepoIssuesPostBody", - "ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1", -) +__all__ = ("ReposOwnerRepoInvitationsInvitationIdPatchBody",) 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 2e91230e7..e40165dc9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1058.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1058.py @@ -9,17 +9,50 @@ from __future__ import annotations +from typing import List, Union + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing 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",) +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 deprecated.**_", + ) + 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._", + ) + + +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/ghec_v2022_11_28/models/group_1059.py b/githubkit/versions/ghec_v2022_11_28/models/group_1059.py index e13da8a38..2e91230e7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1059.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1059.py @@ -9,23 +9,17 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody(GitHubModel): - """ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody""" +class ReposOwnerRepoIssuesCommentsCommentIdPatchBody(GitHubModel): + """ReposOwnerRepoIssuesCommentsCommentIdPatchBody""" - 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." - ) + body: str = Field(description="The contents of the comment.") -model_rebuild(ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody) +model_rebuild(ReposOwnerRepoIssuesCommentsCommentIdPatchBody) -__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody",) +__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdPatchBody",) 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 f4cf48489..e13da8a38 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1060.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1060.py @@ -9,63 +9,23 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoIssuesIssueNumberPatchBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberPatchBody""" +class ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody(GitHubModel): + """ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody""" - 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 deprecated.**", - ) - 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]] + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" ] = 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.", + description="The [reaction type](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#about-reactions) to add to the issue comment." ) -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(ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody) -__all__ = ( - "ReposOwnerRepoIssuesIssueNumberPatchBody", - "ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1", -) +__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody",) 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 e809e4006..f4cf48489 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1061.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1061.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List +from typing import List, Union, Literal from pydantic import Field @@ -18,15 +18,54 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoIssuesIssueNumberAssigneesPostBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberAssigneesPostBody""" +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 deprecated.**", + ) + 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 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="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.", ) -model_rebuild(ReposOwnerRepoIssuesIssueNumberAssigneesPostBody) +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) -__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBody",) +__all__ = ( + "ReposOwnerRepoIssuesIssueNumberPatchBody", + "ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1", +) 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 5d857cf8c..e809e4006 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1062.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1062.py @@ -18,15 +18,15 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody""" +class ReposOwnerRepoIssuesIssueNumberAssigneesPostBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberAssigneesPostBody""" 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._", + 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(ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody) +model_rebuild(ReposOwnerRepoIssuesIssueNumberAssigneesPostBody) -__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBody",) 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 49a6d6da0..5d857cf8c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1063.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1063.py @@ -9,17 +9,24 @@ from __future__ import annotations +from typing import List + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoIssuesIssueNumberCommentsPostBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberCommentsPostBody""" +class ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody""" - body: str = Field(description="The contents of the comment.") + 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(ReposOwnerRepoIssuesIssueNumberCommentsPostBody) +model_rebuild(ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody) -__all__ = ("ReposOwnerRepoIssuesIssueNumberCommentsPostBody",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody",) 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 8d5917f2e..49a6d6da0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1064.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1064.py @@ -9,25 +9,17 @@ from __future__ import annotations -from typing import List - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0""" +class ReposOwnerRepoIssuesIssueNumberCommentsPostBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberCommentsPostBody""" - labels: Missing[List[str]] = Field( - min_length=1, - 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)."', - ) + body: str = Field(description="The contents of the comment.") -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0) +model_rebuild(ReposOwnerRepoIssuesIssueNumberCommentsPostBody) -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberCommentsPostBody",) 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 0ed7e108e..8d5917f2e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1065.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1065.py @@ -18,24 +18,16 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2""" +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0""" - labels: Missing[ - List[ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems] - ] = Field(min_length=1, default=UNSET) + labels: Missing[List[str]] = Field( + min_length=1, + 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)."', + ) -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems""" +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0) - name: str = Field() - - -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2) -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems) - -__all__ = ( - "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2", - "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems", -) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0",) 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 d59513ace..0ed7e108e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1066.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1066.py @@ -9,17 +9,33 @@ from __future__ import annotations +from typing import List + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items""" +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2""" + + labels: Missing[ + List[ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems] + ] = Field(min_length=1, default=UNSET) + + +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems""" name: str = Field() -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems) -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items",) +__all__ = ( + "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2", + "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems", +) 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 4e8d7c310..d59513ace 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1067.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1067.py @@ -9,25 +9,17 @@ from __future__ import annotations -from typing import List - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0""" +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items""" - labels: Missing[List[str]] = Field( - min_length=1, - 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)."', - ) + name: str = Field() -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items) -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items",) 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 0d0e29232..4e8d7c310 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1068.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1068.py @@ -18,24 +18,16 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2""" +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0""" - labels: Missing[ - List[ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems] - ] = Field(min_length=1, default=UNSET) + labels: Missing[List[str]] = Field( + min_length=1, + 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)."', + ) -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems""" +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0) - name: str = Field() - - -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2) -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems) - -__all__ = ( - "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2", - "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems", -) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0",) 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 dfb903bb9..0d0e29232 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1069.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1069.py @@ -9,17 +9,33 @@ from __future__ import annotations +from typing import List + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items""" +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2""" + + labels: Missing[ + List[ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems] + ] = Field(min_length=1, default=UNSET) + + +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems""" name: str = Field() -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems) -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items",) +__all__ = ( + "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2", + "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems", +) 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 5769fdef9..dfb903bb9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1070.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1070.py @@ -9,26 +9,17 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoIssuesIssueNumberLockPutBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLockPutBody""" +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items""" - 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`", - ) - ) + name: str = Field() -model_rebuild(ReposOwnerRepoIssuesIssueNumberLockPutBody) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items) -__all__ = ("ReposOwnerRepoIssuesIssueNumberLockPutBody",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items",) 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 42295dd52..5769fdef9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1071.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1071.py @@ -13,19 +13,22 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoIssuesIssueNumberReactionsPostBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberReactionsPostBody""" +class ReposOwnerRepoIssuesIssueNumberLockPutBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLockPutBody""" - 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." + 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(ReposOwnerRepoIssuesIssueNumberReactionsPostBody) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLockPutBody) -__all__ = ("ReposOwnerRepoIssuesIssueNumberReactionsPostBody",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLockPutBody",) 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 ed84db7b4..42295dd52 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1072.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1072.py @@ -9,24 +9,23 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoKeysPostBody(GitHubModel): - """ReposOwnerRepoKeysPostBody""" +class ReposOwnerRepoIssuesIssueNumberReactionsPostBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberReactionsPostBody""" - 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/)."', + 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(ReposOwnerRepoKeysPostBody) +model_rebuild(ReposOwnerRepoIssuesIssueNumberReactionsPostBody) -__all__ = ("ReposOwnerRepoKeysPostBody",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberReactionsPostBody",) 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 c9c52cd3c..ed84db7b4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1073.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1073.py @@ -16,22 +16,17 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoLabelsPostBody(GitHubModel): - """ReposOwnerRepoLabelsPostBody""" +class ReposOwnerRepoKeysPostBody(GitHubModel): + """ReposOwnerRepoKeysPostBody""" - 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( + 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="A short description of the label. Must be 100 characters or fewer.", + 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(ReposOwnerRepoLabelsPostBody) +model_rebuild(ReposOwnerRepoKeysPostBody) -__all__ = ("ReposOwnerRepoLabelsPostBody",) +__all__ = ("ReposOwnerRepoKeysPostBody",) 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 99482c11e..c9c52cd3c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1074.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1074.py @@ -16,12 +16,11 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoLabelsNamePatchBody(GitHubModel): - """ReposOwnerRepoLabelsNamePatchBody""" +class ReposOwnerRepoLabelsPostBody(GitHubModel): + """ReposOwnerRepoLabelsPostBody""" - 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)."', + 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, @@ -33,6 +32,6 @@ class ReposOwnerRepoLabelsNamePatchBody(GitHubModel): ) -model_rebuild(ReposOwnerRepoLabelsNamePatchBody) +model_rebuild(ReposOwnerRepoLabelsPostBody) -__all__ = ("ReposOwnerRepoLabelsNamePatchBody",) +__all__ = ("ReposOwnerRepoLabelsPostBody",) 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 7be32859a..99482c11e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1075.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1075.py @@ -11,17 +11,28 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoMergeUpstreamPostBody(GitHubModel): - """ReposOwnerRepoMergeUpstreamPostBody""" +class ReposOwnerRepoLabelsNamePatchBody(GitHubModel): + """ReposOwnerRepoLabelsNamePatchBody""" - branch: str = Field( - description="The name of the branch which should be updated to match upstream." + 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.", ) -model_rebuild(ReposOwnerRepoMergeUpstreamPostBody) +model_rebuild(ReposOwnerRepoLabelsNamePatchBody) -__all__ = ("ReposOwnerRepoMergeUpstreamPostBody",) +__all__ = ("ReposOwnerRepoLabelsNamePatchBody",) 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 052d6bba0..7be32859a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1076.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1076.py @@ -11,26 +11,17 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoMergesPostBody(GitHubModel): - """ReposOwnerRepoMergesPostBody""" +class ReposOwnerRepoMergeUpstreamPostBody(GitHubModel): + """ReposOwnerRepoMergeUpstreamPostBody""" - 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.", + branch: str = Field( + description="The name of the branch which should be updated to match upstream." ) -model_rebuild(ReposOwnerRepoMergesPostBody) +model_rebuild(ReposOwnerRepoMergeUpstreamPostBody) -__all__ = ("ReposOwnerRepoMergesPostBody",) +__all__ = ("ReposOwnerRepoMergeUpstreamPostBody",) 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 4db27f8af..052d6bba0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1077.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1077.py @@ -9,9 +9,6 @@ from __future__ import annotations -from typing import Literal -from datetime import datetime - from pydantic import Field from githubkit.utils import UNSET @@ -19,23 +16,21 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoMilestonesPostBody(GitHubModel): - """ReposOwnerRepoMilestonesPostBody""" +class ReposOwnerRepoMergesPostBody(GitHubModel): + """ReposOwnerRepoMergesPostBody""" - 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`.", + base: str = Field( + description="The name of the base branch that the head will be merged into." ) - description: Missing[str] = Field( - default=UNSET, description="A description of the milestone." + head: str = Field( + description="The head to merge. This can be a branch name or a commit SHA1." ) - due_on: Missing[datetime] = Field( + commit_message: Missing[str] = 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`.", + description="Commit message to use for the merge commit. If omitted, a default message will be used.", ) -model_rebuild(ReposOwnerRepoMilestonesPostBody) +model_rebuild(ReposOwnerRepoMergesPostBody) -__all__ = ("ReposOwnerRepoMilestonesPostBody",) +__all__ = ("ReposOwnerRepoMergesPostBody",) 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 66f746617..4db27f8af 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1078.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1078.py @@ -19,12 +19,10 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoMilestonesMilestoneNumberPatchBody(GitHubModel): - """ReposOwnerRepoMilestonesMilestoneNumberPatchBody""" +class ReposOwnerRepoMilestonesPostBody(GitHubModel): + """ReposOwnerRepoMilestonesPostBody""" - title: Missing[str] = Field( - default=UNSET, description="The title of the milestone." - ) + 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`.", @@ -38,6 +36,6 @@ class ReposOwnerRepoMilestonesMilestoneNumberPatchBody(GitHubModel): ) -model_rebuild(ReposOwnerRepoMilestonesMilestoneNumberPatchBody) +model_rebuild(ReposOwnerRepoMilestonesPostBody) -__all__ = ("ReposOwnerRepoMilestonesMilestoneNumberPatchBody",) +__all__ = ("ReposOwnerRepoMilestonesPostBody",) 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 ee1af04ff..66f746617 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1079.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1079.py @@ -9,6 +9,7 @@ from __future__ import annotations +from typing import Literal from datetime import datetime from pydantic import Field @@ -18,15 +19,25 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoNotificationsPutBody(GitHubModel): - """ReposOwnerRepoNotificationsPutBody""" +class ReposOwnerRepoMilestonesMilestoneNumberPatchBody(GitHubModel): + """ReposOwnerRepoMilestonesMilestoneNumberPatchBody""" - last_read_at: Missing[datetime] = Field( + 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="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="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(ReposOwnerRepoNotificationsPutBody) +model_rebuild(ReposOwnerRepoMilestonesMilestoneNumberPatchBody) -__all__ = ("ReposOwnerRepoNotificationsPutBody",) +__all__ = ("ReposOwnerRepoMilestonesMilestoneNumberPatchBody",) 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 2b5b85a37..ee1af04ff 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1080.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1080.py @@ -9,6 +9,8 @@ from __future__ import annotations +from datetime import datetime + from pydantic import Field from githubkit.utils import UNSET @@ -16,13 +18,15 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoNotificationsPutResponse202(GitHubModel): - """ReposOwnerRepoNotificationsPutResponse202""" +class ReposOwnerRepoNotificationsPutBody(GitHubModel): + """ReposOwnerRepoNotificationsPutBody""" - message: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + 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.", + ) -model_rebuild(ReposOwnerRepoNotificationsPutResponse202) +model_rebuild(ReposOwnerRepoNotificationsPutBody) -__all__ = ("ReposOwnerRepoNotificationsPutResponse202",) +__all__ = ("ReposOwnerRepoNotificationsPutBody",) 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 aaa502a31..2b5b85a37 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1081.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1081.py @@ -9,27 +9,20 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoPagesPutBodyPropSourceAnyof1(GitHubModel): - """ReposOwnerRepoPagesPutBodyPropSourceAnyof1 - - Update the source for the repository. Must include the branch name and path. - """ +class ReposOwnerRepoNotificationsPutResponse202(GitHubModel): + """ReposOwnerRepoNotificationsPutResponse202""" - 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`." - ) + message: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoPagesPutBodyPropSourceAnyof1) +model_rebuild(ReposOwnerRepoNotificationsPutResponse202) -__all__ = ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1",) +__all__ = ("ReposOwnerRepoNotificationsPutResponse202",) 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 c30eeb38e..aaa502a31 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1082.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1082.py @@ -9,43 +9,27 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_1081 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 +class ReposOwnerRepoPagesPutBodyPropSourceAnyof1(GitHubModel): + """ReposOwnerRepoPagesPutBodyPropSourceAnyof1 -class ReposOwnerRepoPagesPutBodyAnyof0(GitHubModel): - """ReposOwnerRepoPagesPutBodyAnyof0""" + Update the source for the repository. Must include the branch name and path. + """ - 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)."', + branch: str = Field( + description="The repository branch used to publish your site's source files." ) - 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.", + path: Literal["/", "/docs"] = Field( + description="The repository directory that includes the source files for the Pages site. Allowed paths are `/` or `/docs`." ) -model_rebuild(ReposOwnerRepoPagesPutBodyAnyof0) +model_rebuild(ReposOwnerRepoPagesPutBodyPropSourceAnyof1) -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof0",) +__all__ = ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1",) 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 b48716d78..890a02b47 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1083.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1083.py @@ -17,11 +17,11 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_1081 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 +from .group_1082 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 -class ReposOwnerRepoPagesPutBodyAnyof1(GitHubModel): - """ReposOwnerRepoPagesPutBodyAnyof1""" +class ReposOwnerRepoPagesPutBodyAnyof0(GitHubModel): + """ReposOwnerRepoPagesPutBodyAnyof0""" cname: Missing[Union[str, None]] = Field( default=UNSET, @@ -31,20 +31,21 @@ class ReposOwnerRepoPagesPutBodyAnyof1(GitHubModel): 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.", + 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: Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1, - ] = Field() + 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(ReposOwnerRepoPagesPutBodyAnyof1) +model_rebuild(ReposOwnerRepoPagesPutBodyAnyof0) -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof1",) +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof0",) 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 0d74fa599..b27df9266 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1084.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1084.py @@ -17,14 +17,15 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_1081 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 +from .group_1082 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 -class ReposOwnerRepoPagesPutBodyAnyof2(GitHubModel): - """ReposOwnerRepoPagesPutBodyAnyof2""" +class ReposOwnerRepoPagesPutBodyAnyof1(GitHubModel): + """ReposOwnerRepoPagesPutBodyAnyof1""" - 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)."' + 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, @@ -34,18 +35,16 @@ class ReposOwnerRepoPagesPutBodyAnyof2(GitHubModel): 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) + 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(ReposOwnerRepoPagesPutBodyAnyof2) +model_rebuild(ReposOwnerRepoPagesPutBodyAnyof1) -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof2",) +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof1",) 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 6770fe836..6588f7df3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1085.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1085.py @@ -17,15 +17,14 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_1081 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 +from .group_1082 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 -class ReposOwnerRepoPagesPutBodyAnyof3(GitHubModel): - """ReposOwnerRepoPagesPutBodyAnyof3""" +class ReposOwnerRepoPagesPutBodyAnyof2(GitHubModel): + """ReposOwnerRepoPagesPutBodyAnyof2""" - 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)."', + 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( default=UNSET, @@ -41,11 +40,12 @@ class ReposOwnerRepoPagesPutBodyAnyof3(GitHubModel): 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." + 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(ReposOwnerRepoPagesPutBodyAnyof3) +model_rebuild(ReposOwnerRepoPagesPutBodyAnyof2) -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof3",) +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof2",) 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 c5590989d..a9c711f2c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1086.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1086.py @@ -17,18 +17,19 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_1081 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 +from .group_1082 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 -class ReposOwnerRepoPagesPutBodyAnyof4(GitHubModel): - """ReposOwnerRepoPagesPutBodyAnyof4""" +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: bool = Field( - description="Specify whether HTTPS should be enforced for the repository." + 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, @@ -40,12 +41,11 @@ class ReposOwnerRepoPagesPutBodyAnyof4(GitHubModel): 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.", + 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(ReposOwnerRepoPagesPutBodyAnyof4) +model_rebuild(ReposOwnerRepoPagesPutBodyAnyof3) -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof4",) +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof3",) 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 a34439e2e..6d599826f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1087.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1087.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from pydantic import Field @@ -17,22 +17,35 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_1082 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 -class ReposOwnerRepoPagesPostBodyPropSource(GitHubModel): - """ReposOwnerRepoPagesPostBodyPropSource - The source branch and directory used to publish your Pages site. - """ +class ReposOwnerRepoPagesPutBodyAnyof4(GitHubModel): + """ReposOwnerRepoPagesPutBodyAnyof4""" - branch: str = Field( - description="The repository branch used to publish your site's source files." + 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.", ) - path: Missing[Literal["/", "/docs"]] = Field( + source: Missing[ + Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1, + ] + ] = Field(default=UNSET) + public: Missing[bool] = Field( default=UNSET, - description="The repository directory that includes the source files for the Pages site. Allowed paths are `/` or `/docs`. Default: `/`", + 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(ReposOwnerRepoPagesPostBodyPropSource) +model_rebuild(ReposOwnerRepoPagesPutBodyAnyof4) -__all__ = ("ReposOwnerRepoPagesPostBodyPropSource",) +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof4",) 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 97f397897..a34439e2e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1088.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1088.py @@ -17,21 +17,22 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_1087 import ReposOwnerRepoPagesPostBodyPropSource +class ReposOwnerRepoPagesPostBodyPropSource(GitHubModel): + """ReposOwnerRepoPagesPostBodyPropSource -class ReposOwnerRepoPagesPostBodyAnyof0(GitHubModel): - """ReposOwnerRepoPagesPostBodyAnyof0""" + The source branch and directory used to publish your Pages site. + """ - build_type: Missing[Literal["legacy", "workflow"]] = Field( - default=UNSET, - description='The process in which the Page will be built. Possible values are `"legacy"` and `"workflow"`.', + branch: str = Field( + description="The repository branch used to publish your site's source files." ) - source: ReposOwnerRepoPagesPostBodyPropSource = Field( - description="The source branch and directory used to publish your Pages site." + 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(ReposOwnerRepoPagesPostBodyAnyof0) +model_rebuild(ReposOwnerRepoPagesPostBodyPropSource) -__all__ = ("ReposOwnerRepoPagesPostBodyAnyof0",) +__all__ = ("ReposOwnerRepoPagesPostBodyPropSource",) 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 dbd1996b4..02bb81a1b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1089.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1089.py @@ -17,21 +17,21 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_1087 import ReposOwnerRepoPagesPostBodyPropSource +from .group_1088 import ReposOwnerRepoPagesPostBodyPropSource -class ReposOwnerRepoPagesPostBodyAnyof1(GitHubModel): - """ReposOwnerRepoPagesPostBodyAnyof1""" +class ReposOwnerRepoPagesPostBodyAnyof0(GitHubModel): + """ReposOwnerRepoPagesPostBodyAnyof0""" - 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( + build_type: Missing[Literal["legacy", "workflow"]] = Field( default=UNSET, - description="The source branch and directory used to publish your Pages site.", + 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." ) -model_rebuild(ReposOwnerRepoPagesPostBodyAnyof1) +model_rebuild(ReposOwnerRepoPagesPostBodyAnyof0) -__all__ = ("ReposOwnerRepoPagesPostBodyAnyof1",) +__all__ = ("ReposOwnerRepoPagesPostBodyAnyof0",) 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 983710249..2b02a21df 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1090.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1090.py @@ -9,40 +9,29 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_1088 import ReposOwnerRepoPagesPostBodyPropSource -class ReposOwnerRepoPagesDeploymentsPostBody(GitHubModel): - """ReposOwnerRepoPagesDeploymentsPostBody - The object used to create GitHub Pages deployment - """ +class ReposOwnerRepoPagesPostBodyAnyof1(GitHubModel): + """ReposOwnerRepoPagesPostBodyAnyof1""" - 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.", + build_type: Literal["legacy", "workflow"] = Field( + description='The process in which the Page will be built. Possible values are `"legacy"` and `"workflow"`.' ) - environment: Missing[str] = Field( + source: Missing[ReposOwnerRepoPagesPostBodyPropSource] = 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." + description="The source branch and directory used to publish your Pages site.", ) -model_rebuild(ReposOwnerRepoPagesDeploymentsPostBody) +model_rebuild(ReposOwnerRepoPagesPostBodyAnyof1) -__all__ = ("ReposOwnerRepoPagesDeploymentsPostBody",) +__all__ = ("ReposOwnerRepoPagesPostBodyAnyof1",) 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 c70eda7b0..983710249 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1091.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1091.py @@ -11,17 +11,38 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200(GitHubModel): - """ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200""" +class ReposOwnerRepoPagesDeploymentsPostBody(GitHubModel): + """ReposOwnerRepoPagesDeploymentsPostBody - enabled: bool = Field( - description="Whether or not private vulnerability reporting is enabled for the repository." + 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(ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200) +model_rebuild(ReposOwnerRepoPagesDeploymentsPostBody) -__all__ = ("ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200",) +__all__ = ("ReposOwnerRepoPagesDeploymentsPostBody",) 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 64fb2be93..c70eda7b0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1092.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1092.py @@ -11,20 +11,17 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoProjectsPostBody(GitHubModel): - """ReposOwnerRepoProjectsPostBody""" +class ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200(GitHubModel): + """ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200""" - name: str = Field(description="The name of the project.") - body: Missing[str] = Field( - default=UNSET, description="The description of the project." + enabled: bool = Field( + description="Whether or not private vulnerability reporting is enabled for the repository." ) -model_rebuild(ReposOwnerRepoProjectsPostBody) +model_rebuild(ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200) -__all__ = ("ReposOwnerRepoProjectsPostBody",) +__all__ = ("ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200",) 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 e58e5928d..64fb2be93 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1093.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1093.py @@ -9,23 +9,22 @@ from __future__ import annotations -from typing import List - from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0120 import CustomPropertyValue - -class ReposOwnerRepoPropertiesValuesPatchBody(GitHubModel): - """ReposOwnerRepoPropertiesValuesPatchBody""" +class ReposOwnerRepoProjectsPostBody(GitHubModel): + """ReposOwnerRepoProjectsPostBody""" - properties: List[CustomPropertyValue] = Field( - description="A list of custom property names and associated values to apply to the repositories." + name: str = Field(description="The name of the project.") + body: Missing[str] = Field( + default=UNSET, description="The description of the project." ) -model_rebuild(ReposOwnerRepoPropertiesValuesPatchBody) +model_rebuild(ReposOwnerRepoProjectsPostBody) -__all__ = ("ReposOwnerRepoPropertiesValuesPatchBody",) +__all__ = ("ReposOwnerRepoProjectsPostBody",) 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 4fbd1ab3f..e58e5928d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1094.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1094.py @@ -9,47 +9,23 @@ from __future__ import annotations +from typing import List + from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0120 import CustomPropertyValue -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/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.", +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(ReposOwnerRepoPullsPostBody) +model_rebuild(ReposOwnerRepoPropertiesValuesPatchBody) -__all__ = ("ReposOwnerRepoPullsPostBody",) +__all__ = ("ReposOwnerRepoPropertiesValuesPatchBody",) 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 b48ea50a0..4fbd1ab3f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1095.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1095.py @@ -11,15 +11,45 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing 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",) +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/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(ReposOwnerRepoPullsPostBody) + +__all__ = ("ReposOwnerRepoPullsPostBody",) 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 7206cc70c..b48ea50a0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1096.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1096.py @@ -9,23 +9,17 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody(GitHubModel): - """ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody""" +class ReposOwnerRepoPullsCommentsCommentIdPatchBody(GitHubModel): + """ReposOwnerRepoPullsCommentsCommentIdPatchBody""" - 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." - ) + body: str = Field(description="The text of the reply to the review comment.") -model_rebuild(ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody) +model_rebuild(ReposOwnerRepoPullsCommentsCommentIdPatchBody) -__all__ = ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody",) +__all__ = ("ReposOwnerRepoPullsCommentsCommentIdPatchBody",) 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 c05715bd9..7206cc70c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1097.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1097.py @@ -13,34 +13,19 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoPullsPullNumberPatchBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberPatchBody""" +class ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody(GitHubModel): + """ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody""" - 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.", - ) - 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.", + 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(ReposOwnerRepoPullsPullNumberPatchBody) +model_rebuild(ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody) -__all__ = ("ReposOwnerRepoPullsPullNumberPatchBody",) +__all__ = ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody",) 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 a1c5168af..c05715bd9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1098.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1098.py @@ -18,48 +18,29 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoPullsPullNumberCodespacesPostBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberCodespacesPostBody""" +class ReposOwnerRepoPullsPullNumberPatchBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberPatchBody""" - 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 being deprecated.", - ) - client_ip: Missing[str] = Field( - default=UNSET, - description="IP for location auto-detection when proxying a request", + title: Missing[str] = Field( + default=UNSET, description="The title of the pull request." ) - machine: Missing[str] = Field( - default=UNSET, description="Machine type to use for this codespace" + body: Missing[str] = Field( + default=UNSET, description="The contents of the pull request." ) - devcontainer_path: Missing[str] = Field( + state: Missing[Literal["open", "closed"]] = Field( default=UNSET, - description="Path to devcontainer.json config to use for this codespace", + description="State of this Pull Request. Either `open` or `closed`.", ) - multi_repo_permissions_opt_out: Missing[bool] = Field( + base: Missing[str] = 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" + 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.", ) - retention_period_minutes: Missing[int] = Field( + maintainer_can_modify: Missing[bool] = 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="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.", ) -model_rebuild(ReposOwnerRepoPullsPullNumberCodespacesPostBody) +model_rebuild(ReposOwnerRepoPullsPullNumberPatchBody) -__all__ = ("ReposOwnerRepoPullsPullNumberCodespacesPostBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberPatchBody",) 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 052083c53..a1c5168af 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1099.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1099.py @@ -18,45 +18,48 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoPullsPullNumberCommentsPostBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberCommentsPostBody""" +class ReposOwnerRepoPullsPullNumberCodespacesPostBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberCodespacesPostBody""" - 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( + location: Missing[str] = Field( default=UNSET, - description='**This parameter is deprecated. 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.', + description="The requested location for a new codespace. Best efforts are made to respect this upon creation. Assigned by IP if not provided.", ) - side: Missing[Literal["LEFT", "RIGHT"]] = Field( + geo: Missing[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] = 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.', + description="The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is being deprecated.", ) - line: Missing[int] = Field( + client_ip: Missing[str] = 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="IP for location auto-detection when proxying a request", + ) + machine: Missing[str] = Field( + default=UNSET, description="Machine type to use for this codespace" ) - start_line: Missing[int] = Field( + devcontainer_path: 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/enterprise-cloud@latest//articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)" in the GitHub Help documentation.', + description="Path to devcontainer.json config to use for this codespace", ) - start_side: Missing[Literal["LEFT", "RIGHT", "side"]] = Field( + multi_repo_permissions_opt_out: Missing[bool] = 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.', + description="Whether to authorize requested permissions from devcontainer.json", ) - in_reply_to: Missing[int] = Field( + working_directory: Missing[str] = Field( + default=UNSET, description="Working directory for this codespace" + ) + idle_timeout_minutes: 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.', + description="Time in minutes before codespace stops from inactivity", + ) + display_name: Missing[str] = Field( + default=UNSET, description="Display name for this codespace" ) - subject_type: Missing[Literal["line", "file"]] = Field( - default=UNSET, description="The level at which the comment is targeted." + 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(ReposOwnerRepoPullsPullNumberCommentsPostBody) +model_rebuild(ReposOwnerRepoPullsPullNumberCodespacesPostBody) -__all__ = ("ReposOwnerRepoPullsPullNumberCommentsPostBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberCodespacesPostBody",) 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 19ce96346..052083c53 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1100.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1100.py @@ -9,17 +9,54 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody""" +class ReposOwnerRepoPullsPullNumberCommentsPostBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberCommentsPostBody""" body: str = Field(description="The text of the review comment.") - - -model_rebuild(ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody) - -__all__ = ("ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody",) + 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 deprecated. 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." + ) + + +model_rebuild(ReposOwnerRepoPullsPullNumberCommentsPostBody) + +__all__ = ("ReposOwnerRepoPullsPullNumberCommentsPostBody",) 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 bc574dd95..19ce96346 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1101.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1101.py @@ -9,33 +9,17 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoPullsPullNumberMergePutBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberMergePutBody""" +class ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody""" - 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." - ) + body: str = Field(description="The text of the review comment.") -model_rebuild(ReposOwnerRepoPullsPullNumberMergePutBody) +model_rebuild(ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody) -__all__ = ("ReposOwnerRepoPullsPullNumberMergePutBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody",) 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 eaa87fc99..bc574dd95 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1102.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1102.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.utils import UNSET @@ -16,13 +18,24 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoPullsPullNumberMergePutResponse405(GitHubModel): - """ReposOwnerRepoPullsPullNumberMergePutResponse405""" +class ReposOwnerRepoPullsPullNumberMergePutBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberMergePutBody""" - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) + 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." + ) -model_rebuild(ReposOwnerRepoPullsPullNumberMergePutResponse405) +model_rebuild(ReposOwnerRepoPullsPullNumberMergePutBody) -__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse405",) +__all__ = ("ReposOwnerRepoPullsPullNumberMergePutBody",) 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 ff106781d..eaa87fc99 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1103.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1103.py @@ -16,13 +16,13 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoPullsPullNumberMergePutResponse409(GitHubModel): - """ReposOwnerRepoPullsPullNumberMergePutResponse409""" +class ReposOwnerRepoPullsPullNumberMergePutResponse405(GitHubModel): + """ReposOwnerRepoPullsPullNumberMergePutResponse405""" message: Missing[str] = Field(default=UNSET) documentation_url: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoPullsPullNumberMergePutResponse409) +model_rebuild(ReposOwnerRepoPullsPullNumberMergePutResponse405) -__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse409",) +__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse405",) 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 1fa538765..ff106781d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1104.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1104.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import List - from pydantic import Field from githubkit.utils import UNSET @@ -18,17 +16,13 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0(GitHubModel): - """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0""" +class ReposOwnerRepoPullsPullNumberMergePutResponse409(GitHubModel): + """ReposOwnerRepoPullsPullNumberMergePutResponse409""" - 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." - ) + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0) +model_rebuild(ReposOwnerRepoPullsPullNumberMergePutResponse409) -__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0",) +__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse409",) 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 6f77dbb5a..1fa538765 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1105.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1105.py @@ -18,17 +18,17 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1(GitHubModel): - """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1""" +class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0(GitHubModel): + """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0""" - reviewers: Missing[List[str]] = Field( - default=UNSET, description="An array of user `login`s that will be requested." + reviewers: List[str] = Field( + 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." + team_reviewers: Missing[List[str]] = Field( + default=UNSET, description="An array of team `slug`s that will be requested." ) -model_rebuild(ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1) +model_rebuild(ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0) -__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1",) +__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0",) 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 0adaf0241..6f77dbb5a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1106.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1106.py @@ -18,17 +18,17 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody""" +class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1(GitHubModel): + """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1""" - reviewers: List[str] = Field( - description="An array of user `login`s that will be removed." + reviewers: Missing[List[str]] = Field( + default=UNSET, 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 removed." + team_reviewers: List[str] = Field( + description="An array of team `slug`s that will be requested." ) -model_rebuild(ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody) +model_rebuild(ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1) -__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1",) 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 d5d5a7566..0adaf0241 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1107.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1107.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Literal +from typing import List from pydantic import Field @@ -18,50 +18,17 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoPullsPullNumberReviewsPostBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberReviewsPostBody""" +class ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody""" - 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.", + reviewers: List[str] = Field( + description="An array of user `login`s that will be removed." ) - 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.", + team_reviewers: Missing[List[str]] = Field( + default=UNSET, description="An array of team `slug`s that will be removed." ) - 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(ReposOwnerRepoPullsPullNumberReviewsPostBody) -model_rebuild(ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems) +model_rebuild(ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody) -__all__ = ( - "ReposOwnerRepoPullsPullNumberReviewsPostBody", - "ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems", -) +__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody",) 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 60600e7a7..d5d5a7566 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1108.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1108.py @@ -9,17 +9,59 @@ from __future__ import annotations +from typing import List, Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody""" +class ReposOwnerRepoPullsPullNumberReviewsPostBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberReviewsPostBody""" + + 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""" - body: str = Field(description="The body text of the pull request review.") + 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(ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody) +model_rebuild(ReposOwnerRepoPullsPullNumberReviewsPostBody) +model_rebuild(ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems) -__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody",) +__all__ = ( + "ReposOwnerRepoPullsPullNumberReviewsPostBody", + "ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems", +) 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 857baf92a..60600e7a7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1109.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1109.py @@ -9,24 +9,17 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody""" +class ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody""" - message: str = Field( - description="The message for the pull request review dismissal" - ) - event: Missing[Literal["DISMISS"]] = Field(default=UNSET) + body: str = Field(description="The body text of the pull request review.") -model_rebuild(ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody) +model_rebuild(ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody) -__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody",) 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 63a7f87ba..857baf92a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1110.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1110.py @@ -18,17 +18,15 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody""" +class ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody""" - 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." + message: str = Field( + description="The message for the pull request review dismissal" ) + event: Missing[Literal["DISMISS"]] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody) +model_rebuild(ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody) -__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody",) 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 5ae4b707e..63a7f87ba 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1111.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1111.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.utils import UNSET @@ -16,15 +18,17 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoPullsPullNumberUpdateBranchPutBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberUpdateBranchPutBody""" +class ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody""" - 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.", + 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." ) -model_rebuild(ReposOwnerRepoPullsPullNumberUpdateBranchPutBody) +model_rebuild(ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody) -__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody",) 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 862b6ba8f..5ae4b707e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1112.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1112.py @@ -16,13 +16,15 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202(GitHubModel): - """ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202""" +class ReposOwnerRepoPullsPullNumberUpdateBranchPutBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberUpdateBranchPutBody""" - message: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + 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(ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202) +model_rebuild(ReposOwnerRepoPullsPullNumberUpdateBranchPutBody) -__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202",) +__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBody",) 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 92b00e20a..862b6ba8f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1113.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1113.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.utils import UNSET @@ -18,40 +16,13 @@ from githubkit.compat import GitHubModel, model_rebuild -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 ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202(GitHubModel): + """ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202""" + + message: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202) + +__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202",) 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 f49d56bca..92b00e20a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1114.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1114.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.utils import UNSET @@ -16,17 +18,40 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoReleasesAssetsAssetIdPatchBody(GitHubModel): - """ReposOwnerRepoReleasesAssetsAssetIdPatchBody""" +class ReposOwnerRepoReleasesPostBody(GitHubModel): + """ReposOwnerRepoReleasesPostBody""" - name: Missing[str] = Field(default=UNSET, description="The file name of the asset.") - label: Missing[str] = 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="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="An alternate short description of the asset. Used in place of the filename.", + 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.", ) - state: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoReleasesAssetsAssetIdPatchBody) +model_rebuild(ReposOwnerRepoReleasesPostBody) -__all__ = ("ReposOwnerRepoReleasesAssetsAssetIdPatchBody",) +__all__ = ("ReposOwnerRepoReleasesPostBody",) 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 3944a35e1..f49d56bca 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1115.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1115.py @@ -16,26 +16,17 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoReleasesGenerateNotesPostBody(GitHubModel): - """ReposOwnerRepoReleasesGenerateNotesPostBody""" +class ReposOwnerRepoReleasesAssetsAssetIdPatchBody(GitHubModel): + """ReposOwnerRepoReleasesAssetsAssetIdPatchBody""" - 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( + name: Missing[str] = Field(default=UNSET, description="The file name of the asset.") + label: 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.", + description="An alternate short description of the asset. Used in place of the filename.", ) + state: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoReleasesGenerateNotesPostBody) +model_rebuild(ReposOwnerRepoReleasesAssetsAssetIdPatchBody) -__all__ = ("ReposOwnerRepoReleasesGenerateNotesPostBody",) +__all__ = ("ReposOwnerRepoReleasesAssetsAssetIdPatchBody",) 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 37c6fbbe2..3944a35e1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1116.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1116.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.utils import UNSET @@ -18,36 +16,26 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoReleasesReleaseIdPatchBody(GitHubModel): - """ReposOwnerRepoReleasesReleaseIdPatchBody""" +class ReposOwnerRepoReleasesGenerateNotesPostBody(GitHubModel): + """ReposOwnerRepoReleasesGenerateNotesPostBody""" - 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." + tag_name: str = Field( + description="The tag name for the release. This can be an existing tag or a new one." ) - draft: Missing[bool] = Field( - default=UNSET, - description="`true` makes the release a draft, and `false` publishes the release.", - ) - prerelease: Missing[bool] = Field( + target_commitish: Missing[str] = Field( default=UNSET, - description="`true` to identify the release as a prerelease, `false` to identify the release as a full release.", + 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.", ) - make_latest: Missing[Literal["true", "false", "legacy"]] = Field( + previous_tag_name: Missing[str] = 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="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.", ) - discussion_category_name: Missing[str] = Field( + configuration_file_path: 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)."', + 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(ReposOwnerRepoReleasesReleaseIdPatchBody) +model_rebuild(ReposOwnerRepoReleasesGenerateNotesPostBody) -__all__ = ("ReposOwnerRepoReleasesReleaseIdPatchBody",) +__all__ = ("ReposOwnerRepoReleasesGenerateNotesPostBody",) 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 2e3235af7..37c6fbbe2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1117.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1117.py @@ -13,17 +13,41 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoReleasesReleaseIdReactionsPostBody(GitHubModel): - """ReposOwnerRepoReleasesReleaseIdReactionsPostBody""" +class ReposOwnerRepoReleasesReleaseIdPatchBody(GitHubModel): + """ReposOwnerRepoReleasesReleaseIdPatchBody""" - 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." + 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/enterprise-cloud@latest//discussions/managing-discussions-for-your-community/managing-categories-for-discussions-in-your-repository)."', ) -model_rebuild(ReposOwnerRepoReleasesReleaseIdReactionsPostBody) +model_rebuild(ReposOwnerRepoReleasesReleaseIdPatchBody) -__all__ = ("ReposOwnerRepoReleasesReleaseIdReactionsPostBody",) +__all__ = ("ReposOwnerRepoReleasesReleaseIdPatchBody",) 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 83204605a..2e3235af7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1118.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1118.py @@ -9,87 +9,21 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0137 import RepositoryRuleUpdate -from .group_0161 import RepositoryRuleOneof17 -from .group_0157 import RepositoryRuleWorkflows -from .group_0142 import RepositoryRulePullRequest -from .group_0159 import RepositoryRuleCodeScanning -from .group_0125 import RepositoryRulesetConditions -from .group_0124 import RepositoryRulesetBypassActor -from .group_0154 import RepositoryRuleTagNamePattern -from .group_0152 import RepositoryRuleBranchNamePattern -from .group_0140 import RepositoryRuleRequiredDeployments -from .group_0144 import RepositoryRuleRequiredStatusChecks -from .group_0146 import RepositoryRuleCommitMessagePattern -from .group_0150 import RepositoryRuleCommitterEmailPattern -from .group_0148 import RepositoryRuleCommitAuthorEmailPattern -from .group_0139 import RepositoryRuleOneof15, RepositoryRuleRequiredLinearHistory -from .group_0136 import ( - RepositoryRuleOneof14, - RepositoryRuleOneof16, - RepositoryRuleCreation, - RepositoryRuleDeletion, - RepositoryRuleNonFastForward, - RepositoryRuleRequiredSignatures, -) +class ReposOwnerRepoReleasesReleaseIdReactionsPostBody(GitHubModel): + """ReposOwnerRepoReleasesReleaseIdReactionsPostBody""" -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\n\n**Note**: The `push` target is in beta and is subject to change.", - ) - 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." - ) - 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", + 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." ) - rules: Missing[ - List[ - Union[ - RepositoryRuleCreation, - RepositoryRuleUpdate, - RepositoryRuleDeletion, - RepositoryRuleRequiredLinearHistory, - RepositoryRuleRequiredDeployments, - RepositoryRuleRequiredSignatures, - RepositoryRulePullRequest, - RepositoryRuleRequiredStatusChecks, - RepositoryRuleNonFastForward, - RepositoryRuleCommitMessagePattern, - RepositoryRuleCommitAuthorEmailPattern, - RepositoryRuleCommitterEmailPattern, - RepositoryRuleBranchNamePattern, - RepositoryRuleTagNamePattern, - RepositoryRuleOneof14, - RepositoryRuleOneof15, - RepositoryRuleOneof16, - RepositoryRuleOneof17, - RepositoryRuleWorkflows, - RepositoryRuleCodeScanning, - ] - ] - ] = Field(default=UNSET, description="An array of rules within the ruleset.") -model_rebuild(ReposOwnerRepoRulesetsPostBody) +model_rebuild(ReposOwnerRepoReleasesReleaseIdReactionsPostBody) -__all__ = ("ReposOwnerRepoRulesetsPostBody",) +__all__ = ("ReposOwnerRepoReleasesReleaseIdReactionsPostBody",) 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 96ff1a7b0..83204605a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1119.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1119.py @@ -42,17 +42,16 @@ ) -class ReposOwnerRepoRulesetsRulesetIdPutBody(GitHubModel): - """ReposOwnerRepoRulesetsRulesetIdPutBody""" +class ReposOwnerRepoRulesetsPostBody(GitHubModel): + """ReposOwnerRepoRulesetsPostBody""" - name: Missing[str] = Field(default=UNSET, description="The name of the ruleset.") + name: str = Field(description="The name of the ruleset.") target: Missing[Literal["branch", "tag", "push"]] = Field( default=UNSET, description="The target of the ruleset\n\n**Note**: The `push` target is in beta and is subject to change.", ) - 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.", + 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." ) bypass_actors: Missing[List[RepositoryRulesetBypassActor]] = Field( default=UNSET, @@ -91,6 +90,6 @@ class ReposOwnerRepoRulesetsRulesetIdPutBody(GitHubModel): ] = Field(default=UNSET, description="An array of rules within the ruleset.") -model_rebuild(ReposOwnerRepoRulesetsRulesetIdPutBody) +model_rebuild(ReposOwnerRepoRulesetsPostBody) -__all__ = ("ReposOwnerRepoRulesetsRulesetIdPutBody",) +__all__ = ("ReposOwnerRepoRulesetsPostBody",) 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 e2b827b1b..96ff1a7b0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1120.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1120.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field @@ -17,25 +17,80 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0137 import RepositoryRuleUpdate +from .group_0161 import RepositoryRuleOneof17 +from .group_0157 import RepositoryRuleWorkflows +from .group_0142 import RepositoryRulePullRequest +from .group_0159 import RepositoryRuleCodeScanning +from .group_0125 import RepositoryRulesetConditions +from .group_0124 import RepositoryRulesetBypassActor +from .group_0154 import RepositoryRuleTagNamePattern +from .group_0152 import RepositoryRuleBranchNamePattern +from .group_0140 import RepositoryRuleRequiredDeployments +from .group_0144 import RepositoryRuleRequiredStatusChecks +from .group_0146 import RepositoryRuleCommitMessagePattern +from .group_0150 import RepositoryRuleCommitterEmailPattern +from .group_0148 import RepositoryRuleCommitAuthorEmailPattern +from .group_0139 import RepositoryRuleOneof15, RepositoryRuleRequiredLinearHistory +from .group_0136 import ( + RepositoryRuleOneof14, + RepositoryRuleOneof16, + RepositoryRuleCreation, + RepositoryRuleDeletion, + RepositoryRuleNonFastForward, + RepositoryRuleRequiredSignatures, +) -class ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody(GitHubModel): - """ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody""" - 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`." +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\n\n**Note**: The `push` target is in beta and is subject to change.", + ) + 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.", ) - resolution: Missing[ - Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] - ] = Field( + bypass_actors: Missing[List[RepositoryRulesetBypassActor]] = Field( default=UNSET, - description="**Required when the `state` is `resolved`.** The reason for resolving the alert.", + description="The actors that can bypass the rules in this ruleset", ) - resolution_comment: Missing[Union[str, None]] = Field( + conditions: Missing[RepositoryRulesetConditions] = Field( default=UNSET, - description="An optional comment when closing an alert. Cannot be updated or deleted. Must be `null` when changing `state` to `open`.", + title="Repository ruleset conditions for ref names", + description="Parameters for a repository ruleset ref name condition", ) + rules: Missing[ + List[ + Union[ + RepositoryRuleCreation, + RepositoryRuleUpdate, + RepositoryRuleDeletion, + RepositoryRuleRequiredLinearHistory, + RepositoryRuleRequiredDeployments, + RepositoryRuleRequiredSignatures, + RepositoryRulePullRequest, + RepositoryRuleRequiredStatusChecks, + RepositoryRuleNonFastForward, + RepositoryRuleCommitMessagePattern, + RepositoryRuleCommitAuthorEmailPattern, + RepositoryRuleCommitterEmailPattern, + RepositoryRuleBranchNamePattern, + RepositoryRuleTagNamePattern, + RepositoryRuleOneof14, + RepositoryRuleOneof15, + RepositoryRuleOneof16, + RepositoryRuleOneof17, + RepositoryRuleWorkflows, + RepositoryRuleCodeScanning, + ] + ] + ] = Field(default=UNSET, description="An array of rules within the ruleset.") -model_rebuild(ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody) +model_rebuild(ReposOwnerRepoRulesetsRulesetIdPutBody) -__all__ = ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody",) +__all__ = ("ReposOwnerRepoRulesetsRulesetIdPutBody",) 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 c68c08211..e2b827b1b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1121.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1121.py @@ -18,25 +18,24 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoStatusesShaPostBody(GitHubModel): - """ReposOwnerRepoStatusesShaPostBody""" +class ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody(GitHubModel): + """ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody""" - state: Literal["error", "failure", "pending", "success"] = Field( - description="The state of the status." + 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`." ) - target_url: Missing[Union[str, None]] = Field( + resolution: Missing[ + Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] + ] = 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="**Required when the `state` is `resolved`.** The reason for resolving the alert.", ) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="A short description of the status." - ) - context: Missing[str] = Field( + resolution_comment: Missing[Union[str, None]] = Field( default=UNSET, - description="A string label to differentiate this status from the status of other systems. This field is case-insensitive.", + description="An optional comment when closing an alert. Cannot be updated or deleted. Must be `null` when changing `state` to `open`.", ) -model_rebuild(ReposOwnerRepoStatusesShaPostBody) +model_rebuild(ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody) -__all__ = ("ReposOwnerRepoStatusesShaPostBody",) +__all__ = ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody",) 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 140c5808c..c68c08211 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1122.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1122.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Union, Literal + from pydantic import Field from githubkit.utils import UNSET @@ -16,19 +18,25 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoSubscriptionPutBody(GitHubModel): - """ReposOwnerRepoSubscriptionPutBody""" +class ReposOwnerRepoStatusesShaPostBody(GitHubModel): + """ReposOwnerRepoStatusesShaPostBody""" - subscribed: 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="Determines if notifications should be received from this repository.", + 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." ) - ignored: Missing[bool] = Field( + context: Missing[str] = Field( default=UNSET, - description="Determines if all notifications should be blocked from this repository.", + description="A string label to differentiate this status from the status of other systems. This field is case-insensitive.", ) -model_rebuild(ReposOwnerRepoSubscriptionPutBody) +model_rebuild(ReposOwnerRepoStatusesShaPostBody) -__all__ = ("ReposOwnerRepoSubscriptionPutBody",) +__all__ = ("ReposOwnerRepoStatusesShaPostBody",) 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 59aae89ec..140c5808c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1123.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1123.py @@ -11,17 +11,24 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoTagsProtectionPostBody(GitHubModel): - """ReposOwnerRepoTagsProtectionPostBody""" +class ReposOwnerRepoSubscriptionPutBody(GitHubModel): + """ReposOwnerRepoSubscriptionPutBody""" - pattern: str = Field( - description="An optional glob pattern to match against when enforcing tag protection." + 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(ReposOwnerRepoTagsProtectionPostBody) +model_rebuild(ReposOwnerRepoSubscriptionPutBody) -__all__ = ("ReposOwnerRepoTagsProtectionPostBody",) +__all__ = ("ReposOwnerRepoSubscriptionPutBody",) 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 e248ddcbd..59aae89ec 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1124.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1124.py @@ -9,21 +9,19 @@ from __future__ import annotations -from typing import List - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoTopicsPutBody(GitHubModel): - """ReposOwnerRepoTopicsPutBody""" +class ReposOwnerRepoTagsProtectionPostBody(GitHubModel): + """ReposOwnerRepoTagsProtectionPostBody""" - 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` cannot contain uppercase letters." + pattern: str = Field( + description="An optional glob pattern to match against when enforcing tag protection." ) -model_rebuild(ReposOwnerRepoTopicsPutBody) +model_rebuild(ReposOwnerRepoTagsProtectionPostBody) -__all__ = ("ReposOwnerRepoTopicsPutBody",) +__all__ = ("ReposOwnerRepoTagsProtectionPostBody",) 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 8e53926f6..e248ddcbd 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1125.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1125.py @@ -13,26 +13,17 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoTransferPostBody(GitHubModel): - """ReposOwnerRepoTransferPostBody""" +class ReposOwnerRepoTopicsPutBody(GitHubModel): + """ReposOwnerRepoTopicsPutBody""" - 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.", + 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` cannot contain uppercase letters." ) -model_rebuild(ReposOwnerRepoTransferPostBody) +model_rebuild(ReposOwnerRepoTopicsPutBody) -__all__ = ("ReposOwnerRepoTransferPostBody",) +__all__ = ("ReposOwnerRepoTopicsPutBody",) 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 a7818cc81..8e53926f6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1126.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1126.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import List + from pydantic import Field from githubkit.utils import UNSET @@ -16,27 +18,21 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposTemplateOwnerTemplateRepoGeneratePostBody(GitHubModel): - """ReposTemplateOwnerTemplateRepoGeneratePostBody""" +class ReposOwnerRepoTransferPostBody(GitHubModel): + """ReposOwnerRepoTransferPostBody""" - 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.", + new_owner: str = Field( + description="The username or organization name the repository will be transferred to." ) - 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`.", + new_name: Missing[str] = Field( + default=UNSET, description="The new name to be given to the repository." ) - private: Missing[bool] = Field( + team_ids: Missing[List[int]] = Field( default=UNSET, - description="Either `true` to create a new private repository or `false` to create a new public one.", + description="ID of the team or teams to add to the repository. Teams can only be added to organization-owned repositories.", ) -model_rebuild(ReposTemplateOwnerTemplateRepoGeneratePostBody) +model_rebuild(ReposOwnerRepoTransferPostBody) -__all__ = ("ReposTemplateOwnerTemplateRepoGeneratePostBody",) +__all__ = ("ReposOwnerRepoTransferPostBody",) 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 883fe1eea..a7818cc81 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1127.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1127.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import List - from pydantic import Field from githubkit.utils import UNSET @@ -18,54 +16,27 @@ from githubkit.compat import GitHubModel, model_rebuild -class ScimV2OrganizationsOrgUsersPostBody(GitHubModel): - """ScimV2OrganizationsOrgUsersPostBody""" +class ReposTemplateOwnerTemplateRepoGeneratePostBody(GitHubModel): + """ReposTemplateOwnerTemplateRepoGeneratePostBody""" - user_name: str = Field( - alias="userName", - description="Configured by the admin. Could be an email, login, or username", + 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." ) - display_name: Missing[str] = Field( + include_all_branches: Missing[bool] = Field( default=UNSET, - alias="displayName", - description="The name of the user, suitable for display to end-users", + 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`.", ) - name: ScimV2OrganizationsOrgUsersPostBodyPropName = Field() - emails: List[ScimV2OrganizationsOrgUsersPostBodyPropEmailsItems] = Field( - min_length=1, description="user emails" + private: Missing[bool] = Field( + default=UNSET, + description="Either `true` to create a new private repository or `false` to create a new public one.", ) - 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) +model_rebuild(ReposTemplateOwnerTemplateRepoGeneratePostBody) -__all__ = ( - "ScimV2OrganizationsOrgUsersPostBody", - "ScimV2OrganizationsOrgUsersPostBodyPropName", - "ScimV2OrganizationsOrgUsersPostBodyPropEmailsItems", -) +__all__ = ("ReposTemplateOwnerTemplateRepoGeneratePostBody",) 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 587281d49..883fe1eea 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1128.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1128.py @@ -18,30 +18,30 @@ from githubkit.compat import GitHubModel, model_rebuild -class ScimV2OrganizationsOrgUsersScimUserIdPutBody(GitHubModel): - """ScimV2OrganizationsOrgUsersScimUserIdPutBody""" +class ScimV2OrganizationsOrgUsersPostBody(GitHubModel): + """ScimV2OrganizationsOrgUsersPostBody""" - schemas: Missing[List[str]] = Field(default=UNSET) + 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, 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) - 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, description="user emails" - ) -class ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName(GitHubModel): - """ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName +class ScimV2OrganizationsOrgUsersPostBodyPropName(GitHubModel): + """ScimV2OrganizationsOrgUsersPostBodyPropName Examples: {'givenName': 'Jane', 'familyName': 'User'} @@ -52,20 +52,20 @@ class ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName(GitHubModel): formatted: Missing[str] = Field(default=UNSET) -class ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems(GitHubModel): - """ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems""" +class ScimV2OrganizationsOrgUsersPostBodyPropEmailsItems(GitHubModel): + """ScimV2OrganizationsOrgUsersPostBodyPropEmailsItems""" - type: Missing[str] = Field(default=UNSET) value: str = Field() primary: Missing[bool] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) -model_rebuild(ScimV2OrganizationsOrgUsersScimUserIdPutBody) -model_rebuild(ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName) -model_rebuild(ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems) +model_rebuild(ScimV2OrganizationsOrgUsersPostBody) +model_rebuild(ScimV2OrganizationsOrgUsersPostBodyPropName) +model_rebuild(ScimV2OrganizationsOrgUsersPostBodyPropEmailsItems) __all__ = ( - "ScimV2OrganizationsOrgUsersScimUserIdPutBody", - "ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName", - "ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems", + "ScimV2OrganizationsOrgUsersPostBody", + "ScimV2OrganizationsOrgUsersPostBodyPropName", + "ScimV2OrganizationsOrgUsersPostBodyPropEmailsItems", ) 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 bf89049c1..587281d49 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1129.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1129.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import List from pydantic import Field @@ -18,70 +18,54 @@ from githubkit.compat import GitHubModel, model_rebuild -class ScimV2OrganizationsOrgUsersScimUserIdPatchBody(GitHubModel): - """ScimV2OrganizationsOrgUsersScimUserIdPatchBody""" +class ScimV2OrganizationsOrgUsersScimUserIdPutBody(GitHubModel): + """ScimV2OrganizationsOrgUsersScimUserIdPutBody""" schemas: Missing[List[str]] = Field(default=UNSET) - operations: List[ - ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItems - ] = Field( - min_length=1, - alias="Operations", - description="Set of operations to be performed", + display_name: Missing[str] = Field( + default=UNSET, + 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, description="user emails" ) -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 ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName(GitHubModel): + """ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName -class ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0( - GitHubModel -): - """ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0""" + Examples: + {'givenName': 'Jane', 'familyName': 'User'} + """ - 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") + given_name: str = Field(alias="givenName") + family_name: str = Field(alias="familyName") + formatted: Missing[str] = Field(default=UNSET) -class ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1Items( - GitHubModel -): - """ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1 - Items - """ +class ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems(GitHubModel): + """ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems""" - value: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + value: str = Field() primary: Missing[bool] = Field(default=UNSET) -model_rebuild(ScimV2OrganizationsOrgUsersScimUserIdPatchBody) -model_rebuild(ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItems) -model_rebuild( - ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0 -) -model_rebuild( - ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1Items -) +model_rebuild(ScimV2OrganizationsOrgUsersScimUserIdPutBody) +model_rebuild(ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName) +model_rebuild(ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems) __all__ = ( - "ScimV2OrganizationsOrgUsersScimUserIdPatchBody", - "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItems", - "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0", - "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1Items", + "ScimV2OrganizationsOrgUsersScimUserIdPutBody", + "ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName", + "ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems", ) 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 ff25ca816..bf89049c1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1130.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1130.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field @@ -18,32 +18,70 @@ from githubkit.compat import GitHubModel, model_rebuild -class TeamsTeamIdPatchBody(GitHubModel): - """TeamsTeamIdPatchBody""" +class ScimV2OrganizationsOrgUsersScimUserIdPatchBody(GitHubModel): + """ScimV2OrganizationsOrgUsersScimUserIdPatchBody""" - 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"] + schemas: Missing[List[str]] = Field(default=UNSET) + operations: List[ + ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItems ] = 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="**Deprecated**. 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." + min_length=1, + alias="Operations", + description="Set of operations to be performed", ) -model_rebuild(TeamsTeamIdPatchBody) +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 +) -__all__ = ("TeamsTeamIdPatchBody",) +__all__ = ( + "ScimV2OrganizationsOrgUsersScimUserIdPatchBody", + "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItems", + "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0", + "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1Items", +) 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 9e0151a61..ff25ca816 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1131.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1131.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Union, Literal + from pydantic import Field from githubkit.utils import UNSET @@ -16,17 +18,32 @@ from githubkit.compat import GitHubModel, model_rebuild -class TeamsTeamIdDiscussionsPostBody(GitHubModel): - """TeamsTeamIdDiscussionsPostBody""" +class TeamsTeamIdPatchBody(GitHubModel): + """TeamsTeamIdPatchBody""" - title: str = Field(description="The discussion post's title.") - body: str = Field(description="The discussion post's body text.") - private: Missing[bool] = Field( + 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="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="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="**Deprecated**. 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(TeamsTeamIdDiscussionsPostBody) +model_rebuild(TeamsTeamIdPatchBody) -__all__ = ("TeamsTeamIdDiscussionsPostBody",) +__all__ = ("TeamsTeamIdPatchBody",) 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 8c9998ba6..9e0151a61 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1132.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1132.py @@ -16,17 +16,17 @@ from githubkit.compat import GitHubModel, model_rebuild -class TeamsTeamIdDiscussionsDiscussionNumberPatchBody(GitHubModel): - """TeamsTeamIdDiscussionsDiscussionNumberPatchBody""" - - 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." +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.", ) -model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberPatchBody) +model_rebuild(TeamsTeamIdDiscussionsPostBody) -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberPatchBody",) +__all__ = ("TeamsTeamIdDiscussionsPostBody",) 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 2333d1363..8c9998ba6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1133.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1133.py @@ -11,15 +11,22 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody(GitHubModel): - """TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody""" +class TeamsTeamIdDiscussionsDiscussionNumberPatchBody(GitHubModel): + """TeamsTeamIdDiscussionsDiscussionNumberPatchBody""" - body: str = Field(description="The discussion comment's body text.") + 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(TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody) +model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberPatchBody) -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody",) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberPatchBody",) 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 a44a260ff..2333d1363 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,12 @@ from githubkit.compat import GitHubModel, model_rebuild -class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody(GitHubModel): - """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" +class TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody(GitHubModel): + """TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody""" body: str = Field(description="The discussion comment's body text.") -model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody) +model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody) -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody",) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody",) 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 fae48df36..a44a260ff 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1135.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1135.py @@ -9,29 +9,17 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody( - GitHubModel -): - """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody""" +class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody(GitHubModel): + """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" - 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." - ) + body: str = Field(description="The discussion comment's body text.") -model_rebuild( - TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody -) +model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody) -__all__ = ( - "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody", -) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody",) 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 a1d80ad44..fae48df36 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1136.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1136.py @@ -16,16 +16,22 @@ from githubkit.compat import GitHubModel, model_rebuild -class TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody(GitHubModel): - """TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody""" +class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody( + GitHubModel +): + """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody""" 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." + 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(TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody) +model_rebuild( + TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody +) -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody",) +__all__ = ( + "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody", +) 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 913551bc8..a1d80ad44 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1137.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1137.py @@ -13,19 +13,19 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class TeamsTeamIdMembershipsUsernamePutBody(GitHubModel): - """TeamsTeamIdMembershipsUsernamePutBody""" +class TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody(GitHubModel): + """TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody""" - role: Missing[Literal["member", "maintainer"]] = Field( - default=UNSET, description="The role that this user should have in the team." + 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(TeamsTeamIdMembershipsUsernamePutBody) +model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody) -__all__ = ("TeamsTeamIdMembershipsUsernamePutBody",) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody",) 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 8aef0bc43..913551bc8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1138.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1138.py @@ -18,15 +18,14 @@ from githubkit.compat import GitHubModel, model_rebuild -class TeamsTeamIdProjectsProjectIdPutBody(GitHubModel): - """TeamsTeamIdProjectsProjectIdPutBody""" +class TeamsTeamIdMembershipsUsernamePutBody(GitHubModel): + """TeamsTeamIdMembershipsUsernamePutBody""" - 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).\"", + role: Missing[Literal["member", "maintainer"]] = Field( + default=UNSET, description="The role that this user should have in the team." ) -model_rebuild(TeamsTeamIdProjectsProjectIdPutBody) +model_rebuild(TeamsTeamIdMembershipsUsernamePutBody) -__all__ = ("TeamsTeamIdProjectsProjectIdPutBody",) +__all__ = ("TeamsTeamIdMembershipsUsernamePutBody",) 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 6162fd16b..8aef0bc43 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1139.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1139.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.utils import UNSET @@ -16,13 +18,15 @@ from githubkit.compat import GitHubModel, model_rebuild -class TeamsTeamIdProjectsProjectIdPutResponse403(GitHubModel): - """TeamsTeamIdProjectsProjectIdPutResponse403""" +class TeamsTeamIdProjectsProjectIdPutBody(GitHubModel): + """TeamsTeamIdProjectsProjectIdPutBody""" - message: Missing[str] = Field(default=UNSET) - documentation_url: 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(TeamsTeamIdProjectsProjectIdPutResponse403) +model_rebuild(TeamsTeamIdProjectsProjectIdPutBody) -__all__ = ("TeamsTeamIdProjectsProjectIdPutResponse403",) +__all__ = ("TeamsTeamIdProjectsProjectIdPutBody",) 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 90c3c572e..6162fd16b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1140.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1140.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.utils import UNSET @@ -18,15 +16,13 @@ from githubkit.compat import GitHubModel, model_rebuild -class TeamsTeamIdReposOwnerRepoPutBody(GitHubModel): - """TeamsTeamIdReposOwnerRepoPutBody""" +class TeamsTeamIdProjectsProjectIdPutResponse403(GitHubModel): + """TeamsTeamIdProjectsProjectIdPutResponse403""" - 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.", - ) + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) -model_rebuild(TeamsTeamIdReposOwnerRepoPutBody) +model_rebuild(TeamsTeamIdProjectsProjectIdPutResponse403) -__all__ = ("TeamsTeamIdReposOwnerRepoPutBody",) +__all__ = ("TeamsTeamIdProjectsProjectIdPutResponse403",) 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 b1a5f78f7..90c3c572e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1141.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1141.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List +from typing import Literal from pydantic import Field @@ -18,30 +18,15 @@ from githubkit.compat import GitHubModel, model_rebuild -class TeamsTeamIdTeamSyncGroupMappingsPatchBody(GitHubModel): - """TeamsTeamIdTeamSyncGroupMappingsPatchBody""" +class TeamsTeamIdReposOwnerRepoPutBody(GitHubModel): + """TeamsTeamIdReposOwnerRepoPutBody""" - 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." + 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.", ) - synced_at: Missing[str] = Field(default=UNSET) -class TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItems(GitHubModel): - """TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItems""" +model_rebuild(TeamsTeamIdReposOwnerRepoPutBody) - 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) - -__all__ = ( - "TeamsTeamIdTeamSyncGroupMappingsPatchBody", - "TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItems", -) +__all__ = ("TeamsTeamIdReposOwnerRepoPutBody",) 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 db0d2249c..b1a5f78f7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1142.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1142.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import List from pydantic import Field @@ -18,33 +18,30 @@ from githubkit.compat import GitHubModel, model_rebuild -class UserPatchBody(GitHubModel): - """UserPatchBody""" +class TeamsTeamIdTeamSyncGroupMappingsPatchBody(GitHubModel): + """TeamsTeamIdTeamSyncGroupMappingsPatchBody""" - 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." + 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) + + +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(UserPatchBody) +model_rebuild(TeamsTeamIdTeamSyncGroupMappingsPatchBody) +model_rebuild(TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItems) -__all__ = ("UserPatchBody",) +__all__ = ( + "TeamsTeamIdTeamSyncGroupMappingsPatchBody", + "TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItems", +) 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 288bb65e0..db0d2249c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1143.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1143.py @@ -9,22 +9,42 @@ from __future__ import annotations -from typing import List +from typing import Union from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0094 import Codespace - -class UserCodespacesGetResponse200(GitHubModel): - """UserCodespacesGetResponse200""" - - total_count: int = Field() - codespaces: List[Codespace] = Field() - - -model_rebuild(UserCodespacesGetResponse200) - -__all__ = ("UserCodespacesGetResponse200",) +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/ghec_v2022_11_28/models/group_1144.py b/githubkit/versions/ghec_v2022_11_28/models/group_1144.py index a33f8e1b9..288bb65e0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1144.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1144.py @@ -9,62 +9,22 @@ from __future__ import annotations -from typing import Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0094 import Codespace -class UserCodespacesPostBodyOneof0(GitHubModel): - """UserCodespacesPostBodyOneof0""" - 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 being deprecated.", - ) - 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).", - ) +class UserCodespacesGetResponse200(GitHubModel): + """UserCodespacesGetResponse200""" + total_count: int = Field() + codespaces: List[Codespace] = Field() -model_rebuild(UserCodespacesPostBodyOneof0) -__all__ = ("UserCodespacesPostBodyOneof0",) +model_rebuild(UserCodespacesGetResponse200) + +__all__ = ("UserCodespacesGetResponse200",) 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 b9b4defa0..a33f8e1b9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1145.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1145.py @@ -18,11 +18,13 @@ from githubkit.compat import GitHubModel, model_rebuild -class UserCodespacesPostBodyOneof1(GitHubModel): - """UserCodespacesPostBodyOneof1""" +class UserCodespacesPostBodyOneof0(GitHubModel): + """UserCodespacesPostBodyOneof0""" - pull_request: UserCodespacesPostBodyOneof1PropPullRequest = Field( - description="Pull request number for this codespace" + 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, @@ -32,6 +34,10 @@ class UserCodespacesPostBodyOneof1(GitHubModel): default=UNSET, description="The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is being deprecated.", ) + 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" ) @@ -39,6 +45,10 @@ class UserCodespacesPostBodyOneof1(GitHubModel): 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" ) @@ -46,22 +56,15 @@ class UserCodespacesPostBodyOneof1(GitHubModel): 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).", + ) -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(UserCodespacesPostBodyOneof0) -__all__ = ( - "UserCodespacesPostBodyOneof1", - "UserCodespacesPostBodyOneof1PropPullRequest", -) +__all__ = ("UserCodespacesPostBodyOneof0",) 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 5d7718128..b9b4defa0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1146.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1146.py @@ -9,46 +9,59 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal +from typing import Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class UserCodespacesSecretsGetResponse200(GitHubModel): - """UserCodespacesSecretsGetResponse200""" +class UserCodespacesPostBodyOneof1(GitHubModel): + """UserCodespacesPostBodyOneof1""" - total_count: int = Field() - secrets: List[CodespacesSecret] = Field() + 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 being deprecated.", + ) + 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 CodespacesSecret(GitHubModel): - """Codespaces Secret +class UserCodespacesPostBodyOneof1PropPullRequest(GitHubModel): + """UserCodespacesPostBodyOneof1PropPullRequest - Secrets for a GitHub Codespace. + Pull request number for this 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" - ) + pull_request_number: int = Field(description="Pull request number") + repository_id: int = Field(description="Repository id for this codespace") -model_rebuild(UserCodespacesSecretsGetResponse200) -model_rebuild(CodespacesSecret) +model_rebuild(UserCodespacesPostBodyOneof1) +model_rebuild(UserCodespacesPostBodyOneof1PropPullRequest) __all__ = ( - "UserCodespacesSecretsGetResponse200", - "CodespacesSecret", + "UserCodespacesPostBodyOneof1", + "UserCodespacesPostBodyOneof1PropPullRequest", ) 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 445f0ef66..5d7718128 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1147.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1147.py @@ -9,30 +9,46 @@ from __future__ import annotations -from typing import List, Union +from datetime import datetime +from typing import List, Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class UserCodespacesSecretsSecretNamePutBody(GitHubModel): - """UserCodespacesSecretsSecretNamePutBody""" +class UserCodespacesSecretsGetResponse200(GitHubModel): + """UserCodespacesSecretsGetResponse200""" - 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.", + 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" ) - 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.", + 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(UserCodespacesSecretsSecretNamePutBody) +model_rebuild(UserCodespacesSecretsGetResponse200) +model_rebuild(CodespacesSecret) -__all__ = ("UserCodespacesSecretsSecretNamePutBody",) +__all__ = ( + "UserCodespacesSecretsGetResponse200", + "CodespacesSecret", +) 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 b265a5ebe..445f0ef66 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1148.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1148.py @@ -9,22 +9,30 @@ from __future__ import annotations -from typing import List +from typing import List, Union from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0082 import MinimalRepository +class UserCodespacesSecretsSecretNamePutBody(GitHubModel): + """UserCodespacesSecretsSecretNamePutBody""" -class UserCodespacesSecretsSecretNameRepositoriesGetResponse200(GitHubModel): - """UserCodespacesSecretsSecretNameRepositoriesGetResponse200""" + 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.", + ) - total_count: int = Field() - repositories: List[MinimalRepository] = Field() +model_rebuild(UserCodespacesSecretsSecretNamePutBody) -model_rebuild(UserCodespacesSecretsSecretNameRepositoriesGetResponse200) - -__all__ = ("UserCodespacesSecretsSecretNameRepositoriesGetResponse200",) +__all__ = ("UserCodespacesSecretsSecretNamePutBody",) 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 054a6d61b..b265a5ebe 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1149.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1149.py @@ -15,15 +15,16 @@ from githubkit.compat import GitHubModel, model_rebuild +from .group_0082 import MinimalRepository -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." - ) +class UserCodespacesSecretsSecretNameRepositoriesGetResponse200(GitHubModel): + """UserCodespacesSecretsSecretNameRepositoriesGetResponse200""" + total_count: int = Field() + repositories: List[MinimalRepository] = Field() -model_rebuild(UserCodespacesSecretsSecretNameRepositoriesPutBody) -__all__ = ("UserCodespacesSecretsSecretNameRepositoriesPutBody",) +model_rebuild(UserCodespacesSecretsSecretNameRepositoriesGetResponse200) + +__all__ = ("UserCodespacesSecretsSecretNameRepositoriesGetResponse200",) 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 5edeb55cb..054a6d61b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1150.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1150.py @@ -13,26 +13,17 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class UserCodespacesCodespaceNamePatchBody(GitHubModel): - """UserCodespacesCodespaceNamePatchBody""" +class UserCodespacesSecretsSecretNameRepositoriesPutBody(GitHubModel): + """UserCodespacesSecretsSecretNameRepositoriesPutBody""" - 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.", + 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(UserCodespacesCodespaceNamePatchBody) +model_rebuild(UserCodespacesSecretsSecretNameRepositoriesPutBody) -__all__ = ("UserCodespacesCodespaceNamePatchBody",) +__all__ = ("UserCodespacesSecretsSecretNameRepositoriesPutBody",) 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 46c5c06b6..5edeb55cb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1151.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1151.py @@ -13,18 +13,26 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0093 import CodespaceMachine +class UserCodespacesCodespaceNamePatchBody(GitHubModel): + """UserCodespacesCodespaceNamePatchBody""" -class UserCodespacesCodespaceNameMachinesGetResponse200(GitHubModel): - """UserCodespacesCodespaceNameMachinesGetResponse200""" + 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.", + ) - total_count: int = Field() - machines: List[CodespaceMachine] = Field() +model_rebuild(UserCodespacesCodespaceNamePatchBody) -model_rebuild(UserCodespacesCodespaceNameMachinesGetResponse200) - -__all__ = ("UserCodespacesCodespaceNameMachinesGetResponse200",) +__all__ = ("UserCodespacesCodespaceNamePatchBody",) 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 574036b59..46c5c06b6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1152.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1152.py @@ -9,24 +9,22 @@ from __future__ import annotations +from typing import List + from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0093 import CodespaceMachine + -class UserCodespacesCodespaceNamePublishPostBody(GitHubModel): - """UserCodespacesCodespaceNamePublishPostBody""" +class UserCodespacesCodespaceNameMachinesGetResponse200(GitHubModel): + """UserCodespacesCodespaceNameMachinesGetResponse200""" - 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." - ) + total_count: int = Field() + machines: List[CodespaceMachine] = Field() -model_rebuild(UserCodespacesCodespaceNamePublishPostBody) +model_rebuild(UserCodespacesCodespaceNameMachinesGetResponse200) -__all__ = ("UserCodespacesCodespaceNamePublishPostBody",) +__all__ = ("UserCodespacesCodespaceNameMachinesGetResponse200",) 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 04c6a0578..574036b59 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1153.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1153.py @@ -9,21 +9,24 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class UserEmailVisibilityPatchBody(GitHubModel): - """UserEmailVisibilityPatchBody""" +class UserCodespacesCodespaceNamePublishPostBody(GitHubModel): + """UserCodespacesCodespaceNamePublishPostBody""" - visibility: Literal["public", "private"] = Field( - description="Denotes whether an email is publicly visible." + 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(UserEmailVisibilityPatchBody) +model_rebuild(UserCodespacesCodespaceNamePublishPostBody) -__all__ = ("UserEmailVisibilityPatchBody",) +__all__ = ("UserCodespacesCodespaceNamePublishPostBody",) 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 40687cc1f..04c6a0578 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1154.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1154.py @@ -9,25 +9,21 @@ from __future__ import annotations -from typing import List +from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class UserEmailsPostBodyOneof0(GitHubModel): - """UserEmailsPostBodyOneof0 +class UserEmailVisibilityPatchBody(GitHubModel): + """UserEmailVisibilityPatchBody""" - Examples: - {'emails': ['octocat@github.com', 'mona@github.com']} - """ - - emails: List[str] = Field( - 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." + visibility: Literal["public", "private"] = Field( + description="Denotes whether an email is publicly visible." ) -model_rebuild(UserEmailsPostBodyOneof0) +model_rebuild(UserEmailVisibilityPatchBody) -__all__ = ("UserEmailsPostBodyOneof0",) +__all__ = ("UserEmailVisibilityPatchBody",) 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 c2aace7bb..40687cc1f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1155.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1155.py @@ -16,23 +16,18 @@ from githubkit.compat import GitHubModel, model_rebuild -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 UserEmailsPostBodyOneof0(GitHubModel): + """UserEmailsPostBodyOneof0 Examples: {'emails': ['octocat@github.com', 'mona@github.com']} """ emails: List[str] = Field( - description="Email addresses associated with the GitHub user account." + 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(UserEmailsDeleteBodyOneof0) +model_rebuild(UserEmailsPostBodyOneof0) -__all__ = ("UserEmailsDeleteBodyOneof0",) +__all__ = ("UserEmailsPostBodyOneof0",) 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 f6a483044..c2aace7bb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1156.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1156.py @@ -9,22 +9,30 @@ from __future__ import annotations +from typing import List + from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class UserGpgKeysPostBody(GitHubModel): - """UserGpgKeysPostBody""" +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: + {'emails': ['octocat@github.com', 'mona@github.com']} + """ - name: Missing[str] = Field( - default=UNSET, description="A descriptive name for the new key." + emails: List[str] = Field( + description="Email addresses associated with the GitHub user account." ) - armored_public_key: str = Field(description="A GPG key in ASCII-armored format.") -model_rebuild(UserGpgKeysPostBody) +model_rebuild(UserEmailsDeleteBodyOneof0) -__all__ = ("UserGpgKeysPostBody",) +__all__ = ("UserEmailsDeleteBodyOneof0",) 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 50efae3c7..f6a483044 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1157.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1157.py @@ -9,22 +9,22 @@ from __future__ import annotations -from typing import List - from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0015 import Installation - -class UserInstallationsGetResponse200(GitHubModel): - """UserInstallationsGetResponse200""" +class UserGpgKeysPostBody(GitHubModel): + """UserGpgKeysPostBody""" - total_count: int = Field() - installations: List[Installation] = Field() + 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(UserInstallationsGetResponse200) +model_rebuild(UserGpgKeysPostBody) -__all__ = ("UserInstallationsGetResponse200",) +__all__ = ("UserGpgKeysPostBody",) 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 462d4423d..50efae3c7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1158.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1158.py @@ -13,21 +13,18 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0017 import Repository +from .group_0015 import Installation -class UserInstallationsInstallationIdRepositoriesGetResponse200(GitHubModel): - """UserInstallationsInstallationIdRepositoriesGetResponse200""" +class UserInstallationsGetResponse200(GitHubModel): + """UserInstallationsGetResponse200""" total_count: int = Field() - repository_selection: Missing[str] = Field(default=UNSET) - repositories: List[Repository] = Field() + installations: List[Installation] = Field() -model_rebuild(UserInstallationsInstallationIdRepositoriesGetResponse200) +model_rebuild(UserInstallationsGetResponse200) -__all__ = ("UserInstallationsInstallationIdRepositoriesGetResponse200",) +__all__ = ("UserInstallationsGetResponse200",) 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 09cbf54e3..462d4423d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1159.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1159.py @@ -9,13 +9,25 @@ from __future__ import annotations +from typing import List + +from pydantic import Field + +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0017 import Repository + + +class UserInstallationsInstallationIdRepositoriesGetResponse200(GitHubModel): + """UserInstallationsInstallationIdRepositoriesGetResponse200""" -class UserInteractionLimitsGetResponse200Anyof1(GitHubModel): - """UserInteractionLimitsGetResponse200Anyof1""" + total_count: int = Field() + repository_selection: Missing[str] = Field(default=UNSET) + repositories: List[Repository] = Field() -model_rebuild(UserInteractionLimitsGetResponse200Anyof1) +model_rebuild(UserInstallationsInstallationIdRepositoriesGetResponse200) -__all__ = ("UserInteractionLimitsGetResponse200Anyof1",) +__all__ = ("UserInstallationsInstallationIdRepositoriesGetResponse200",) 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 c2167fcac..09cbf54e3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1160.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1160.py @@ -9,25 +9,13 @@ from __future__ import annotations -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -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 UserInteractionLimitsGetResponse200Anyof1(GitHubModel): + """UserInteractionLimitsGetResponse200Anyof1""" -model_rebuild(UserKeysPostBody) +model_rebuild(UserInteractionLimitsGetResponse200Anyof1) -__all__ = ("UserKeysPostBody",) +__all__ = ("UserInteractionLimitsGetResponse200Anyof1",) 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 9b771b5c3..c2167fcac 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1161.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1161.py @@ -9,21 +9,25 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class UserMembershipsOrgsOrgPatchBody(GitHubModel): - """UserMembershipsOrgsOrgPatchBody""" +class UserKeysPostBody(GitHubModel): + """UserKeysPostBody""" - state: Literal["active"] = Field( - description='The state that the membership should be in. Only `"active"` will be accepted.' + 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(UserMembershipsOrgsOrgPatchBody) +model_rebuild(UserKeysPostBody) -__all__ = ("UserMembershipsOrgsOrgPatchBody",) +__all__ = ("UserKeysPostBody",) 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 994900d2d..9b771b5c3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1162.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1162.py @@ -9,51 +9,21 @@ from __future__ import annotations -from typing import List, Literal +from typing import Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class UserMigrationsPostBody(GitHubModel): - """UserMigrationsPostBody""" +class UserMembershipsOrgsOrgPatchBody(GitHubModel): + """UserMembershipsOrgsOrgPatchBody""" - lock_repositories: Missing[bool] = Field( - default=UNSET, - description="Lock the repositories being migrated at the start of the migration", + state: Literal["active"] = Field( + description='The state that the membership should be in. Only `"active"` will be accepted.' ) - 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(UserMembershipsOrgsOrgPatchBody) -__all__ = ("UserMigrationsPostBody",) +__all__ = ("UserMembershipsOrgsOrgPatchBody",) 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 e16a36610..994900d2d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1163.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1163.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import List, Literal from pydantic import Field @@ -18,15 +18,42 @@ from githubkit.compat import GitHubModel, model_rebuild -class UserProjectsPostBody(GitHubModel): - """UserProjectsPostBody""" +class UserMigrationsPostBody(GitHubModel): + """UserMigrationsPostBody""" - name: str = Field(description="Name of the project") - body: Missing[Union[str, None]] = Field( - default=UNSET, description="Body of the project" + 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(UserProjectsPostBody) +model_rebuild(UserMigrationsPostBody) -__all__ = ("UserProjectsPostBody",) +__all__ = ("UserMigrationsPostBody",) 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 e0fe3d9d9..e16a36610 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1164.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1164.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field @@ -18,93 +18,15 @@ from githubkit.compat import GitHubModel, model_rebuild -class UserReposPostBody(GitHubModel): - """UserReposPostBody""" +class UserProjectsPostBody(GitHubModel): + """UserProjectsPostBody""" - 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="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.", - ) - 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.", + name: str = Field(description="Name of the project") + body: Missing[Union[str, None]] = Field( + default=UNSET, description="Body of the project" ) -model_rebuild(UserReposPostBody) +model_rebuild(UserProjectsPostBody) -__all__ = ("UserReposPostBody",) +__all__ = ("UserProjectsPostBody",) 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 3f7092ec4..e0fe3d9d9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1165.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1165.py @@ -9,26 +9,102 @@ from __future__ import annotations -from typing import List +from typing import Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class UserSocialAccountsPostBody(GitHubModel): - """UserSocialAccountsPostBody +class UserReposPostBody(GitHubModel): + """UserReposPostBody""" - 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: 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="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.", + ) + 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(UserSocialAccountsPostBody) +model_rebuild(UserReposPostBody) -__all__ = ("UserSocialAccountsPostBody",) +__all__ = ("UserReposPostBody",) 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 a8664c5d3..3f7092ec4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1166.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1166.py @@ -16,8 +16,8 @@ from githubkit.compat import GitHubModel, model_rebuild -class UserSocialAccountsDeleteBody(GitHubModel): - """UserSocialAccountsDeleteBody +class UserSocialAccountsPostBody(GitHubModel): + """UserSocialAccountsPostBody Examples: {'account_urls': ['https://www.linkedin.com/company/github/', @@ -25,10 +25,10 @@ class UserSocialAccountsDeleteBody(GitHubModel): """ account_urls: List[str] = Field( - description="Full URLs for the social media profiles to delete." + description="Full URLs for the social media profiles to add." ) -model_rebuild(UserSocialAccountsDeleteBody) +model_rebuild(UserSocialAccountsPostBody) -__all__ = ("UserSocialAccountsDeleteBody",) +__all__ = ("UserSocialAccountsPostBody",) 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 d882d76f5..a8664c5d3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1167.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1167.py @@ -9,25 +9,26 @@ from __future__ import annotations +from typing import List + from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class UserSshSigningKeysPostBody(GitHubModel): - """UserSshSigningKeysPostBody""" +class UserSocialAccountsDeleteBody(GitHubModel): + """UserSocialAccountsDeleteBody - 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)."', + 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(UserSshSigningKeysPostBody) +model_rebuild(UserSocialAccountsDeleteBody) -__all__ = ("UserSshSigningKeysPostBody",) +__all__ = ("UserSocialAccountsDeleteBody",) 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 669461bb2..d882d76f5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1168.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1168.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import List, Union - from pydantic import Field from githubkit.utils import UNSET @@ -18,166 +16,18 @@ from githubkit.compat import GitHubModel, model_rebuild -class UsersUsernameAttestationsSubjectDigestGetResponse200(GitHubModel): - """UsersUsernameAttestationsSubjectDigestGetResponse200""" - - attestations: Missing[ - List[UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems] - ] = Field(default=UNSET) - - -class UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems( - GitHubModel -): - """UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems""" - - bundle: Missing[SigstoreBundle0] = Field( - default=UNSET, title="Sigstore Bundle v0.1", description="Sigstore Bundle v0.1" - ) - repository_id: Missing[int] = Field(default=UNSET) - - -class SigstoreBundle0(GitHubModel): - """Sigstore Bundle v0.1 - - Sigstore Bundle v0.1 - """ - - media_type: Missing[str] = Field(default=UNSET, alias="mediaType") - verification_material: Missing[SigstoreBundle0PropVerificationMaterial] = Field( - default=UNSET, alias="verificationMaterial" - ) - dsse_envelope: Missing[SigstoreBundle0PropDsseEnvelope] = Field( - default=UNSET, alias="dsseEnvelope" - ) - - -class SigstoreBundle0PropDsseEnvelope(GitHubModel): - """SigstoreBundle0PropDsseEnvelope""" - - payload: Missing[str] = Field(default=UNSET) - payload_type: Missing[str] = Field(default=UNSET, alias="payloadType") - signatures: Missing[List[SigstoreBundle0PropDsseEnvelopePropSignaturesItems]] = ( - Field(default=UNSET) - ) - - -class SigstoreBundle0PropDsseEnvelopePropSignaturesItems(GitHubModel): - """SigstoreBundle0PropDsseEnvelopePropSignaturesItems""" - - sig: Missing[str] = Field(default=UNSET) - keyid: Missing[str] = Field(default=UNSET) - +class UserSshSigningKeysPostBody(GitHubModel): + """UserSshSigningKeysPostBody""" -class SigstoreBundle0PropVerificationMaterial(GitHubModel): - """SigstoreBundle0PropVerificationMaterial""" - - x_509_certificate_chain: Missing[ - SigstoreBundle0PropVerificationMaterialPropX509CertificateChain - ] = Field(default=UNSET, alias="x509CertificateChain") - tlog_entries: Missing[ - List[SigstoreBundle0PropVerificationMaterialPropTlogEntriesItems] - ] = Field(default=UNSET, alias="tlogEntries") - timestamp_verification_data: Missing[Union[str, None]] = Field( - default=UNSET, alias="timestampVerificationData" - ) - - -class SigstoreBundle0PropVerificationMaterialPropX509CertificateChain(GitHubModel): - """SigstoreBundle0PropVerificationMaterialPropX509CertificateChain""" - - certificates: Missing[ - List[ - SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItems - ] - ] = Field(default=UNSET) - - -class SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItems( - GitHubModel -): - """SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesI - tems - """ - - raw_bytes: Missing[str] = Field(default=UNSET, alias="rawBytes") - - -class SigstoreBundle0PropVerificationMaterialPropTlogEntriesItems(GitHubModel): - """SigstoreBundle0PropVerificationMaterialPropTlogEntriesItems""" - - log_index: Missing[str] = Field(default=UNSET, alias="logIndex") - log_id: Missing[ - SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogId - ] = Field(default=UNSET, alias="logId") - kind_version: Missing[ - SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersion - ] = Field(default=UNSET, alias="kindVersion") - integrated_time: Missing[str] = Field(default=UNSET, alias="integratedTime") - inclusion_promise: Missing[ - SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromise - ] = Field(default=UNSET, alias="inclusionPromise") - inclusion_proof: Missing[Union[str, None]] = Field( - default=UNSET, alias="inclusionProof" + title: Missing[str] = Field( + default=UNSET, description="A descriptive name for the new key." ) - canonicalized_body: Missing[str] = Field(default=UNSET, alias="canonicalizedBody") - - -class SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogId(GitHubModel): - """SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogId""" - - key_id: Missing[str] = Field(default=UNSET, alias="keyId") - - -class SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersion( - GitHubModel -): - """SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersion""" - - kind: Missing[str] = Field(default=UNSET) - version: Missing[str] = Field(default=UNSET) - - -class SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromise( - GitHubModel -): - """SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromise""" - - signed_entry_timestamp: Missing[str] = Field( - default=UNSET, alias="signedEntryTimestamp" + 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(UsersUsernameAttestationsSubjectDigestGetResponse200) -model_rebuild(UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems) -model_rebuild(SigstoreBundle0) -model_rebuild(SigstoreBundle0PropDsseEnvelope) -model_rebuild(SigstoreBundle0PropDsseEnvelopePropSignaturesItems) -model_rebuild(SigstoreBundle0PropVerificationMaterial) -model_rebuild(SigstoreBundle0PropVerificationMaterialPropX509CertificateChain) -model_rebuild( - SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItems -) -model_rebuild(SigstoreBundle0PropVerificationMaterialPropTlogEntriesItems) -model_rebuild(SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogId) -model_rebuild( - SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersion -) -model_rebuild( - SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromise -) +model_rebuild(UserSshSigningKeysPostBody) -__all__ = ( - "UsersUsernameAttestationsSubjectDigestGetResponse200", - "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems", - "SigstoreBundle0", - "SigstoreBundle0PropDsseEnvelope", - "SigstoreBundle0PropDsseEnvelopePropSignaturesItems", - "SigstoreBundle0PropVerificationMaterial", - "SigstoreBundle0PropVerificationMaterialPropX509CertificateChain", - "SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItems", - "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItems", - "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogId", - "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersion", - "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromise", -) +__all__ = ("UserSshSigningKeysPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1169.py b/githubkit/versions/ghec_v2022_11_28/models/group_1169.py new file mode 100644 index 000000000..669461bb2 --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1169.py @@ -0,0 +1,183 @@ +"""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 List, Union + +from pydantic import Field + +from githubkit.utils import UNSET +from githubkit.typing import Missing +from githubkit.compat import GitHubModel, model_rebuild + + +class UsersUsernameAttestationsSubjectDigestGetResponse200(GitHubModel): + """UsersUsernameAttestationsSubjectDigestGetResponse200""" + + attestations: Missing[ + List[UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems] + ] = Field(default=UNSET) + + +class UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems( + GitHubModel +): + """UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems""" + + bundle: Missing[SigstoreBundle0] = Field( + default=UNSET, title="Sigstore Bundle v0.1", description="Sigstore Bundle v0.1" + ) + repository_id: Missing[int] = Field(default=UNSET) + + +class SigstoreBundle0(GitHubModel): + """Sigstore Bundle v0.1 + + Sigstore Bundle v0.1 + """ + + media_type: Missing[str] = Field(default=UNSET, alias="mediaType") + verification_material: Missing[SigstoreBundle0PropVerificationMaterial] = Field( + default=UNSET, alias="verificationMaterial" + ) + dsse_envelope: Missing[SigstoreBundle0PropDsseEnvelope] = Field( + default=UNSET, alias="dsseEnvelope" + ) + + +class SigstoreBundle0PropDsseEnvelope(GitHubModel): + """SigstoreBundle0PropDsseEnvelope""" + + payload: Missing[str] = Field(default=UNSET) + payload_type: Missing[str] = Field(default=UNSET, alias="payloadType") + signatures: Missing[List[SigstoreBundle0PropDsseEnvelopePropSignaturesItems]] = ( + Field(default=UNSET) + ) + + +class SigstoreBundle0PropDsseEnvelopePropSignaturesItems(GitHubModel): + """SigstoreBundle0PropDsseEnvelopePropSignaturesItems""" + + sig: Missing[str] = Field(default=UNSET) + keyid: Missing[str] = Field(default=UNSET) + + +class SigstoreBundle0PropVerificationMaterial(GitHubModel): + """SigstoreBundle0PropVerificationMaterial""" + + x_509_certificate_chain: Missing[ + SigstoreBundle0PropVerificationMaterialPropX509CertificateChain + ] = Field(default=UNSET, alias="x509CertificateChain") + tlog_entries: Missing[ + List[SigstoreBundle0PropVerificationMaterialPropTlogEntriesItems] + ] = Field(default=UNSET, alias="tlogEntries") + timestamp_verification_data: Missing[Union[str, None]] = Field( + default=UNSET, alias="timestampVerificationData" + ) + + +class SigstoreBundle0PropVerificationMaterialPropX509CertificateChain(GitHubModel): + """SigstoreBundle0PropVerificationMaterialPropX509CertificateChain""" + + certificates: Missing[ + List[ + SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItems + ] + ] = Field(default=UNSET) + + +class SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItems( + GitHubModel +): + """SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesI + tems + """ + + raw_bytes: Missing[str] = Field(default=UNSET, alias="rawBytes") + + +class SigstoreBundle0PropVerificationMaterialPropTlogEntriesItems(GitHubModel): + """SigstoreBundle0PropVerificationMaterialPropTlogEntriesItems""" + + log_index: Missing[str] = Field(default=UNSET, alias="logIndex") + log_id: Missing[ + SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogId + ] = Field(default=UNSET, alias="logId") + kind_version: Missing[ + SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersion + ] = Field(default=UNSET, alias="kindVersion") + integrated_time: Missing[str] = Field(default=UNSET, alias="integratedTime") + inclusion_promise: Missing[ + SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromise + ] = Field(default=UNSET, alias="inclusionPromise") + inclusion_proof: Missing[Union[str, None]] = Field( + default=UNSET, alias="inclusionProof" + ) + canonicalized_body: Missing[str] = Field(default=UNSET, alias="canonicalizedBody") + + +class SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogId(GitHubModel): + """SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogId""" + + key_id: Missing[str] = Field(default=UNSET, alias="keyId") + + +class SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersion( + GitHubModel +): + """SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersion""" + + kind: Missing[str] = Field(default=UNSET) + version: Missing[str] = Field(default=UNSET) + + +class SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromise( + GitHubModel +): + """SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromise""" + + signed_entry_timestamp: Missing[str] = Field( + default=UNSET, alias="signedEntryTimestamp" + ) + + +model_rebuild(UsersUsernameAttestationsSubjectDigestGetResponse200) +model_rebuild(UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems) +model_rebuild(SigstoreBundle0) +model_rebuild(SigstoreBundle0PropDsseEnvelope) +model_rebuild(SigstoreBundle0PropDsseEnvelopePropSignaturesItems) +model_rebuild(SigstoreBundle0PropVerificationMaterial) +model_rebuild(SigstoreBundle0PropVerificationMaterialPropX509CertificateChain) +model_rebuild( + SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItems +) +model_rebuild(SigstoreBundle0PropVerificationMaterialPropTlogEntriesItems) +model_rebuild(SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogId) +model_rebuild( + SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersion +) +model_rebuild( + SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromise +) + +__all__ = ( + "UsersUsernameAttestationsSubjectDigestGetResponse200", + "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems", + "SigstoreBundle0", + "SigstoreBundle0PropDsseEnvelope", + "SigstoreBundle0PropDsseEnvelopePropSignaturesItems", + "SigstoreBundle0PropVerificationMaterial", + "SigstoreBundle0PropVerificationMaterialPropX509CertificateChain", + "SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItems", + "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItems", + "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogId", + "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersion", + "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromise", +) diff --git a/githubkit/versions/ghec_v2022_11_28/rest/actions.py b/githubkit/versions/ghec_v2022_11_28/rest/actions.py index b1495dcba..ef6f76720 100644 --- a/githubkit/versions/ghec_v2022_11_28/rest/actions.py +++ b/githubkit/versions/ghec_v2022_11_28/rest/actions.py @@ -14,7 +14,7 @@ from pydantic import BaseModel -from githubkit.typing import Missing +from githubkit.typing import Missing, UnsetType from githubkit.utils import UNSET, exclude_unset from githubkit.compat import model_dump, type_validate_python @@ -197,7 +197,7 @@ def set_actions_oidc_custom_issuer_policy_for_enterprise( self, enterprise: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, include_enterprise_slug: Missing[bool] = UNSET, ) -> Response: ... @@ -246,7 +246,7 @@ async def async_set_actions_oidc_custom_issuer_policy_for_enterprise( self, enterprise: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, include_enterprise_slug: Missing[bool] = UNSET, ) -> Response: ... @@ -337,7 +337,7 @@ def set_github_actions_default_workflow_permissions_enterprise( self, enterprise: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, default_workflow_permissions: Missing[Literal["read", "write"]] = UNSET, can_approve_pull_request_reviews: Missing[bool] = UNSET, @@ -387,7 +387,7 @@ async def async_set_github_actions_default_workflow_permissions_enterprise( self, enterprise: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, default_workflow_permissions: Missing[Literal["read", "write"]] = UNSET, can_approve_pull_request_reviews: Missing[bool] = UNSET, @@ -439,7 +439,7 @@ def generate_runner_jitconfig_for_enterprise( self, enterprise: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, runner_group_id: int, @@ -509,7 +509,7 @@ async def async_generate_runner_jitconfig_for_enterprise( self, enterprise: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, runner_group_id: int, @@ -719,7 +719,7 @@ def set_github_actions_permissions_organization( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, enabled_repositories: Literal["all", "none", "selected"], allowed_actions: Missing[Literal["all", "local_only", "selected"]] = UNSET, @@ -769,7 +769,7 @@ async def async_set_github_actions_permissions_organization( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, enabled_repositories: Literal["all", "none", "selected"], allowed_actions: Missing[Literal["all", "local_only", "selected"]] = UNSET, @@ -877,7 +877,7 @@ def set_selected_repositories_enabled_github_actions_organization( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, selected_repository_ids: List[int], ) -> Response: ... @@ -926,7 +926,7 @@ async def async_set_selected_repositories_enabled_github_actions_organization( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, selected_repository_ids: List[int], ) -> Response: ... @@ -1093,7 +1093,7 @@ def set_allowed_actions_organization( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, github_owned_allowed: Missing[bool] = UNSET, verified_allowed: Missing[bool] = UNSET, @@ -1144,7 +1144,7 @@ async def async_set_allowed_actions_organization( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, github_owned_allowed: Missing[bool] = UNSET, verified_allowed: Missing[bool] = UNSET, @@ -1237,7 +1237,7 @@ def set_github_actions_default_workflow_permissions_organization( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, default_workflow_permissions: Missing[Literal["read", "write"]] = UNSET, can_approve_pull_request_reviews: Missing[bool] = UNSET, @@ -1288,7 +1288,7 @@ async def async_set_github_actions_default_workflow_permissions_organization( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, default_workflow_permissions: Missing[Literal["read", "write"]] = UNSET, can_approve_pull_request_reviews: Missing[bool] = UNSET, @@ -1401,7 +1401,7 @@ def create_self_hosted_runner_group_for_org( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, visibility: Missing[Literal["selected", "all", "private"]] = UNSET, @@ -1457,7 +1457,7 @@ async def async_create_self_hosted_runner_group_for_org( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, visibility: Missing[Literal["selected", "all", "private"]] = UNSET, @@ -1597,7 +1597,7 @@ def update_self_hosted_runner_group_for_org( org: str, runner_group_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, visibility: Missing[Literal["selected", "all", "private"]] = UNSET, @@ -1659,7 +1659,7 @@ async def async_update_self_hosted_runner_group_for_org( org: str, runner_group_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, visibility: Missing[Literal["selected", "all", "private"]] = UNSET, @@ -1785,7 +1785,7 @@ def set_repo_access_to_self_hosted_runner_group_in_org( org: str, runner_group_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, selected_repository_ids: List[int], ) -> Response: ... @@ -1841,7 +1841,7 @@ async def async_set_repo_access_to_self_hosted_runner_group_in_org( org: str, runner_group_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, selected_repository_ids: List[int], ) -> Response: ... @@ -2041,7 +2041,7 @@ def set_self_hosted_runners_in_group_for_org( org: str, runner_group_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, runners: List[int], ) -> Response: ... @@ -2097,7 +2097,7 @@ async def async_set_self_hosted_runners_in_group_for_org( org: str, runner_group_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, runners: List[int], ) -> Response: ... @@ -2341,7 +2341,7 @@ def generate_runner_jitconfig_for_org( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, runner_group_id: int, @@ -2409,7 +2409,7 @@ async def async_generate_runner_jitconfig_for_org( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, runner_group_id: int, @@ -2699,7 +2699,7 @@ def set_custom_labels_for_self_hosted_runner_for_org( org: str, runner_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, labels: List[str], ) -> Response[EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200]: ... @@ -2761,7 +2761,7 @@ async def async_set_custom_labels_for_self_hosted_runner_for_org( org: str, runner_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, labels: List[str], ) -> Response[EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200]: ... @@ -2823,7 +2823,7 @@ def add_custom_labels_to_self_hosted_runner_for_org( org: str, runner_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, labels: List[str], ) -> Response[EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200]: ... @@ -2885,7 +2885,7 @@ async def async_add_custom_labels_to_self_hosted_runner_for_org( org: str, runner_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, labels: List[str], ) -> Response[EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200]: ... @@ -3209,7 +3209,7 @@ def create_or_update_org_secret( org: str, secret_name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, encrypted_value: Missing[str] = UNSET, key_id: Missing[str] = UNSET, @@ -3265,7 +3265,7 @@ async def async_create_or_update_org_secret( org: str, secret_name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, encrypted_value: Missing[str] = UNSET, key_id: Missing[str] = UNSET, @@ -3419,7 +3419,7 @@ def set_selected_repos_for_org_secret( org: str, secret_name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, selected_repository_ids: List[int], ) -> Response: ... @@ -3473,7 +3473,7 @@ async def async_set_selected_repos_for_org_secret( org: str, secret_name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, selected_repository_ids: List[int], ) -> Response: ... @@ -3667,7 +3667,7 @@ def create_org_variable( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, value: str, @@ -3720,7 +3720,7 @@ async def async_create_org_variable( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, value: str, @@ -3857,7 +3857,7 @@ def update_org_variable( org: str, name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, value: Missing[str] = UNSET, visibility: Missing[Literal["all", "private", "selected"]] = UNSET, @@ -3911,7 +3911,7 @@ async def async_update_org_variable( org: str, name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, value: Missing[str] = UNSET, visibility: Missing[Literal["all", "private", "selected"]] = UNSET, @@ -4027,7 +4027,7 @@ def set_selected_repos_for_org_variable( org: str, name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, selected_repository_ids: List[int], ) -> Response: ... @@ -4082,7 +4082,7 @@ async def async_set_selected_repos_for_org_variable( org: str, name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, selected_repository_ids: List[int], ) -> Response: ... @@ -4737,7 +4737,7 @@ def re_run_job_for_workflow_run( repo: str, job_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, enable_debug_logging: Missing[bool] = UNSET, ) -> Response[EmptyObject]: ... @@ -4808,7 +4808,7 @@ async def async_re_run_job_for_workflow_run( repo: str, job_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, enable_debug_logging: Missing[bool] = UNSET, ) -> Response[EmptyObject]: ... @@ -4927,7 +4927,7 @@ def set_custom_oidc_sub_claim_for_repo( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, use_default: bool, include_claim_keys: Missing[List[str]] = UNSET, @@ -4993,7 +4993,7 @@ async def async_set_custom_oidc_sub_claim_for_repo( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, use_default: bool, include_claim_keys: Missing[List[str]] = UNSET, @@ -5223,7 +5223,7 @@ def set_github_actions_permissions_repository( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, enabled: bool, allowed_actions: Missing[Literal["all", "local_only", "selected"]] = UNSET, @@ -5276,7 +5276,7 @@ async def async_set_github_actions_permissions_repository( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, enabled: bool, allowed_actions: Missing[Literal["all", "local_only", "selected"]] = UNSET, @@ -5373,7 +5373,7 @@ def set_workflow_access_to_repository( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, access_level: Literal["none", "user", "organization", "enterprise"], ) -> Response: ... @@ -5425,7 +5425,7 @@ async def async_set_workflow_access_to_repository( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, access_level: Literal["none", "user", "organization", "enterprise"], ) -> Response: ... @@ -5521,7 +5521,7 @@ def set_allowed_actions_repository( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, github_owned_allowed: Missing[bool] = UNSET, verified_allowed: Missing[bool] = UNSET, @@ -5575,7 +5575,7 @@ async def async_set_allowed_actions_repository( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, github_owned_allowed: Missing[bool] = UNSET, verified_allowed: Missing[bool] = UNSET, @@ -5673,7 +5673,7 @@ def set_github_actions_default_workflow_permissions_repository( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, default_workflow_permissions: Missing[Literal["read", "write"]] = UNSET, can_approve_pull_request_reviews: Missing[bool] = UNSET, @@ -5727,7 +5727,7 @@ async def async_set_github_actions_default_workflow_permissions_repository( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, default_workflow_permissions: Missing[Literal["read", "write"]] = UNSET, can_approve_pull_request_reviews: Missing[bool] = UNSET, @@ -5895,7 +5895,7 @@ def generate_runner_jitconfig_for_repo( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, runner_group_id: int, @@ -5968,7 +5968,7 @@ async def async_generate_runner_jitconfig_for_repo( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, runner_group_id: int, @@ -6273,7 +6273,7 @@ def set_custom_labels_for_self_hosted_runner_for_repo( repo: str, runner_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, labels: List[str], ) -> Response[EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200]: ... @@ -6340,7 +6340,7 @@ async def async_set_custom_labels_for_self_hosted_runner_for_repo( repo: str, runner_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, labels: List[str], ) -> Response[EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200]: ... @@ -6407,7 +6407,7 @@ def add_custom_labels_to_self_hosted_runner_for_repo( repo: str, runner_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, labels: List[str], ) -> Response[EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200]: ... @@ -6474,7 +6474,7 @@ async def async_add_custom_labels_to_self_hosted_runner_for_repo( repo: str, runner_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, labels: List[str], ) -> Response[EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200]: ... @@ -7293,7 +7293,7 @@ def review_custom_gates_for_run( repo: str, run_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, environment_name: str, comment: str, @@ -7306,7 +7306,7 @@ def review_custom_gates_for_run( repo: str, run_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, environment_name: str, state: Literal["approved", "rejected"], @@ -7377,7 +7377,7 @@ async def async_review_custom_gates_for_run( repo: str, run_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, environment_name: str, comment: str, @@ -7390,7 +7390,7 @@ async def async_review_custom_gates_for_run( repo: str, run_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, environment_name: str, state: Literal["approved", "rejected"], @@ -7719,7 +7719,7 @@ def review_pending_deployments_for_run( repo: str, run_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, environment_ids: List[int], state: Literal["approved", "rejected"], @@ -7786,7 +7786,7 @@ async def async_review_pending_deployments_for_run( repo: str, run_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, environment_ids: List[int], state: Literal["approved", "rejected"], @@ -7855,7 +7855,7 @@ def re_run_workflow( repo: str, run_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, enable_debug_logging: Missing[bool] = UNSET, ) -> Response[EmptyObject]: ... @@ -7919,7 +7919,7 @@ async def async_re_run_workflow( repo: str, run_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, enable_debug_logging: Missing[bool] = UNSET, ) -> Response[EmptyObject]: ... @@ -7983,7 +7983,7 @@ def re_run_workflow_failed_jobs( repo: str, run_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, enable_debug_logging: Missing[bool] = UNSET, ) -> Response[EmptyObject]: ... @@ -8050,7 +8050,7 @@ async def async_re_run_workflow_failed_jobs( repo: str, run_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, enable_debug_logging: Missing[bool] = UNSET, ) -> Response[EmptyObject]: ... @@ -8311,7 +8311,7 @@ def create_or_update_repo_secret( repo: str, secret_name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, encrypted_value: Missing[str] = UNSET, key_id: Missing[str] = UNSET, @@ -8368,7 +8368,7 @@ async def async_create_or_update_repo_secret( repo: str, secret_name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, encrypted_value: Missing[str] = UNSET, key_id: Missing[str] = UNSET, @@ -8523,7 +8523,7 @@ def create_repo_variable( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, value: str, @@ -8577,7 +8577,7 @@ async def async_create_repo_variable( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, value: str, @@ -8719,7 +8719,7 @@ def update_repo_variable( repo: str, name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, value: Missing[str] = UNSET, ) -> Response: ... @@ -8774,7 +8774,7 @@ async def async_update_repo_variable( repo: str, name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, value: Missing[str] = UNSET, ) -> Response: ... @@ -8975,7 +8975,7 @@ def create_workflow_dispatch( repo: str, workflow_id: Union[int, str], *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, ref: str, inputs: Missing[ @@ -9037,7 +9037,7 @@ async def async_create_workflow_dispatch( repo: str, workflow_id: Union[int, str], *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, ref: str, inputs: Missing[ @@ -9479,7 +9479,7 @@ def create_or_update_environment_secret( environment_name: str, secret_name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, encrypted_value: str, key_id: str, @@ -9546,7 +9546,7 @@ async def async_create_or_update_environment_secret( environment_name: str, secret_name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, encrypted_value: str, key_id: str, @@ -9719,7 +9719,7 @@ def create_environment_variable( repo: str, environment_name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, value: str, @@ -9783,7 +9783,7 @@ async def async_create_environment_variable( repo: str, environment_name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, value: str, @@ -9939,7 +9939,7 @@ def update_environment_variable( name: str, environment_name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, value: Missing[str] = UNSET, ) -> Response: ... @@ -10003,7 +10003,7 @@ async def async_update_environment_variable( name: str, environment_name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, value: Missing[str] = UNSET, ) -> Response: ... diff --git a/githubkit/versions/ghec_v2022_11_28/rest/activity.py b/githubkit/versions/ghec_v2022_11_28/rest/activity.py index 6bf572e5a..0f3a9d26f 100644 --- a/githubkit/versions/ghec_v2022_11_28/rest/activity.py +++ b/githubkit/versions/ghec_v2022_11_28/rest/activity.py @@ -14,7 +14,7 @@ from pydantic import BaseModel -from githubkit.typing import Missing +from githubkit.typing import Missing, UnsetType from githubkit.utils import UNSET, exclude_unset from githubkit.compat import model_dump, type_validate_python @@ -350,7 +350,7 @@ def mark_notifications_as_read( def mark_notifications_as_read( self, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, last_read_at: Missing[datetime] = UNSET, read: Missing[bool] = UNSET, @@ -406,7 +406,7 @@ async def async_mark_notifications_as_read( async def async_mark_notifications_as_read( self, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, last_read_at: Missing[datetime] = UNSET, read: Missing[bool] = UNSET, @@ -646,7 +646,7 @@ def set_thread_subscription( self, thread_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, ignored: Missing[bool] = UNSET, ) -> Response[ThreadSubscription]: ... @@ -706,7 +706,7 @@ async def async_set_thread_subscription( self, thread_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, ignored: Missing[bool] = UNSET, ) -> Response[ThreadSubscription]: ... @@ -1022,7 +1022,7 @@ def mark_repo_notifications_as_read( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, last_read_at: Missing[datetime] = UNSET, ) -> Response[ReposOwnerRepoNotificationsPutResponse202]: ... @@ -1078,7 +1078,7 @@ async def async_mark_repo_notifications_as_read( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, last_read_at: Missing[datetime] = UNSET, ) -> Response[ReposOwnerRepoNotificationsPutResponse202]: ... @@ -1318,7 +1318,7 @@ def set_repo_subscription( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, subscribed: Missing[bool] = UNSET, ignored: Missing[bool] = UNSET, @@ -1372,7 +1372,7 @@ async def async_set_repo_subscription( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, subscribed: Missing[bool] = UNSET, ignored: Missing[bool] = UNSET, diff --git a/githubkit/versions/ghec_v2022_11_28/rest/apps.py b/githubkit/versions/ghec_v2022_11_28/rest/apps.py index c3b2657c8..91553447d 100644 --- a/githubkit/versions/ghec_v2022_11_28/rest/apps.py +++ b/githubkit/versions/ghec_v2022_11_28/rest/apps.py @@ -14,7 +14,7 @@ from pydantic import BaseModel -from githubkit.typing import Missing +from githubkit.typing import Missing, UnsetType from githubkit.utils import UNSET, exclude_unset from githubkit.compat import model_dump, type_validate_python @@ -226,7 +226,7 @@ def update_webhook_config_for_app( def update_webhook_config_for_app( self, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, url: Missing[str] = UNSET, content_type: Missing[str] = UNSET, @@ -276,7 +276,7 @@ async def async_update_webhook_config_for_app( async def async_update_webhook_config_for_app( self, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, url: Missing[str] = UNSET, content_type: Missing[str] = UNSET, @@ -736,7 +736,7 @@ def create_installation_access_token( self, installation_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, repositories: Missing[List[str]] = UNSET, repository_ids: Missing[List[int]] = UNSET, @@ -801,7 +801,7 @@ async def async_create_installation_access_token( self, installation_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, repositories: Missing[List[str]] = UNSET, repository_ids: Missing[List[int]] = UNSET, @@ -958,7 +958,7 @@ def delete_authorization( self, client_id: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, access_token: str, ) -> Response: ... @@ -1010,7 +1010,7 @@ async def async_delete_authorization( self, client_id: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, access_token: str, ) -> Response: ... @@ -1062,7 +1062,7 @@ def check_token( self, client_id: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, access_token: str, ) -> Response[Authorization]: ... @@ -1121,7 +1121,7 @@ async def async_check_token( self, client_id: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, access_token: str, ) -> Response[Authorization]: ... @@ -1180,7 +1180,7 @@ def delete_token( self, client_id: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, access_token: str, ) -> Response: ... @@ -1232,7 +1232,7 @@ async def async_delete_token( self, client_id: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, access_token: str, ) -> Response: ... @@ -1284,7 +1284,7 @@ def reset_token( self, client_id: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, access_token: str, ) -> Response[Authorization]: ... @@ -1341,7 +1341,7 @@ async def async_reset_token( self, client_id: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, access_token: str, ) -> Response[Authorization]: ... @@ -1398,7 +1398,7 @@ def scope_token( self, client_id: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, access_token: str, target: Missing[str] = UNSET, @@ -1464,7 +1464,7 @@ async def async_scope_token( self, client_id: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, access_token: str, target: Missing[str] = UNSET, diff --git a/githubkit/versions/ghec_v2022_11_28/rest/billing.py b/githubkit/versions/ghec_v2022_11_28/rest/billing.py index fe6cd6eb2..e8c51bb5a 100644 --- a/githubkit/versions/ghec_v2022_11_28/rest/billing.py +++ b/githubkit/versions/ghec_v2022_11_28/rest/billing.py @@ -10,11 +10,11 @@ from __future__ import annotations from weakref import ref -from typing import TYPE_CHECKING, Dict, Literal, Optional, overload +from typing import TYPE_CHECKING, Dict, Optional, overload from pydantic import BaseModel -from githubkit.typing import Missing +from githubkit.typing import Missing, UnsetType from githubkit.utils import UNSET, exclude_unset from githubkit.compat import model_dump, type_validate_python @@ -237,7 +237,7 @@ def add_resource_to_cost_center( enterprise: str, cost_center_id: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, users: List[str], ) -> Response[ @@ -312,7 +312,7 @@ async def async_add_resource_to_cost_center( enterprise: str, cost_center_id: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, users: List[str], ) -> Response[ @@ -387,7 +387,7 @@ def remove_resource_from_cost_center( enterprise: str, cost_center_id: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, users: List[str], ) -> Response[ @@ -462,7 +462,7 @@ async def async_remove_resource_from_cost_center( enterprise: str, cost_center_id: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, users: List[str], ) -> Response[ diff --git a/githubkit/versions/ghec_v2022_11_28/rest/checks.py b/githubkit/versions/ghec_v2022_11_28/rest/checks.py index 726c8aa9b..3584ec8f2 100644 --- a/githubkit/versions/ghec_v2022_11_28/rest/checks.py +++ b/githubkit/versions/ghec_v2022_11_28/rest/checks.py @@ -14,7 +14,7 @@ from pydantic import BaseModel -from githubkit.typing import Missing +from githubkit.typing import Missing, UnsetType from githubkit.utils import UNSET, exclude_unset from githubkit.compat import model_dump, type_validate_python @@ -86,7 +86,7 @@ def create( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, head_sha: str, @@ -117,7 +117,7 @@ def create( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, head_sha: str, @@ -212,7 +212,7 @@ async def async_create( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, head_sha: str, @@ -243,7 +243,7 @@ async def async_create( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, head_sha: str, @@ -386,7 +386,7 @@ def update( repo: str, check_run_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: Missing[str] = UNSET, details_url: Missing[str] = UNSET, @@ -419,7 +419,7 @@ def update( repo: str, check_run_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: Missing[str] = UNSET, details_url: Missing[str] = UNSET, @@ -518,7 +518,7 @@ async def async_update( repo: str, check_run_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: Missing[str] = UNSET, details_url: Missing[str] = UNSET, @@ -551,7 +551,7 @@ async def async_update( repo: str, check_run_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: Missing[str] = UNSET, details_url: Missing[str] = UNSET, @@ -767,7 +767,7 @@ def create_suite( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, head_sha: str, ) -> Response[CheckSuite]: ... @@ -820,7 +820,7 @@ async def async_create_suite( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, head_sha: str, ) -> Response[CheckSuite]: ... @@ -873,7 +873,7 @@ def set_suites_preferences( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, auto_trigger_checks: Missing[ List[ @@ -933,7 +933,7 @@ async def async_set_suites_preferences( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, auto_trigger_checks: Missing[ List[ 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 116aa34ef..691d53999 100644 --- a/githubkit/versions/ghec_v2022_11_28/rest/code_scanning.py +++ b/githubkit/versions/ghec_v2022_11_28/rest/code_scanning.py @@ -14,7 +14,7 @@ from pydantic import BaseModel -from githubkit.typing import Missing +from githubkit.typing import Missing, UnsetType from githubkit.utils import UNSET, exclude_unset from githubkit.compat import model_dump, type_validate_python @@ -483,7 +483,7 @@ def update_alert( repo: str, alert_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, state: Literal["open", "dismissed"], dismissed_reason: Missing[ @@ -555,7 +555,7 @@ async def async_update_alert( repo: str, alert_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, state: Literal["open", "dismissed"], dismissed_reason: Missing[ @@ -1095,7 +1095,7 @@ def create_variant_analysis( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, language: Literal[ "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "swift" @@ -1112,7 +1112,7 @@ def create_variant_analysis( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, language: Literal[ "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "swift" @@ -1129,7 +1129,7 @@ def create_variant_analysis( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, language: Literal[ "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "swift" @@ -1219,7 +1219,7 @@ async def async_create_variant_analysis( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, language: Literal[ "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "swift" @@ -1236,7 +1236,7 @@ async def async_create_variant_analysis( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, language: Literal[ "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "swift" @@ -1253,7 +1253,7 @@ async def async_create_variant_analysis( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, language: Literal[ "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "swift" @@ -1529,7 +1529,7 @@ def update_default_setup( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, state: Missing[Literal["configured", "not-configured"]] = UNSET, query_suite: Missing[Literal["default", "extended"]] = UNSET, @@ -1608,7 +1608,7 @@ async def async_update_default_setup( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, state: Missing[Literal["configured", "not-configured"]] = UNSET, query_suite: Missing[Literal["default", "extended"]] = UNSET, @@ -1687,7 +1687,7 @@ def upload_sarif( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, commit_sha: str, ref: str, @@ -1756,7 +1756,7 @@ async def async_upload_sarif( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, commit_sha: str, ref: str, diff --git a/githubkit/versions/ghec_v2022_11_28/rest/code_security.py b/githubkit/versions/ghec_v2022_11_28/rest/code_security.py index 532c3b631..6cadc5382 100644 --- a/githubkit/versions/ghec_v2022_11_28/rest/code_security.py +++ b/githubkit/versions/ghec_v2022_11_28/rest/code_security.py @@ -14,7 +14,7 @@ from pydantic import BaseModel -from githubkit.typing import Missing +from githubkit.typing import Missing, UnsetType from githubkit.utils import UNSET, exclude_unset from githubkit.compat import model_dump, type_validate_python @@ -35,6 +35,7 @@ ) from ..types import ( OrgsOrgCodeSecurityConfigurationsPostBodyType, + OrgsOrgCodeSecurityConfigurationsDetachDeleteBodyType, OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyType, OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBodyType, OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType, @@ -148,7 +149,7 @@ def create_configuration( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, description: str, @@ -171,6 +172,7 @@ def create_configuration( private_vulnerability_reporting: Missing[ Literal["enabled", "disabled", "not_set"] ] = UNSET, + enforcement: Missing[Literal["enforced", "unenforced"]] = UNSET, ) -> Response[CodeSecurityConfiguration]: ... def create_configuration( @@ -221,7 +223,7 @@ async def async_create_configuration( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, description: str, @@ -244,6 +246,7 @@ async def async_create_configuration( private_vulnerability_reporting: Missing[ Literal["enabled", "disabled", "not_set"] ] = UNSET, + enforcement: Missing[Literal["enforced", "unenforced"]] = UNSET, ) -> Response[CodeSecurityConfiguration]: ... async def async_create_configuration( @@ -334,6 +337,126 @@ async def async_get_default_configurations( }, ) + @overload + def detach_configuration( + self, + org: str, + *, + headers: Optional[Dict[str, str]] = None, + data: OrgsOrgCodeSecurityConfigurationsDetachDeleteBodyType, + ) -> Response: ... + + @overload + def detach_configuration( + self, + org: str, + *, + data: UnsetType = UNSET, + headers: Optional[Dict[str, str]] = None, + selected_repository_ids: Missing[List[int]] = UNSET, + ) -> Response: ... + + def detach_configuration( + self, + org: str, + *, + headers: Optional[Dict[str, str]] = None, + data: Missing[OrgsOrgCodeSecurityConfigurationsDetachDeleteBodyType] = UNSET, + **kwargs, + ) -> Response: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations#detach-configurations-from-repositories""" + + from ..models import ( + BasicError, + OrgsOrgCodeSecurityConfigurationsDetachDeleteBody, + ) + + url = f"/orgs/{org}/code-security/configurations/detach" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + if not kwargs: + kwargs = UNSET + + json = kwargs if data is UNSET else data + json = type_validate_python( + OrgsOrgCodeSecurityConfigurationsDetachDeleteBody, json + ) + json = model_dump(json) if isinstance(json, BaseModel) else json + + return self._github.request( + "DELETE", + url, + json=exclude_unset(json), + headers=exclude_unset(headers), + error_models={ + "400": BasicError, + "403": BasicError, + "404": BasicError, + "409": BasicError, + }, + ) + + @overload + async def async_detach_configuration( + self, + org: str, + *, + headers: Optional[Dict[str, str]] = None, + data: OrgsOrgCodeSecurityConfigurationsDetachDeleteBodyType, + ) -> Response: ... + + @overload + async def async_detach_configuration( + self, + org: str, + *, + data: UnsetType = UNSET, + headers: Optional[Dict[str, str]] = None, + selected_repository_ids: Missing[List[int]] = UNSET, + ) -> Response: ... + + async def async_detach_configuration( + self, + org: str, + *, + headers: Optional[Dict[str, str]] = None, + data: Missing[OrgsOrgCodeSecurityConfigurationsDetachDeleteBodyType] = UNSET, + **kwargs, + ) -> Response: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations#detach-configurations-from-repositories""" + + from ..models import ( + BasicError, + OrgsOrgCodeSecurityConfigurationsDetachDeleteBody, + ) + + url = f"/orgs/{org}/code-security/configurations/detach" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + if not kwargs: + kwargs = UNSET + + json = kwargs if data is UNSET else data + json = type_validate_python( + OrgsOrgCodeSecurityConfigurationsDetachDeleteBody, json + ) + json = model_dump(json) if isinstance(json, BaseModel) else json + + return await self._github.arequest( + "DELETE", + url, + json=exclude_unset(json), + headers=exclude_unset(headers), + error_models={ + "400": BasicError, + "403": BasicError, + "404": BasicError, + "409": BasicError, + }, + ) + def get_configuration( self, org: str, @@ -456,7 +579,7 @@ def update_configuration( org: str, configuration_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: Missing[str] = UNSET, description: Missing[str] = UNSET, @@ -479,6 +602,7 @@ def update_configuration( private_vulnerability_reporting: Missing[ Literal["enabled", "disabled", "not_set"] ] = UNSET, + enforcement: Missing[Literal["enforced", "unenforced"]] = UNSET, ) -> Response[CodeSecurityConfiguration]: ... def update_configuration( @@ -536,7 +660,7 @@ async def async_update_configuration( org: str, configuration_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: Missing[str] = UNSET, description: Missing[str] = UNSET, @@ -559,6 +683,7 @@ async def async_update_configuration( private_vulnerability_reporting: Missing[ Literal["enabled", "disabled", "not_set"] ] = UNSET, + enforcement: Missing[Literal["enforced", "unenforced"]] = UNSET, ) -> Response[CodeSecurityConfiguration]: ... async def async_update_configuration( @@ -616,7 +741,7 @@ def attach_configuration( org: str, configuration_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, scope: Literal["all", "public", "private_or_internal", "selected"], selected_repository_ids: Missing[List[int]] = UNSET, @@ -677,7 +802,7 @@ async def async_attach_configuration( org: str, configuration_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, scope: Literal["all", "public", "private_or_internal", "selected"], selected_repository_ids: Missing[List[int]] = UNSET, @@ -740,7 +865,7 @@ def set_configuration_as_default( org: str, configuration_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, default_for_new_repos: Missing[ Literal["all", "none", "private_and_internal", "public"] @@ -813,7 +938,7 @@ async def async_set_configuration_as_default( org: str, configuration_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, default_for_new_repos: Missing[ Literal["all", "none", "private_and_internal", "public"] diff --git a/githubkit/versions/ghec_v2022_11_28/rest/codespaces.py b/githubkit/versions/ghec_v2022_11_28/rest/codespaces.py index ab01e1be5..db1894483 100644 --- a/githubkit/versions/ghec_v2022_11_28/rest/codespaces.py +++ b/githubkit/versions/ghec_v2022_11_28/rest/codespaces.py @@ -14,7 +14,7 @@ from pydantic import BaseModel -from githubkit.typing import Missing +from githubkit.typing import Missing, UnsetType from githubkit.utils import UNSET, exclude_unset from githubkit.compat import model_dump, type_validate_python @@ -170,7 +170,7 @@ def set_codespaces_access( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, visibility: Literal[ "disabled", @@ -230,7 +230,7 @@ async def async_set_codespaces_access( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, visibility: Literal[ "disabled", @@ -290,7 +290,7 @@ def set_codespaces_access_users( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, selected_usernames: List[str], ) -> Response: ... @@ -348,7 +348,7 @@ async def async_set_codespaces_access_users( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, selected_usernames: List[str], ) -> Response: ... @@ -406,7 +406,7 @@ def delete_codespaces_access_users( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, selected_usernames: List[str], ) -> Response: ... @@ -466,7 +466,7 @@ async def async_delete_codespaces_access_users( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, selected_usernames: List[str], ) -> Response: ... @@ -672,7 +672,7 @@ def create_or_update_org_secret( org: str, secret_name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, encrypted_value: Missing[str] = UNSET, key_id: Missing[str] = UNSET, @@ -737,7 +737,7 @@ async def async_create_or_update_org_secret( org: str, secret_name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, encrypted_value: Missing[str] = UNSET, key_id: Missing[str] = UNSET, @@ -922,7 +922,7 @@ def set_selected_repos_for_org_secret( org: str, secret_name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, selected_repository_ids: List[int], ) -> Response: ... @@ -984,7 +984,7 @@ async def async_set_selected_repos_for_org_secret( org: str, secret_name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, selected_repository_ids: List[int], ) -> Response: ... @@ -1424,7 +1424,7 @@ def create_with_repo_for_authenticated_user( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, ref: Missing[str] = UNSET, location: Missing[str] = UNSET, @@ -1503,7 +1503,7 @@ async def async_create_with_repo_for_authenticated_user( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, ref: Missing[str] = UNSET, location: Missing[str] = UNSET, @@ -2044,7 +2044,7 @@ def create_or_update_repo_secret( repo: str, secret_name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, encrypted_value: Missing[str] = UNSET, key_id: Missing[str] = UNSET, @@ -2106,7 +2106,7 @@ async def async_create_or_update_repo_secret( repo: str, secret_name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, encrypted_value: Missing[str] = UNSET, key_id: Missing[str] = UNSET, @@ -2208,7 +2208,7 @@ def create_with_pr_for_authenticated_user( repo: str, pull_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, location: Missing[str] = UNSET, geo: Missing[ @@ -2292,7 +2292,7 @@ async def async_create_with_pr_for_authenticated_user( repo: str, pull_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, location: Missing[str] = UNSET, geo: Missing[ @@ -2442,7 +2442,7 @@ def create_for_authenticated_user( def create_for_authenticated_user( self, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, repository_id: int, ref: Missing[str] = UNSET, @@ -2464,7 +2464,7 @@ def create_for_authenticated_user( def create_for_authenticated_user( self, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, pull_request: UserCodespacesPostBodyOneof1PropPullRequestType, location: Missing[str] = UNSET, @@ -2537,7 +2537,7 @@ async def async_create_for_authenticated_user( async def async_create_for_authenticated_user( self, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, repository_id: int, ref: Missing[str] = UNSET, @@ -2559,7 +2559,7 @@ async def async_create_for_authenticated_user( async def async_create_for_authenticated_user( self, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, pull_request: UserCodespacesPostBodyOneof1PropPullRequestType, location: Missing[str] = UNSET, @@ -2772,7 +2772,7 @@ def create_or_update_secret_for_authenticated_user( self, secret_name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, encrypted_value: Missing[str] = UNSET, key_id: str, @@ -2833,7 +2833,7 @@ async def async_create_or_update_secret_for_authenticated_user( self, secret_name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, encrypted_value: Missing[str] = UNSET, key_id: str, @@ -2990,7 +2990,7 @@ def set_repositories_for_secret_for_authenticated_user( self, secret_name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, selected_repository_ids: List[int], ) -> Response: ... @@ -3050,7 +3050,7 @@ async def async_set_repositories_for_secret_for_authenticated_user( self, secret_name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, selected_repository_ids: List[int], ) -> Response: ... @@ -3332,7 +3332,7 @@ def update_for_authenticated_user( self, codespace_name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, machine: Missing[str] = UNSET, display_name: Missing[str] = UNSET, @@ -3389,7 +3389,7 @@ async def async_update_for_authenticated_user( self, codespace_name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, machine: Missing[str] = UNSET, display_name: Missing[str] = UNSET, @@ -3612,7 +3612,7 @@ def publish_for_authenticated_user( self, codespace_name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: Missing[str] = UNSET, private: Missing[bool] = UNSET, @@ -3674,7 +3674,7 @@ async def async_publish_for_authenticated_user( self, codespace_name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: Missing[str] = UNSET, private: Missing[bool] = UNSET, diff --git a/githubkit/versions/ghec_v2022_11_28/rest/copilot.py b/githubkit/versions/ghec_v2022_11_28/rest/copilot.py index fc7308ab1..da511996f 100644 --- a/githubkit/versions/ghec_v2022_11_28/rest/copilot.py +++ b/githubkit/versions/ghec_v2022_11_28/rest/copilot.py @@ -10,11 +10,11 @@ from __future__ import annotations from weakref import ref -from typing import TYPE_CHECKING, Dict, Literal, Optional, overload +from typing import TYPE_CHECKING, Dict, Optional, overload from pydantic import BaseModel -from githubkit.typing import Missing +from githubkit.typing import Missing, UnsetType from githubkit.utils import UNSET, exclude_unset from githubkit.compat import model_dump, type_validate_python @@ -356,7 +356,7 @@ def add_copilot_seats_for_teams( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, selected_teams: List[str], ) -> Response[OrgsOrgCopilotBillingSelectedTeamsPostResponse201]: ... @@ -416,7 +416,7 @@ async def async_add_copilot_seats_for_teams( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, selected_teams: List[str], ) -> Response[OrgsOrgCopilotBillingSelectedTeamsPostResponse201]: ... @@ -476,7 +476,7 @@ def cancel_copilot_seat_assignment_for_teams( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, selected_teams: List[str], ) -> Response[OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200]: ... @@ -536,7 +536,7 @@ async def async_cancel_copilot_seat_assignment_for_teams( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, selected_teams: List[str], ) -> Response[OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200]: ... @@ -596,7 +596,7 @@ def add_copilot_seats_for_users( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, selected_usernames: List[str], ) -> Response[OrgsOrgCopilotBillingSelectedUsersPostResponse201]: ... @@ -656,7 +656,7 @@ async def async_add_copilot_seats_for_users( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, selected_usernames: List[str], ) -> Response[OrgsOrgCopilotBillingSelectedUsersPostResponse201]: ... @@ -716,7 +716,7 @@ def cancel_copilot_seat_assignment_for_users( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, selected_usernames: List[str], ) -> Response[OrgsOrgCopilotBillingSelectedUsersDeleteResponse200]: ... @@ -776,7 +776,7 @@ async def async_cancel_copilot_seat_assignment_for_users( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, selected_usernames: List[str], ) -> Response[OrgsOrgCopilotBillingSelectedUsersDeleteResponse200]: ... diff --git a/githubkit/versions/ghec_v2022_11_28/rest/dependabot.py b/githubkit/versions/ghec_v2022_11_28/rest/dependabot.py index 86c7e7ab2..784a1a4d5 100644 --- a/githubkit/versions/ghec_v2022_11_28/rest/dependabot.py +++ b/githubkit/versions/ghec_v2022_11_28/rest/dependabot.py @@ -14,7 +14,7 @@ from pydantic import BaseModel -from githubkit.typing import Missing +from githubkit.typing import Missing, UnsetType from githubkit.utils import UNSET, exclude_unset from githubkit.compat import model_dump, type_validate_python @@ -462,7 +462,7 @@ def create_or_update_org_secret( org: str, secret_name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, encrypted_value: Missing[str] = UNSET, key_id: Missing[str] = UNSET, @@ -518,7 +518,7 @@ async def async_create_or_update_org_secret( org: str, secret_name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, encrypted_value: Missing[str] = UNSET, key_id: Missing[str] = UNSET, @@ -676,7 +676,7 @@ def set_selected_repos_for_org_secret( org: str, secret_name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, selected_repository_ids: List[int], ) -> Response: ... @@ -732,7 +732,7 @@ async def async_set_selected_repos_for_org_secret( org: str, secret_name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, selected_repository_ids: List[int], ) -> Response: ... @@ -1060,7 +1060,7 @@ def update_alert( repo: str, alert_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, state: Literal["dismissed", "open"], dismissed_reason: Missing[ @@ -1140,7 +1140,7 @@ async def async_update_alert( repo: str, alert_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, state: Literal["dismissed", "open"], dismissed_reason: Missing[ @@ -1370,7 +1370,7 @@ def create_or_update_repo_secret( repo: str, secret_name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, encrypted_value: Missing[str] = UNSET, key_id: Missing[str] = UNSET, @@ -1432,7 +1432,7 @@ async def async_create_or_update_repo_secret( repo: str, secret_name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, encrypted_value: Missing[str] = UNSET, key_id: Missing[str] = UNSET, diff --git a/githubkit/versions/ghec_v2022_11_28/rest/dependency_graph.py b/githubkit/versions/ghec_v2022_11_28/rest/dependency_graph.py index 7e7a2c896..7f859f5a8 100644 --- a/githubkit/versions/ghec_v2022_11_28/rest/dependency_graph.py +++ b/githubkit/versions/ghec_v2022_11_28/rest/dependency_graph.py @@ -10,11 +10,11 @@ from __future__ import annotations from weakref import ref -from typing import TYPE_CHECKING, Dict, Literal, Optional, overload +from typing import TYPE_CHECKING, Dict, Optional, overload from pydantic import BaseModel -from githubkit.typing import Missing +from githubkit.typing import Missing, UnsetType from githubkit.utils import UNSET, exclude_unset from githubkit.compat import model_dump, type_validate_python @@ -194,7 +194,7 @@ def create_repository_snapshot( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, version: int, job: SnapshotPropJobType, @@ -257,7 +257,7 @@ async def async_create_repository_snapshot( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, version: int, job: SnapshotPropJobType, 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 b1f5bdae4..76ce8c4ed 100644 --- a/githubkit/versions/ghec_v2022_11_28/rest/enterprise_admin.py +++ b/githubkit/versions/ghec_v2022_11_28/rest/enterprise_admin.py @@ -14,7 +14,7 @@ from pydantic import BaseModel -from githubkit.typing import Missing +from githubkit.typing import Missing, UnsetType from githubkit.utils import UNSET, exclude_unset from githubkit.compat import model_dump, type_validate_python @@ -145,7 +145,7 @@ def set_github_actions_permissions_enterprise( self, enterprise: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, enabled_organizations: Literal["all", "none", "selected"], allowed_actions: Missing[Literal["all", "local_only", "selected"]] = UNSET, @@ -197,7 +197,7 @@ async def async_set_github_actions_permissions_enterprise( self, enterprise: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, enabled_organizations: Literal["all", "none", "selected"], allowed_actions: Missing[Literal["all", "local_only", "selected"]] = UNSET, @@ -311,7 +311,7 @@ def set_selected_organizations_enabled_github_actions_enterprise( self, enterprise: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, selected_organization_ids: List[int], ) -> Response: ... @@ -364,7 +364,7 @@ async def async_set_selected_organizations_enabled_github_actions_enterprise( self, enterprise: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, selected_organization_ids: List[int], ) -> Response: ... @@ -535,7 +535,7 @@ def set_allowed_actions_enterprise( self, enterprise: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, github_owned_allowed: Missing[bool] = UNSET, verified_allowed: Missing[bool] = UNSET, @@ -586,7 +586,7 @@ async def async_set_allowed_actions_enterprise( self, enterprise: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, github_owned_allowed: Missing[bool] = UNSET, verified_allowed: Missing[bool] = UNSET, @@ -699,7 +699,7 @@ def create_self_hosted_runner_group_for_enterprise( self, enterprise: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, visibility: Missing[Literal["selected", "all"]] = UNSET, @@ -760,7 +760,7 @@ async def async_create_self_hosted_runner_group_for_enterprise( self, enterprise: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, visibility: Missing[Literal["selected", "all"]] = UNSET, @@ -907,7 +907,7 @@ def update_self_hosted_runner_group_for_enterprise( enterprise: str, runner_group_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: Missing[str] = UNSET, visibility: Missing[Literal["selected", "all"]] = UNSET, @@ -973,7 +973,7 @@ async def async_update_self_hosted_runner_group_for_enterprise( enterprise: str, runner_group_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: Missing[str] = UNSET, visibility: Missing[Literal["selected", "all"]] = UNSET, @@ -1105,7 +1105,7 @@ def set_org_access_to_self_hosted_runner_group_in_enterprise( enterprise: str, runner_group_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, selected_organization_ids: List[int], ) -> Response: ... @@ -1164,7 +1164,7 @@ async def async_set_org_access_to_self_hosted_runner_group_in_enterprise( enterprise: str, runner_group_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, selected_organization_ids: List[int], ) -> Response: ... @@ -1375,7 +1375,7 @@ def set_self_hosted_runners_in_group_for_enterprise( enterprise: str, runner_group_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, runners: List[int], ) -> Response: ... @@ -1435,7 +1435,7 @@ async def async_set_self_hosted_runners_in_group_for_enterprise( enterprise: str, runner_group_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, runners: List[int], ) -> Response: ... @@ -1905,7 +1905,7 @@ def set_custom_labels_for_self_hosted_runner_for_enterprise( enterprise: str, runner_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, labels: List[str], ) -> Response[EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200]: ... @@ -1971,7 +1971,7 @@ async def async_set_custom_labels_for_self_hosted_runner_for_enterprise( enterprise: str, runner_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, labels: List[str], ) -> Response[EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200]: ... @@ -2037,7 +2037,7 @@ def add_custom_labels_to_self_hosted_runner_for_enterprise( enterprise: str, runner_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, labels: List[str], ) -> Response[EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200]: ... @@ -2103,7 +2103,7 @@ async def async_add_custom_labels_to_self_hosted_runner_for_enterprise( enterprise: str, runner_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, labels: List[str], ) -> Response[EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200]: ... @@ -2367,7 +2367,7 @@ def set_announcement_banner_for_enterprise( self, enterprise: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, announcement: Union[str, None], expires_at: Missing[Union[datetime, None]] = UNSET, @@ -2418,7 +2418,7 @@ async def async_set_announcement_banner_for_enterprise( self, enterprise: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, announcement: Union[str, None], expires_at: Missing[Union[datetime, None]] = UNSET, @@ -2601,7 +2601,7 @@ def patch_security_analysis_settings_for_enterprise( self, enterprise: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, advanced_security_enabled_for_new_repositories: Missing[bool] = UNSET, advanced_security_enabled_new_user_namespace_repos: Missing[bool] = UNSET, @@ -2669,7 +2669,7 @@ async def async_patch_security_analysis_settings_for_enterprise( self, enterprise: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, advanced_security_enabled_for_new_repositories: Missing[bool] = UNSET, advanced_security_enabled_new_user_namespace_repos: Missing[bool] = UNSET, @@ -2973,7 +2973,7 @@ def provision_enterprise_group( self, enterprise: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, schemas: List[Literal["urn:ietf:params:scim:schemas:core:2.0:Group"]], external_id: str, @@ -3031,7 +3031,7 @@ async def async_provision_enterprise_group( self, enterprise: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, schemas: List[Literal["urn:ietf:params:scim:schemas:core:2.0:Group"]], external_id: str, @@ -3159,7 +3159,7 @@ def set_information_for_provisioned_enterprise_group( scim_group_id: str, enterprise: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, schemas: List[Literal["urn:ietf:params:scim:schemas:core:2.0:Group"]], external_id: str, @@ -3221,7 +3221,7 @@ async def async_set_information_for_provisioned_enterprise_group( scim_group_id: str, enterprise: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, schemas: List[Literal["urn:ietf:params:scim:schemas:core:2.0:Group"]], external_id: str, @@ -3337,7 +3337,7 @@ def update_attribute_for_enterprise_group( scim_group_id: str, enterprise: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, operations: List[PatchSchemaPropOperationsItemsType], schemas: List[Literal["urn:ietf:params:scim:api:messages:2.0:PatchOp"]], @@ -3396,7 +3396,7 @@ async def async_update_attribute_for_enterprise_group( scim_group_id: str, enterprise: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, operations: List[PatchSchemaPropOperationsItemsType], schemas: List[Literal["urn:ietf:params:scim:api:messages:2.0:PatchOp"]], @@ -3525,7 +3525,7 @@ def provision_enterprise_user( self, enterprise: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, schemas: List[Literal["urn:ietf:params:scim:schemas:core:2.0:User"]], external_id: str, @@ -3587,7 +3587,7 @@ async def async_provision_enterprise_user( self, enterprise: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, schemas: List[Literal["urn:ietf:params:scim:schemas:core:2.0:User"]], external_id: str, @@ -3707,7 +3707,7 @@ def set_information_for_provisioned_enterprise_user( scim_user_id: str, enterprise: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, schemas: List[Literal["urn:ietf:params:scim:schemas:core:2.0:User"]], external_id: str, @@ -3773,7 +3773,7 @@ async def async_set_information_for_provisioned_enterprise_user( scim_user_id: str, enterprise: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, schemas: List[Literal["urn:ietf:params:scim:schemas:core:2.0:User"]], external_id: str, @@ -3893,7 +3893,7 @@ def update_attribute_for_enterprise_user( scim_user_id: str, enterprise: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, operations: List[PatchSchemaPropOperationsItemsType], schemas: List[Literal["urn:ietf:params:scim:api:messages:2.0:PatchOp"]], @@ -3958,7 +3958,7 @@ async def async_update_attribute_for_enterprise_user( scim_user_id: str, enterprise: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, operations: List[PatchSchemaPropOperationsItemsType], schemas: List[Literal["urn:ietf:params:scim:api:messages:2.0:PatchOp"]], diff --git a/githubkit/versions/ghec_v2022_11_28/rest/gists.py b/githubkit/versions/ghec_v2022_11_28/rest/gists.py index 50a0e6ef0..79ec3783a 100644 --- a/githubkit/versions/ghec_v2022_11_28/rest/gists.py +++ b/githubkit/versions/ghec_v2022_11_28/rest/gists.py @@ -14,7 +14,7 @@ from pydantic import BaseModel -from githubkit.typing import Missing +from githubkit.typing import Missing, UnsetType from githubkit.utils import UNSET, exclude_unset from githubkit.compat import model_dump, type_validate_python @@ -132,7 +132,7 @@ def create( def create( self, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, description: Missing[str] = UNSET, files: GistsPostBodyPropFilesType, @@ -183,7 +183,7 @@ async def async_create( async def async_create( self, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, description: Missing[str] = UNSET, files: GistsPostBodyPropFilesType, @@ -481,7 +481,7 @@ def update( self, gist_id: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, description: Missing[str] = UNSET, files: Missing[GistsGistIdPatchBodyPropFilesType] = UNSET, @@ -543,7 +543,7 @@ async def async_update( self, gist_id: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, description: Missing[str] = UNSET, files: Missing[GistsGistIdPatchBodyPropFilesType] = UNSET, @@ -675,7 +675,7 @@ def create_comment( self, gist_id: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, body: str, ) -> Response[GistComment]: ... @@ -729,7 +729,7 @@ async def async_create_comment( self, gist_id: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, body: str, ) -> Response[GistComment]: ... @@ -887,7 +887,7 @@ def update_comment( gist_id: str, comment_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, body: str, ) -> Response[GistComment]: ... @@ -947,7 +947,7 @@ async def async_update_comment( gist_id: str, comment_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, body: str, ) -> Response[GistComment]: ... diff --git a/githubkit/versions/ghec_v2022_11_28/rest/git.py b/githubkit/versions/ghec_v2022_11_28/rest/git.py index 33706d4ec..3b6fa6856 100644 --- a/githubkit/versions/ghec_v2022_11_28/rest/git.py +++ b/githubkit/versions/ghec_v2022_11_28/rest/git.py @@ -14,7 +14,7 @@ from pydantic import BaseModel -from githubkit.typing import Missing +from githubkit.typing import Missing, UnsetType from githubkit.utils import UNSET, exclude_unset from githubkit.compat import model_dump, type_validate_python @@ -72,7 +72,7 @@ def create_blob( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, content: str, encoding: Missing[str] = UNSET, @@ -137,7 +137,7 @@ async def async_create_blob( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, content: str, encoding: Missing[str] = UNSET, @@ -260,7 +260,7 @@ def create_commit( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, message: str, tree: str, @@ -328,7 +328,7 @@ async def async_create_commit( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, message: str, tree: str, @@ -560,7 +560,7 @@ def create_ref( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, ref: str, sha: str, @@ -623,7 +623,7 @@ async def async_create_ref( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, ref: str, sha: str, @@ -740,7 +740,7 @@ def update_ref( repo: str, ref: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, sha: str, force: Missing[bool] = UNSET, @@ -806,7 +806,7 @@ async def async_update_ref( repo: str, ref: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, sha: str, force: Missing[bool] = UNSET, @@ -870,7 +870,7 @@ def create_tag( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, tag: str, message: str, @@ -936,7 +936,7 @@ async def async_create_tag( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, tag: str, message: str, @@ -1056,7 +1056,7 @@ def create_tree( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, tree: List[ReposOwnerRepoGitTreesPostBodyPropTreeItemsType], base_tree: Missing[str] = UNSET, @@ -1121,7 +1121,7 @@ async def async_create_tree( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, tree: List[ReposOwnerRepoGitTreesPostBodyPropTreeItemsType], base_tree: Missing[str] = UNSET, diff --git a/githubkit/versions/ghec_v2022_11_28/rest/interactions.py b/githubkit/versions/ghec_v2022_11_28/rest/interactions.py index bd99b9e3b..c0c8495fc 100644 --- a/githubkit/versions/ghec_v2022_11_28/rest/interactions.py +++ b/githubkit/versions/ghec_v2022_11_28/rest/interactions.py @@ -14,7 +14,7 @@ from pydantic import BaseModel -from githubkit.typing import Missing +from githubkit.typing import Missing, UnsetType from githubkit.utils import UNSET, exclude_unset from githubkit.compat import model_dump, type_validate_python @@ -124,7 +124,7 @@ def set_restrictions_for_org( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, limit: Literal["existing_users", "contributors_only", "collaborators_only"], expiry: Missing[ @@ -180,7 +180,7 @@ async def async_set_restrictions_for_org( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, limit: Literal["existing_users", "contributors_only", "collaborators_only"], expiry: Missing[ @@ -344,7 +344,7 @@ def set_restrictions_for_repo( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, limit: Literal["existing_users", "contributors_only", "collaborators_only"], expiry: Missing[ @@ -401,7 +401,7 @@ async def async_set_restrictions_for_repo( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, limit: Literal["existing_users", "contributors_only", "collaborators_only"], expiry: Missing[ @@ -549,7 +549,7 @@ def set_restrictions_for_authenticated_user( def set_restrictions_for_authenticated_user( self, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, limit: Literal["existing_users", "contributors_only", "collaborators_only"], expiry: Missing[ @@ -599,7 +599,7 @@ async def async_set_restrictions_for_authenticated_user( async def async_set_restrictions_for_authenticated_user( self, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, limit: Literal["existing_users", "contributors_only", "collaborators_only"], expiry: Missing[ diff --git a/githubkit/versions/ghec_v2022_11_28/rest/issues.py b/githubkit/versions/ghec_v2022_11_28/rest/issues.py index 120aa52e0..df1fda4b4 100644 --- a/githubkit/versions/ghec_v2022_11_28/rest/issues.py +++ b/githubkit/versions/ghec_v2022_11_28/rest/issues.py @@ -15,7 +15,7 @@ from pydantic import Field, BaseModel -from githubkit.typing import Missing +from githubkit.typing import Missing, UnsetType from githubkit.utils import UNSET, exclude_unset from githubkit.compat import model_dump, type_validate_python @@ -552,7 +552,7 @@ def create( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, title: Union[str, int], body: Missing[str] = UNSET, @@ -626,7 +626,7 @@ async def async_create( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, title: Union[str, int], body: Missing[str] = UNSET, @@ -878,7 +878,7 @@ def update_comment( repo: str, comment_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, body: str, ) -> Response[IssueComment]: ... @@ -943,7 +943,7 @@ async def async_update_comment( repo: str, comment_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, body: str, ) -> Response[IssueComment]: ... @@ -1188,7 +1188,7 @@ def update( repo: str, issue_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, title: Missing[Union[str, int, None]] = UNSET, body: Missing[Union[str, None]] = UNSET, @@ -1273,7 +1273,7 @@ async def async_update( repo: str, issue_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, title: Missing[Union[str, int, None]] = UNSET, body: Missing[Union[str, None]] = UNSET, @@ -1358,7 +1358,7 @@ def add_assignees( repo: str, issue_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, assignees: Missing[List[str]] = UNSET, ) -> Response[Issue]: ... @@ -1416,7 +1416,7 @@ async def async_add_assignees( repo: str, issue_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, assignees: Missing[List[str]] = UNSET, ) -> Response[Issue]: ... @@ -1474,7 +1474,7 @@ def remove_assignees( repo: str, issue_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, assignees: Missing[List[str]] = UNSET, ) -> Response[Issue]: ... @@ -1532,7 +1532,7 @@ async def async_remove_assignees( repo: str, issue_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, assignees: Missing[List[str]] = UNSET, ) -> Response[Issue]: ... @@ -1720,7 +1720,7 @@ def create_comment( repo: str, issue_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, body: str, ) -> Response[IssueComment]: ... @@ -1789,7 +1789,7 @@ async def async_create_comment( repo: str, issue_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, body: str, ) -> Response[IssueComment]: ... @@ -2122,7 +2122,7 @@ def set_labels( repo: str, issue_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, labels: Missing[List[str]] = UNSET, ) -> Response[List[Label]]: ... @@ -2134,7 +2134,7 @@ def set_labels( repo: str, issue_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, labels: Missing[ List[ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType] @@ -2234,7 +2234,7 @@ async def async_set_labels( repo: str, issue_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, labels: Missing[List[str]] = UNSET, ) -> Response[List[Label]]: ... @@ -2246,7 +2246,7 @@ async def async_set_labels( repo: str, issue_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, labels: Missing[ List[ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType] @@ -2346,7 +2346,7 @@ def add_labels( repo: str, issue_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, labels: Missing[List[str]] = UNSET, ) -> Response[List[Label]]: ... @@ -2358,7 +2358,7 @@ def add_labels( repo: str, issue_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, labels: Missing[ List[ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType] @@ -2458,7 +2458,7 @@ async def async_add_labels( repo: str, issue_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, labels: Missing[List[str]] = UNSET, ) -> Response[List[Label]]: ... @@ -2470,7 +2470,7 @@ async def async_add_labels( repo: str, issue_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, labels: Missing[ List[ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType] @@ -2676,7 +2676,7 @@ def lock( repo: str, issue_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, lock_reason: Missing[ Literal["off-topic", "too heated", "resolved", "spam"] @@ -2751,7 +2751,7 @@ async def async_lock( repo: str, issue_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, lock_reason: Missing[ Literal["off-topic", "too heated", "resolved", "spam"] @@ -3170,7 +3170,7 @@ def create_label( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, color: Missing[str] = UNSET, @@ -3234,7 +3234,7 @@ async def async_create_label( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, color: Missing[str] = UNSET, @@ -3392,7 +3392,7 @@ def update_label( repo: str, name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, new_name: Missing[str] = UNSET, color: Missing[str] = UNSET, @@ -3450,7 +3450,7 @@ async def async_update_label( repo: str, name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, new_name: Missing[str] = UNSET, color: Missing[str] = UNSET, @@ -3588,7 +3588,7 @@ def create_milestone( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, title: str, state: Missing[Literal["open", "closed"]] = UNSET, @@ -3653,7 +3653,7 @@ async def async_create_milestone( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, title: str, state: Missing[Literal["open", "closed"]] = UNSET, @@ -3822,7 +3822,7 @@ def update_milestone( repo: str, milestone_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, title: Missing[str] = UNSET, state: Missing[Literal["open", "closed"]] = UNSET, @@ -3883,7 +3883,7 @@ async def async_update_milestone( repo: str, milestone_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, title: Missing[str] = UNSET, state: Missing[Literal["open", "closed"]] = UNSET, diff --git a/githubkit/versions/ghec_v2022_11_28/rest/markdown.py b/githubkit/versions/ghec_v2022_11_28/rest/markdown.py index 15684cf02..9f7a28fb8 100644 --- a/githubkit/versions/ghec_v2022_11_28/rest/markdown.py +++ b/githubkit/versions/ghec_v2022_11_28/rest/markdown.py @@ -14,7 +14,7 @@ from pydantic import BaseModel -from githubkit.typing import Missing +from githubkit.typing import Missing, UnsetType from githubkit.utils import UNSET, exclude_unset from githubkit.compat import model_dump, type_validate_python @@ -53,7 +53,7 @@ def render( def render( self, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, text: str, mode: Missing[Literal["markdown", "gfm"]] = UNSET, @@ -99,7 +99,7 @@ async def async_render( async def async_render( self, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, text: str, mode: Missing[Literal["markdown", "gfm"]] = UNSET, diff --git a/githubkit/versions/ghec_v2022_11_28/rest/migrations.py b/githubkit/versions/ghec_v2022_11_28/rest/migrations.py index d7b1f9654..9d8d7155a 100644 --- a/githubkit/versions/ghec_v2022_11_28/rest/migrations.py +++ b/githubkit/versions/ghec_v2022_11_28/rest/migrations.py @@ -14,7 +14,7 @@ from pydantic import BaseModel -from githubkit.typing import Missing +from githubkit.typing import Missing, UnsetType from githubkit.utils import UNSET, exclude_unset from githubkit.compat import model_dump, type_validate_python @@ -138,7 +138,7 @@ def start_for_org( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, repositories: List[str], lock_repositories: Missing[bool] = UNSET, @@ -205,7 +205,7 @@ async def async_start_for_org( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, repositories: List[str], lock_repositories: Missing[bool] = UNSET, @@ -604,7 +604,7 @@ def start_import( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, vcs_url: str, vcs: Missing[Literal["subversion", "git", "mercurial", "tfvc"]] = UNSET, @@ -671,7 +671,7 @@ async def async_start_import( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, vcs_url: str, vcs: Missing[Literal["subversion", "git", "mercurial", "tfvc"]] = UNSET, @@ -786,7 +786,7 @@ def update_import( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, vcs_username: Missing[str] = UNSET, vcs_password: Missing[str] = UNSET, @@ -847,7 +847,7 @@ async def async_update_import( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, vcs_username: Missing[str] = UNSET, vcs_password: Missing[str] = UNSET, @@ -978,7 +978,7 @@ def map_commit_author( repo: str, author_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, email: Missing[str] = UNSET, name: Missing[str] = UNSET, @@ -1045,7 +1045,7 @@ async def async_map_commit_author( repo: str, author_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, email: Missing[str] = UNSET, name: Missing[str] = UNSET, @@ -1164,7 +1164,7 @@ def set_lfs_preference( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, use_lfs: Literal["opt_in", "opt_out"], ) -> Response[Import]: ... @@ -1226,7 +1226,7 @@ async def async_set_lfs_preference( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, use_lfs: Literal["opt_in", "opt_out"], ) -> Response[Import]: ... @@ -1352,7 +1352,7 @@ def start_for_authenticated_user( def start_for_authenticated_user( self, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, lock_repositories: Missing[bool] = UNSET, exclude_metadata: Missing[bool] = UNSET, @@ -1417,7 +1417,7 @@ async def async_start_for_authenticated_user( async def async_start_for_authenticated_user( self, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, lock_repositories: Missing[bool] = UNSET, exclude_metadata: Missing[bool] = UNSET, diff --git a/githubkit/versions/ghec_v2022_11_28/rest/oidc.py b/githubkit/versions/ghec_v2022_11_28/rest/oidc.py index a549fa807..c18600cbe 100644 --- a/githubkit/versions/ghec_v2022_11_28/rest/oidc.py +++ b/githubkit/versions/ghec_v2022_11_28/rest/oidc.py @@ -10,11 +10,11 @@ from __future__ import annotations from weakref import ref -from typing import TYPE_CHECKING, Dict, Literal, Optional, overload +from typing import TYPE_CHECKING, Dict, Optional, overload from pydantic import BaseModel -from githubkit.typing import Missing +from githubkit.typing import Missing, UnsetType from githubkit.utils import UNSET, exclude_unset from githubkit.compat import model_dump, type_validate_python @@ -99,7 +99,7 @@ def update_oidc_custom_sub_template_for_org( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, include_claim_keys: List[str], ) -> Response[EmptyObject]: ... @@ -153,7 +153,7 @@ async def async_update_oidc_custom_sub_template_for_org( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, include_claim_keys: List[str], ) -> Response[EmptyObject]: ... diff --git a/githubkit/versions/ghec_v2022_11_28/rest/orgs.py b/githubkit/versions/ghec_v2022_11_28/rest/orgs.py index 81cca5832..d817029df 100644 --- a/githubkit/versions/ghec_v2022_11_28/rest/orgs.py +++ b/githubkit/versions/ghec_v2022_11_28/rest/orgs.py @@ -14,7 +14,7 @@ from pydantic import BaseModel -from githubkit.typing import Missing +from githubkit.typing import Missing, UnsetType from githubkit.utils import UNSET, exclude_unset from githubkit.compat import model_dump, type_validate_python @@ -325,7 +325,7 @@ def update( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, billing_email: Missing[str] = UNSET, company: Missing[str] = UNSET, @@ -422,7 +422,7 @@ async def async_update( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, billing_email: Missing[str] = UNSET, company: Missing[str] = UNSET, @@ -597,7 +597,7 @@ def set_announcement_banner_for_org( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, announcement: Union[str, None], expires_at: Missing[Union[datetime, None]] = UNSET, @@ -648,7 +648,7 @@ async def async_set_announcement_banner_for_org( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, announcement: Union[str, None], expires_at: Missing[Union[datetime, None]] = UNSET, @@ -1193,7 +1193,7 @@ def create_custom_repo_role( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, description: Missing[Union[str, None]] = UNSET, @@ -1255,7 +1255,7 @@ async def async_create_custom_repo_role( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, description: Missing[Union[str, None]] = UNSET, @@ -1407,7 +1407,7 @@ def update_custom_repo_role( org: str, role_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: Missing[str] = UNSET, description: Missing[Union[str, None]] = UNSET, @@ -1472,7 +1472,7 @@ async def async_update_custom_repo_role( org: str, role_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: Missing[str] = UNSET, description: Missing[Union[str, None]] = UNSET, @@ -1535,7 +1535,7 @@ def create_custom_role( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, description: Missing[Union[str, None]] = UNSET, @@ -1597,7 +1597,7 @@ async def async_create_custom_role( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, description: Missing[Union[str, None]] = UNSET, @@ -1749,7 +1749,7 @@ def update_custom_role( org: str, role_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: Missing[str] = UNSET, description: Missing[Union[str, None]] = UNSET, @@ -1814,7 +1814,7 @@ async def async_update_custom_role( org: str, role_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: Missing[str] = UNSET, description: Missing[Union[str, None]] = UNSET, @@ -2059,7 +2059,7 @@ def create_webhook( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, config: OrgsOrgHooksPostBodyPropConfigType, @@ -2116,7 +2116,7 @@ async def async_create_webhook( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, config: OrgsOrgHooksPostBodyPropConfigType, @@ -2273,7 +2273,7 @@ def update_webhook( org: str, hook_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, config: Missing[OrgsOrgHooksHookIdPatchBodyPropConfigType] = UNSET, events: Missing[List[str]] = UNSET, @@ -2338,7 +2338,7 @@ async def async_update_webhook( org: str, hook_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, config: Missing[OrgsOrgHooksHookIdPatchBodyPropConfigType] = UNSET, events: Missing[List[str]] = UNSET, @@ -2447,7 +2447,7 @@ def update_webhook_config_for_org( org: str, hook_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, url: Missing[str] = UNSET, content_type: Missing[str] = UNSET, @@ -2503,7 +2503,7 @@ async def async_update_webhook_config_for_org( org: str, hook_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, url: Missing[str] = UNSET, content_type: Missing[str] = UNSET, @@ -2939,7 +2939,7 @@ def create_invitation( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, invitee_id: Missing[int] = UNSET, email: Missing[str] = UNSET, @@ -3003,7 +3003,7 @@ async def async_create_invitation( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, invitee_id: Missing[int] = UNSET, email: Missing[str] = UNSET, @@ -3405,7 +3405,7 @@ def set_membership_for_user( org: str, username: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, role: Missing[Literal["admin", "member"]] = UNSET, ) -> Response[OrgMembership]: ... @@ -3467,7 +3467,7 @@ async def async_set_membership_for_user( org: str, username: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, role: Missing[Literal["admin", "member"]] = UNSET, ) -> Response[OrgMembership]: ... @@ -3697,7 +3697,7 @@ def create_custom_organization_role( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, description: Missing[str] = UNSET, @@ -3759,7 +3759,7 @@ async def async_create_custom_organization_role( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, description: Missing[str] = UNSET, @@ -4153,7 +4153,7 @@ def patch_custom_organization_role( org: str, role_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: Missing[str] = UNSET, description: Missing[str] = UNSET, @@ -4218,7 +4218,7 @@ async def async_patch_custom_organization_role( org: str, role_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: Missing[str] = UNSET, description: Missing[str] = UNSET, @@ -4481,7 +4481,7 @@ def convert_member_to_outside_collaborator( org: str, username: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, async_: Missing[bool] = UNSET, ) -> Response[OrgsOrgOutsideCollaboratorsUsernamePutResponse202]: ... @@ -4541,7 +4541,7 @@ async def async_convert_member_to_outside_collaborator( org: str, username: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, async_: Missing[bool] = UNSET, ) -> Response[OrgsOrgOutsideCollaboratorsUsernamePutResponse202]: ... @@ -4757,7 +4757,7 @@ def review_pat_grant_requests_in_bulk( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, pat_request_ids: Missing[List[int]] = UNSET, action: Literal["approve", "deny"], @@ -4820,7 +4820,7 @@ async def async_review_pat_grant_requests_in_bulk( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, pat_request_ids: Missing[List[int]] = UNSET, action: Literal["approve", "deny"], @@ -4885,7 +4885,7 @@ def review_pat_grant_request( org: str, pat_request_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, action: Literal["approve", "deny"], reason: Missing[Union[str, None]] = UNSET, @@ -4952,7 +4952,7 @@ async def async_review_pat_grant_request( org: str, pat_request_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, action: Literal["approve", "deny"], reason: Missing[Union[str, None]] = UNSET, @@ -5205,7 +5205,7 @@ def update_pat_accesses( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, action: Literal["revoke"], pat_ids: List[int], @@ -5267,7 +5267,7 @@ async def async_update_pat_accesses( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, action: Literal["revoke"], pat_ids: List[int], @@ -5331,7 +5331,7 @@ def update_pat_access( org: str, pat_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, action: Literal["revoke"], ) -> Response: ... @@ -5393,7 +5393,7 @@ async def async_update_pat_access( org: str, pat_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, action: Literal["revoke"], ) -> Response: ... @@ -5581,7 +5581,7 @@ def create_or_update_custom_properties( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, properties: List[OrgCustomPropertyType], ) -> Response[List[OrgCustomProperty]]: ... @@ -5641,7 +5641,7 @@ async def async_create_or_update_custom_properties( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, properties: List[OrgCustomPropertyType], ) -> Response[List[OrgCustomProperty]]: ... @@ -5755,7 +5755,7 @@ def create_or_update_custom_property( org: str, custom_property_name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, value_type: Literal["string", "single_select", "multi_select", "true_false"], required: Missing[bool] = UNSET, @@ -5822,7 +5822,7 @@ async def async_create_or_update_custom_property( org: str, custom_property_name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, value_type: Literal["string", "single_select", "multi_select", "true_false"], required: Missing[bool] = UNSET, @@ -6011,7 +6011,7 @@ def create_or_update_custom_properties_values_for_repos( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, repository_names: List[str], properties: List[CustomPropertyValueType], @@ -6070,7 +6070,7 @@ async def async_create_or_update_custom_properties_values_for_repos( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, repository_names: List[str], properties: List[CustomPropertyValueType], @@ -6505,7 +6505,7 @@ def enable_or_disable_security_product_on_all_org_repos( ], enablement: Literal["enable_all", "disable_all"], *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, query_suite: Missing[Literal["default", "extended"]] = UNSET, ) -> Response: ... @@ -6585,7 +6585,7 @@ async def async_enable_or_disable_security_product_on_all_org_repos( ], enablement: Literal["enable_all", "disable_all"], *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, query_suite: Missing[Literal["default", "extended"]] = UNSET, ) -> Response: ... @@ -6769,7 +6769,7 @@ def update_membership_for_authenticated_user( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, state: Literal["active"], ) -> Response[OrgMembership]: ... @@ -6829,7 +6829,7 @@ async def async_update_membership_for_authenticated_user( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, state: Literal["active"], ) -> Response[OrgMembership]: ... diff --git a/githubkit/versions/ghec_v2022_11_28/rest/projects.py b/githubkit/versions/ghec_v2022_11_28/rest/projects.py index db8fad2d0..d7f2993ae 100644 --- a/githubkit/versions/ghec_v2022_11_28/rest/projects.py +++ b/githubkit/versions/ghec_v2022_11_28/rest/projects.py @@ -14,7 +14,7 @@ from pydantic import BaseModel -from githubkit.typing import Missing +from githubkit.typing import Missing, UnsetType from githubkit.utils import UNSET, exclude_unset from githubkit.compat import model_dump, type_validate_python @@ -152,7 +152,7 @@ def create_for_org( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, body: Missing[str] = UNSET, @@ -215,7 +215,7 @@ async def async_create_for_org( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, body: Missing[str] = UNSET, @@ -380,7 +380,7 @@ def update_card( self, card_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, note: Missing[Union[str, None]] = UNSET, archived: Missing[bool] = UNSET, @@ -442,7 +442,7 @@ async def async_update_card( self, card_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, note: Missing[Union[str, None]] = UNSET, archived: Missing[bool] = UNSET, @@ -504,7 +504,7 @@ def move_card( self, card_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, position: str, column_id: Missing[int] = UNSET, @@ -568,7 +568,7 @@ async def async_move_card( self, card_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, position: str, column_id: Missing[int] = UNSET, @@ -732,7 +732,7 @@ def update_column( self, column_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, ) -> Response[ProjectColumn]: ... @@ -786,7 +786,7 @@ async def async_update_column( self, column_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, ) -> Response[ProjectColumn]: ... @@ -917,7 +917,7 @@ def create_card( self, column_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, note: Union[str, None], ) -> Response[ProjectCard]: ... @@ -927,7 +927,7 @@ def create_card( self, column_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, content_id: int, content_type: str, @@ -1008,7 +1008,7 @@ async def async_create_card( self, column_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, note: Union[str, None], ) -> Response[ProjectCard]: ... @@ -1018,7 +1018,7 @@ async def async_create_card( self, column_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, content_id: int, content_type: str, @@ -1096,7 +1096,7 @@ def move_column( self, column_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, position: str, ) -> Response[ProjectsColumnsColumnIdMovesPostResponse201]: ... @@ -1156,7 +1156,7 @@ async def async_move_column( self, column_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, position: str, ) -> Response[ProjectsColumnsColumnIdMovesPostResponse201]: ... @@ -1318,7 +1318,7 @@ def update( self, project_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: Missing[str] = UNSET, body: Missing[Union[str, None]] = UNSET, @@ -1386,7 +1386,7 @@ async def async_update( self, project_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: Missing[str] = UNSET, body: Missing[Union[str, None]] = UNSET, @@ -1536,7 +1536,7 @@ def add_collaborator( project_id: int, username: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, permission: Missing[Literal["read", "write", "admin"]] = UNSET, ) -> Response: ... @@ -1606,7 +1606,7 @@ async def async_add_collaborator( project_id: int, username: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, permission: Missing[Literal["read", "write", "admin"]] = UNSET, ) -> Response: ... @@ -1852,7 +1852,7 @@ def create_column( self, project_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, ) -> Response[ProjectColumn]: ... @@ -1912,7 +1912,7 @@ async def async_create_column( self, project_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, ) -> Response[ProjectColumn]: ... @@ -2056,7 +2056,7 @@ def create_for_repo( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, body: Missing[str] = UNSET, @@ -2122,7 +2122,7 @@ async def async_create_for_repo( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, body: Missing[str] = UNSET, @@ -2184,7 +2184,7 @@ def create_for_authenticated_user( def create_for_authenticated_user( self, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, body: Missing[Union[str, None]] = UNSET, @@ -2242,7 +2242,7 @@ async def async_create_for_authenticated_user( async def async_create_for_authenticated_user( self, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, body: Missing[Union[str, None]] = UNSET, diff --git a/githubkit/versions/ghec_v2022_11_28/rest/pulls.py b/githubkit/versions/ghec_v2022_11_28/rest/pulls.py index 7d55b9eee..c9eb426f4 100644 --- a/githubkit/versions/ghec_v2022_11_28/rest/pulls.py +++ b/githubkit/versions/ghec_v2022_11_28/rest/pulls.py @@ -14,7 +14,7 @@ from pydantic import BaseModel -from githubkit.typing import Missing +from githubkit.typing import Missing, UnsetType from githubkit.utils import UNSET, exclude_unset from githubkit.compat import model_dump, type_validate_python @@ -183,7 +183,7 @@ def create( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, title: Missing[str] = UNSET, head: str, @@ -252,7 +252,7 @@ async def async_create( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, title: Missing[str] = UNSET, head: str, @@ -501,7 +501,7 @@ def update_review_comment( repo: str, comment_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, body: str, ) -> Response[PullRequestReviewComment]: ... @@ -560,7 +560,7 @@ async def async_update_review_comment( repo: str, comment_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, body: str, ) -> Response[PullRequestReviewComment]: ... @@ -685,7 +685,7 @@ def update( repo: str, pull_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, title: Missing[str] = UNSET, body: Missing[str] = UNSET, @@ -754,7 +754,7 @@ async def async_update( repo: str, pull_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, title: Missing[str] = UNSET, body: Missing[str] = UNSET, @@ -901,7 +901,7 @@ def create_review_comment( repo: str, pull_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, body: str, commit_id: str, @@ -975,7 +975,7 @@ async def async_create_review_comment( repo: str, pull_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, body: str, commit_id: str, @@ -1051,7 +1051,7 @@ def create_reply_for_review_comment( pull_number: int, comment_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, body: str, ) -> Response[PullRequestReviewComment]: ... @@ -1121,7 +1121,7 @@ async def async_create_reply_for_review_comment( pull_number: int, comment_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, body: str, ) -> Response[PullRequestReviewComment]: ... @@ -1385,7 +1385,7 @@ def merge( repo: str, pull_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, commit_title: Missing[str] = UNSET, commit_message: Missing[str] = UNSET, @@ -1466,7 +1466,7 @@ async def async_merge( repo: str, pull_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, commit_title: Missing[str] = UNSET, commit_message: Missing[str] = UNSET, @@ -1596,7 +1596,7 @@ def request_reviewers( repo: str, pull_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, reviewers: List[str], team_reviewers: Missing[List[str]] = UNSET, @@ -1609,7 +1609,7 @@ def request_reviewers( repo: str, pull_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, reviewers: Missing[List[str]] = UNSET, team_reviewers: List[str], @@ -1692,7 +1692,7 @@ async def async_request_reviewers( repo: str, pull_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, reviewers: List[str], team_reviewers: Missing[List[str]] = UNSET, @@ -1705,7 +1705,7 @@ async def async_request_reviewers( repo: str, pull_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, reviewers: Missing[List[str]] = UNSET, team_reviewers: List[str], @@ -1783,7 +1783,7 @@ def remove_requested_reviewers( repo: str, pull_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, reviewers: List[str], team_reviewers: Missing[List[str]] = UNSET, @@ -1851,7 +1851,7 @@ async def async_remove_requested_reviewers( repo: str, pull_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, reviewers: List[str], team_reviewers: Missing[List[str]] = UNSET, @@ -1985,7 +1985,7 @@ def create_review( repo: str, pull_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, commit_id: Missing[str] = UNSET, body: Missing[str] = UNSET, @@ -2055,7 +2055,7 @@ async def async_create_review( repo: str, pull_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, commit_id: Missing[str] = UNSET, body: Missing[str] = UNSET, @@ -2181,7 +2181,7 @@ def update_review( pull_number: int, review_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, body: str, ) -> Response[PullRequestReview]: ... @@ -2249,7 +2249,7 @@ async def async_update_review( pull_number: int, review_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, body: str, ) -> Response[PullRequestReview]: ... @@ -2447,7 +2447,7 @@ def dismiss_review( pull_number: int, review_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, message: str, event: Missing[Literal["DISMISS"]] = UNSET, @@ -2522,7 +2522,7 @@ async def async_dismiss_review( pull_number: int, review_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, message: str, event: Missing[Literal["DISMISS"]] = UNSET, @@ -2597,7 +2597,7 @@ def submit_review( pull_number: int, review_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, body: Missing[str] = UNSET, event: Literal["APPROVE", "REQUEST_CHANGES", "COMMENT"], @@ -2671,7 +2671,7 @@ async def async_submit_review( pull_number: int, review_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, body: Missing[str] = UNSET, event: Literal["APPROVE", "REQUEST_CHANGES", "COMMENT"], @@ -2745,7 +2745,7 @@ def update_branch( repo: str, pull_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, expected_head_sha: Missing[str] = UNSET, ) -> Response[ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202]: ... @@ -2818,7 +2818,7 @@ async def async_update_branch( repo: str, pull_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, expected_head_sha: Missing[str] = UNSET, ) -> Response[ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202]: ... diff --git a/githubkit/versions/ghec_v2022_11_28/rest/reactions.py b/githubkit/versions/ghec_v2022_11_28/rest/reactions.py index 57751ca9a..9b6627654 100644 --- a/githubkit/versions/ghec_v2022_11_28/rest/reactions.py +++ b/githubkit/versions/ghec_v2022_11_28/rest/reactions.py @@ -14,7 +14,7 @@ from pydantic import BaseModel -from githubkit.typing import Missing +from githubkit.typing import Missing, UnsetType from githubkit.utils import UNSET, exclude_unset from githubkit.compat import model_dump, type_validate_python @@ -155,7 +155,7 @@ def create_for_team_discussion_comment_in_org( discussion_number: int, comment_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, content: Literal[ "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" @@ -224,7 +224,7 @@ async def async_create_for_team_discussion_comment_in_org( discussion_number: int, comment_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, content: Literal[ "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" @@ -413,7 +413,7 @@ def create_for_team_discussion_in_org( team_slug: str, discussion_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, content: Literal[ "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" @@ -478,7 +478,7 @@ async def async_create_for_team_discussion_in_org( team_slug: str, discussion_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, content: Literal[ "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" @@ -669,7 +669,7 @@ def create_for_commit_comment( repo: str, comment_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, content: Literal[ "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" @@ -736,7 +736,7 @@ async def async_create_for_commit_comment( repo: str, comment_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, content: Literal[ "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" @@ -929,7 +929,7 @@ def create_for_issue_comment( repo: str, comment_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, content: Literal[ "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" @@ -998,7 +998,7 @@ async def async_create_for_issue_comment( repo: str, comment_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, content: Literal[ "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" @@ -1195,7 +1195,7 @@ def create_for_issue( repo: str, issue_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, content: Literal[ "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" @@ -1262,7 +1262,7 @@ async def async_create_for_issue( repo: str, issue_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, content: Literal[ "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" @@ -1455,7 +1455,7 @@ def create_for_pull_request_review_comment( repo: str, comment_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, content: Literal[ "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" @@ -1524,7 +1524,7 @@ async def async_create_for_pull_request_review_comment( repo: str, comment_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, content: Literal[ "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" @@ -1719,7 +1719,7 @@ def create_for_release( repo: str, release_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, content: Literal["+1", "laugh", "heart", "hooray", "rocket", "eyes"], ) -> Response[Reaction]: ... @@ -1784,7 +1784,7 @@ async def async_create_for_release( repo: str, release_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, content: Literal["+1", "laugh", "heart", "hooray", "rocket", "eyes"], ) -> Response[Reaction]: ... @@ -1969,7 +1969,7 @@ def create_for_team_discussion_comment_legacy( discussion_number: int, comment_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, content: Literal[ "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" @@ -2035,7 +2035,7 @@ async def async_create_for_team_discussion_comment_legacy( discussion_number: int, comment_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, content: Literal[ "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" @@ -2175,7 +2175,7 @@ def create_for_team_discussion_legacy( team_id: int, discussion_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, content: Literal[ "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" @@ -2237,7 +2237,7 @@ async def async_create_for_team_discussion_legacy( team_id: int, discussion_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, content: Literal[ "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" diff --git a/githubkit/versions/ghec_v2022_11_28/rest/repos.py b/githubkit/versions/ghec_v2022_11_28/rest/repos.py index 973e7323e..b8beb80be 100644 --- a/githubkit/versions/ghec_v2022_11_28/rest/repos.py +++ b/githubkit/versions/ghec_v2022_11_28/rest/repos.py @@ -14,7 +14,7 @@ from pydantic import BaseModel -from githubkit.typing import Missing +from githubkit.typing import Missing, UnsetType from githubkit.utils import UNSET, exclude_unset from githubkit.compat import model_dump, type_validate_python @@ -344,7 +344,7 @@ def create_in_org( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, description: Missing[str] = UNSET, @@ -433,7 +433,7 @@ async def async_create_in_org( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, description: Missing[str] = UNSET, @@ -592,7 +592,7 @@ def create_org_ruleset( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, target: Missing[Literal["branch", "tag", "push"]] = UNSET, @@ -682,7 +682,7 @@ async def async_create_org_ruleset( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, target: Missing[Literal["branch", "tag", "push"]] = UNSET, @@ -964,7 +964,7 @@ def update_org_ruleset( org: str, ruleset_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: Missing[str] = UNSET, target: Missing[Literal["branch", "tag", "push"]] = UNSET, @@ -1061,7 +1061,7 @@ async def async_update_org_ruleset( org: str, ruleset_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: Missing[str] = UNSET, target: Missing[Literal["branch", "tag", "push"]] = UNSET, @@ -1310,7 +1310,7 @@ def update( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: Missing[str] = UNSET, description: Missing[str] = UNSET, @@ -1403,7 +1403,7 @@ async def async_update( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: Missing[str] = UNSET, description: Missing[str] = UNSET, @@ -1612,7 +1612,7 @@ def create_attestation( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, bundle: ReposOwnerRepoAttestationsPostBodyPropBundleType, ) -> Response[ReposOwnerRepoAttestationsPostResponse201]: ... @@ -1674,7 +1674,7 @@ async def async_create_attestation( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, bundle: ReposOwnerRepoAttestationsPostBodyPropBundleType, ) -> Response[ReposOwnerRepoAttestationsPostResponse201]: ... @@ -1850,7 +1850,7 @@ def create_autolink( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, key_prefix: str, url_template: str, @@ -1908,7 +1908,7 @@ async def async_create_autolink( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, key_prefix: str, url_template: str, @@ -2370,7 +2370,7 @@ def update_branch_protection( repo: str, branch: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, required_status_checks: Union[ ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksType, @@ -2454,7 +2454,7 @@ async def async_update_branch_protection( repo: str, branch: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, required_status_checks: Union[ ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksType, @@ -2828,7 +2828,7 @@ def update_pull_request_review_protection( repo: str, branch: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, dismissal_restrictions: Missing[ ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType @@ -2907,7 +2907,7 @@ async def async_update_pull_request_review_protection( repo: str, branch: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, dismissal_restrictions: Missing[ ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType @@ -3240,7 +3240,7 @@ def update_status_check_protection( repo: str, branch: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, strict: Missing[bool] = UNSET, contexts: Missing[List[str]] = UNSET, @@ -3319,7 +3319,7 @@ async def async_update_status_check_protection( repo: str, branch: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, strict: Missing[bool] = UNSET, contexts: Missing[List[str]] = UNSET, @@ -3457,7 +3457,7 @@ def set_status_check_contexts( repo: str, branch: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, contexts: List[str], ) -> Response[List[str]]: ... @@ -3539,7 +3539,7 @@ async def async_set_status_check_contexts( repo: str, branch: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, contexts: List[str], ) -> Response[List[str]]: ... @@ -3621,7 +3621,7 @@ def add_status_check_contexts( repo: str, branch: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, contexts: List[str], ) -> Response[List[str]]: ... @@ -3704,7 +3704,7 @@ async def async_add_status_check_contexts( repo: str, branch: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, contexts: List[str], ) -> Response[List[str]]: ... @@ -3787,7 +3787,7 @@ def remove_status_check_contexts( repo: str, branch: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, contexts: List[str], ) -> Response[List[str]]: ... @@ -3869,7 +3869,7 @@ async def async_remove_status_check_contexts( repo: str, branch: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, contexts: List[str], ) -> Response[List[str]]: ... @@ -4099,7 +4099,7 @@ def set_app_access_restrictions( repo: str, branch: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, apps: List[str], ) -> Response[List[Union[Integration, None]]]: ... @@ -4180,7 +4180,7 @@ async def async_set_app_access_restrictions( repo: str, branch: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, apps: List[str], ) -> Response[List[Union[Integration, None]]]: ... @@ -4261,7 +4261,7 @@ def add_app_access_restrictions( repo: str, branch: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, apps: List[str], ) -> Response[List[Union[Integration, None]]]: ... @@ -4342,7 +4342,7 @@ async def async_add_app_access_restrictions( repo: str, branch: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, apps: List[str], ) -> Response[List[Union[Integration, None]]]: ... @@ -4423,7 +4423,7 @@ def remove_app_access_restrictions( repo: str, branch: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, apps: List[str], ) -> Response[List[Union[Integration, None]]]: ... @@ -4504,7 +4504,7 @@ async def async_remove_app_access_restrictions( repo: str, branch: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, apps: List[str], ) -> Response[List[Union[Integration, None]]]: ... @@ -4641,7 +4641,7 @@ def set_team_access_restrictions( repo: str, branch: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, teams: List[str], ) -> Response[List[Team]]: ... @@ -4722,7 +4722,7 @@ async def async_set_team_access_restrictions( repo: str, branch: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, teams: List[str], ) -> Response[List[Team]]: ... @@ -4803,7 +4803,7 @@ def add_team_access_restrictions( repo: str, branch: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, teams: List[str], ) -> Response[List[Team]]: ... @@ -4884,7 +4884,7 @@ async def async_add_team_access_restrictions( repo: str, branch: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, teams: List[str], ) -> Response[List[Team]]: ... @@ -4965,7 +4965,7 @@ def remove_team_access_restrictions( repo: str, branch: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, teams: List[str], ) -> Response[List[Team]]: ... @@ -5046,7 +5046,7 @@ async def async_remove_team_access_restrictions( repo: str, branch: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, teams: List[str], ) -> Response[List[Team]]: ... @@ -5183,7 +5183,7 @@ def set_user_access_restrictions( repo: str, branch: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, users: List[str], ) -> Response[List[SimpleUser]]: ... @@ -5264,7 +5264,7 @@ async def async_set_user_access_restrictions( repo: str, branch: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, users: List[str], ) -> Response[List[SimpleUser]]: ... @@ -5345,7 +5345,7 @@ def add_user_access_restrictions( repo: str, branch: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, users: List[str], ) -> Response[List[SimpleUser]]: ... @@ -5426,7 +5426,7 @@ async def async_add_user_access_restrictions( repo: str, branch: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, users: List[str], ) -> Response[List[SimpleUser]]: ... @@ -5507,7 +5507,7 @@ def remove_user_access_restrictions( repo: str, branch: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, users: List[str], ) -> Response[List[SimpleUser]]: ... @@ -5588,7 +5588,7 @@ async def async_remove_user_access_restrictions( repo: str, branch: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, users: List[str], ) -> Response[List[SimpleUser]]: ... @@ -5664,7 +5664,7 @@ def rename_branch( repo: str, branch: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, new_name: str, ) -> Response[BranchWithProtection]: ... @@ -5730,7 +5730,7 @@ async def async_rename_branch( repo: str, branch: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, new_name: str, ) -> Response[BranchWithProtection]: ... @@ -5978,7 +5978,7 @@ def add_collaborator( repo: str, username: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, permission: Missing[str] = UNSET, ) -> Response[RepositoryInvitation]: ... @@ -6043,7 +6043,7 @@ async def async_add_collaborator( repo: str, username: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, permission: Missing[str] = UNSET, ) -> Response[RepositoryInvitation]: ... @@ -6378,7 +6378,7 @@ def update_commit_comment( repo: str, comment_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, body: str, ) -> Response[CommitComment]: ... @@ -6441,7 +6441,7 @@ async def async_update_commit_comment( repo: str, comment_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, body: str, ) -> Response[CommitComment]: ... @@ -6728,7 +6728,7 @@ def create_commit_comment( repo: str, commit_sha: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, body: str, path: Missing[str] = UNSET, @@ -6798,7 +6798,7 @@ async def async_create_commit_comment( repo: str, commit_sha: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, body: str, path: Missing[str] = UNSET, @@ -7384,7 +7384,7 @@ def create_or_update_file_contents( repo: str, path: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, message: str, content: str, @@ -7455,7 +7455,7 @@ async def async_create_or_update_file_contents( repo: str, path: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, message: str, content: str, @@ -7526,7 +7526,7 @@ def delete_file( repo: str, path: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, message: str, sha: str, @@ -7600,7 +7600,7 @@ async def async_delete_file( repo: str, path: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, message: str, sha: str, @@ -7828,7 +7828,7 @@ def create_deployment( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, ref: str, task: Missing[str] = UNSET, @@ -7898,7 +7898,7 @@ async def async_create_deployment( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, ref: str, task: Missing[str] = UNSET, @@ -8146,7 +8146,7 @@ def create_deployment_status( repo: str, deployment_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, state: Literal[ "error", @@ -8227,7 +8227,7 @@ async def async_create_deployment_status( repo: str, deployment_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, state: Literal[ "error", @@ -8360,7 +8360,7 @@ def create_dispatch_event( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, event_type: str, client_payload: Missing[ @@ -8423,7 +8423,7 @@ async def async_create_dispatch_event( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, event_type: str, client_payload: Missing[ @@ -8596,7 +8596,7 @@ def create_or_update_environment( repo: str, environment_name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, wait_timer: Missing[int] = UNSET, prevent_self_review: Missing[bool] = UNSET, @@ -8679,7 +8679,7 @@ async def async_create_or_update_environment( repo: str, environment_name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, wait_timer: Missing[int] = UNSET, prevent_self_review: Missing[bool] = UNSET, @@ -8870,7 +8870,7 @@ def create_deployment_branch_policy( repo: str, environment_name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, type: Missing[Literal["branch", "tag"]] = UNSET, @@ -8931,7 +8931,7 @@ async def async_create_deployment_branch_policy( repo: str, environment_name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, type: Missing[Literal["branch", "tag"]] = UNSET, @@ -9042,7 +9042,7 @@ def update_deployment_branch_policy( environment_name: str, branch_policy_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, ) -> Response[DeploymentBranchPolicy]: ... @@ -9101,7 +9101,7 @@ async def async_update_deployment_branch_policy( environment_name: str, branch_policy_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, ) -> Response[DeploymentBranchPolicy]: ... @@ -9254,7 +9254,7 @@ def create_deployment_protection_rule( repo: str, owner: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, integration_id: Missing[int] = UNSET, ) -> Response[DeploymentProtectionRule]: ... @@ -9318,7 +9318,7 @@ async def async_create_deployment_protection_rule( repo: str, owner: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, integration_id: Missing[int] = UNSET, ) -> Response[DeploymentProtectionRule]: ... @@ -9614,7 +9614,7 @@ def create_fork( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, organization: Missing[str] = UNSET, name: Missing[str] = UNSET, @@ -9682,7 +9682,7 @@ async def async_create_fork( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, organization: Missing[str] = UNSET, name: Missing[str] = UNSET, @@ -9820,7 +9820,7 @@ def create_webhook( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: Missing[str] = UNSET, config: Missing[ReposOwnerRepoHooksPostBodyPropConfigType] = UNSET, @@ -9888,7 +9888,7 @@ async def async_create_webhook( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: Missing[str] = UNSET, config: Missing[ReposOwnerRepoHooksPostBodyPropConfigType] = UNSET, @@ -10060,7 +10060,7 @@ def update_webhook( repo: str, hook_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, config: Missing[WebhookConfigType] = UNSET, events: Missing[List[str]] = UNSET, @@ -10129,7 +10129,7 @@ async def async_update_webhook( repo: str, hook_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, config: Missing[WebhookConfigType] = UNSET, events: Missing[List[str]] = UNSET, @@ -10244,7 +10244,7 @@ def update_webhook_config_for_repo( repo: str, hook_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, url: Missing[str] = UNSET, content_type: Missing[str] = UNSET, @@ -10303,7 +10303,7 @@ async def async_update_webhook_config_for_repo( repo: str, hook_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, url: Missing[str] = UNSET, content_type: Missing[str] = UNSET, @@ -10764,7 +10764,7 @@ def update_invitation( repo: str, invitation_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, permissions: Missing[ Literal["read", "write", "maintain", "triage", "admin"] @@ -10827,7 +10827,7 @@ async def async_update_invitation( repo: str, invitation_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, permissions: Missing[ Literal["read", "write", "maintain", "triage", "admin"] @@ -10952,7 +10952,7 @@ def create_deploy_key( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, title: Missing[str] = UNSET, key: str, @@ -11010,7 +11010,7 @@ async def async_create_deploy_key( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, title: Missing[str] = UNSET, key: str, @@ -11288,7 +11288,7 @@ def merge_upstream( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, branch: str, ) -> Response[MergedUpstream]: ... @@ -11342,7 +11342,7 @@ async def async_merge_upstream( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, branch: str, ) -> Response[MergedUpstream]: ... @@ -11396,7 +11396,7 @@ def merge( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, base: str, head: str, @@ -11460,7 +11460,7 @@ async def async_merge( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, base: str, head: str, @@ -11580,7 +11580,7 @@ def update_information_about_pages_site( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, cname: Missing[Union[str, None]] = UNSET, https_enforced: Missing[bool] = UNSET, @@ -11600,7 +11600,7 @@ def update_information_about_pages_site( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, cname: Missing[Union[str, None]] = UNSET, https_enforced: Missing[bool] = UNSET, @@ -11618,7 +11618,7 @@ def update_information_about_pages_site( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, cname: Union[str, None], https_enforced: Missing[bool] = UNSET, @@ -11638,7 +11638,7 @@ def update_information_about_pages_site( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, cname: Missing[Union[str, None]] = UNSET, https_enforced: Missing[bool] = UNSET, @@ -11658,7 +11658,7 @@ def update_information_about_pages_site( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, cname: Missing[Union[str, None]] = UNSET, https_enforced: bool, @@ -11757,7 +11757,7 @@ async def async_update_information_about_pages_site( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, cname: Missing[Union[str, None]] = UNSET, https_enforced: Missing[bool] = UNSET, @@ -11777,7 +11777,7 @@ async def async_update_information_about_pages_site( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, cname: Missing[Union[str, None]] = UNSET, https_enforced: Missing[bool] = UNSET, @@ -11795,7 +11795,7 @@ async def async_update_information_about_pages_site( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, cname: Union[str, None], https_enforced: Missing[bool] = UNSET, @@ -11815,7 +11815,7 @@ async def async_update_information_about_pages_site( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, cname: Missing[Union[str, None]] = UNSET, https_enforced: Missing[bool] = UNSET, @@ -11835,7 +11835,7 @@ async def async_update_information_about_pages_site( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, cname: Missing[Union[str, None]] = UNSET, https_enforced: bool, @@ -11933,7 +11933,7 @@ def create_pages_site( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, build_type: Missing[Literal["legacy", "workflow"]] = UNSET, source: ReposOwnerRepoPagesPostBodyPropSourceType, @@ -11945,7 +11945,7 @@ def create_pages_site( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, build_type: Literal["legacy", "workflow"], source: Missing[ReposOwnerRepoPagesPostBodyPropSourceType] = UNSET, @@ -12031,7 +12031,7 @@ async def async_create_pages_site( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, build_type: Missing[Literal["legacy", "workflow"]] = UNSET, source: ReposOwnerRepoPagesPostBodyPropSourceType, @@ -12043,7 +12043,7 @@ async def async_create_pages_site( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, build_type: Literal["legacy", "workflow"], source: Missing[ReposOwnerRepoPagesPostBodyPropSourceType] = UNSET, @@ -12374,7 +12374,7 @@ def create_pages_deployment( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, artifact_id: Missing[float] = UNSET, artifact_url: Missing[str] = UNSET, @@ -12441,7 +12441,7 @@ async def async_create_pages_deployment( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, artifact_id: Missing[float] = UNSET, artifact_url: Missing[str] = UNSET, @@ -12868,7 +12868,7 @@ def create_or_update_custom_properties_values( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, properties: List[CustomPropertyValueType], ) -> Response: ... @@ -12929,7 +12929,7 @@ async def async_create_or_update_custom_properties_values( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, properties: List[CustomPropertyValueType], ) -> Response: ... @@ -13190,7 +13190,7 @@ def create_release( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, tag_name: str, target_commitish: Missing[str] = UNSET, @@ -13260,7 +13260,7 @@ async def async_create_release( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, tag_name: str, target_commitish: Missing[str] = UNSET, @@ -13424,7 +13424,7 @@ def update_release_asset( repo: str, asset_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: Missing[str] = UNSET, label: Missing[str] = UNSET, @@ -13482,7 +13482,7 @@ async def async_update_release_asset( repo: str, asset_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: Missing[str] = UNSET, label: Missing[str] = UNSET, @@ -13538,7 +13538,7 @@ def generate_release_notes( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, tag_name: str, target_commitish: Missing[str] = UNSET, @@ -13601,7 +13601,7 @@ async def async_generate_release_notes( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, tag_name: str, target_commitish: Missing[str] = UNSET, @@ -13850,7 +13850,7 @@ def update_release( repo: str, release_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, tag_name: Missing[str] = UNSET, target_commitish: Missing[str] = UNSET, @@ -13920,7 +13920,7 @@ async def async_update_release( repo: str, release_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, tag_name: Missing[str] = UNSET, target_commitish: Missing[str] = UNSET, @@ -14398,7 +14398,7 @@ def create_repo_ruleset( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, target: Missing[Literal["branch", "tag", "push"]] = UNSET, @@ -14489,7 +14489,7 @@ async def async_create_repo_ruleset( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, target: Missing[Literal["branch", "tag", "push"]] = UNSET, @@ -14790,7 +14790,7 @@ def update_repo_ruleset( repo: str, ruleset_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: Missing[str] = UNSET, target: Missing[Literal["branch", "tag", "push"]] = UNSET, @@ -14884,7 +14884,7 @@ async def async_update_repo_ruleset( repo: str, ruleset_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: Missing[str] = UNSET, target: Missing[Literal["branch", "tag", "push"]] = UNSET, @@ -15266,7 +15266,7 @@ def create_commit_status( repo: str, sha: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, state: Literal["error", "failure", "pending", "success"], target_url: Missing[Union[str, None]] = UNSET, @@ -15325,7 +15325,7 @@ async def async_create_commit_status( repo: str, sha: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, state: Literal["error", "failure", "pending", "success"], target_url: Missing[Union[str, None]] = UNSET, @@ -15502,7 +15502,7 @@ def create_tag_protection( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, pattern: str, ) -> Response[TagProtection]: ... @@ -15563,7 +15563,7 @@ async def async_create_tag_protection( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, pattern: str, ) -> Response[TagProtection]: ... @@ -15852,7 +15852,7 @@ def replace_all_topics( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, names: List[str], ) -> Response[Topic]: ... @@ -15914,7 +15914,7 @@ async def async_replace_all_topics( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, names: List[str], ) -> Response[Topic]: ... @@ -16208,7 +16208,7 @@ def transfer( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, new_owner: str, new_name: Missing[str] = UNSET, @@ -16263,7 +16263,7 @@ async def async_transfer( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, new_owner: str, new_name: Missing[str] = UNSET, @@ -16474,7 +16474,7 @@ def create_using_template( template_owner: str, template_repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, owner: Missing[str] = UNSET, name: str, @@ -16536,7 +16536,7 @@ async def async_create_using_template( template_owner: str, template_repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, owner: Missing[str] = UNSET, name: str, @@ -16751,7 +16751,7 @@ def create_for_authenticated_user( def create_for_authenticated_user( self, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, description: Missing[str] = UNSET, @@ -16833,7 +16833,7 @@ async def async_create_for_authenticated_user( async def async_create_for_authenticated_user( self, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, description: Missing[str] = UNSET, diff --git a/githubkit/versions/ghec_v2022_11_28/rest/scim.py b/githubkit/versions/ghec_v2022_11_28/rest/scim.py index a025ecb97..8c7ad7f55 100644 --- a/githubkit/versions/ghec_v2022_11_28/rest/scim.py +++ b/githubkit/versions/ghec_v2022_11_28/rest/scim.py @@ -10,11 +10,11 @@ from __future__ import annotations from weakref import ref -from typing import TYPE_CHECKING, Dict, Literal, Optional, overload +from typing import TYPE_CHECKING, Dict, Optional, overload from pydantic import BaseModel -from githubkit.typing import Missing +from githubkit.typing import Missing, UnsetType from githubkit.utils import UNSET, exclude_unset from githubkit.compat import model_dump, type_validate_python @@ -142,7 +142,7 @@ def provision_and_invite_user( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, user_name: str, display_name: Missing[str] = UNSET, @@ -206,7 +206,7 @@ async def async_provision_and_invite_user( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, user_name: str, display_name: Missing[str] = UNSET, @@ -324,7 +324,7 @@ def set_information_for_provisioned_user( org: str, scim_user_id: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, schemas: Missing[List[str]] = UNSET, display_name: Missing[str] = UNSET, @@ -392,7 +392,7 @@ async def async_set_information_for_provisioned_user( org: str, scim_user_id: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, schemas: Missing[List[str]] = UNSET, display_name: Missing[str] = UNSET, @@ -510,7 +510,7 @@ def update_attribute_for_user( org: str, scim_user_id: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, schemas: Missing[List[str]] = UNSET, operations: List[ @@ -579,7 +579,7 @@ async def async_update_attribute_for_user( org: str, scim_user_id: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, schemas: Missing[List[str]] = UNSET, operations: List[ 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 a2669ad24..973fffed4 100644 --- a/githubkit/versions/ghec_v2022_11_28/rest/secret_scanning.py +++ b/githubkit/versions/ghec_v2022_11_28/rest/secret_scanning.py @@ -14,7 +14,7 @@ from pydantic import BaseModel -from githubkit.typing import Missing +from githubkit.typing import Missing, UnsetType from githubkit.utils import UNSET, exclude_unset from githubkit.compat import model_dump, type_validate_python @@ -449,7 +449,7 @@ def update_alert( repo: str, alert_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, state: Literal["open", "resolved"], resolution: Missing[ @@ -522,7 +522,7 @@ async def async_update_alert( repo: str, alert_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, state: Literal["open", "resolved"], resolution: Missing[ diff --git a/githubkit/versions/ghec_v2022_11_28/rest/security_advisories.py b/githubkit/versions/ghec_v2022_11_28/rest/security_advisories.py index 9a7da8980..612083ba8 100644 --- a/githubkit/versions/ghec_v2022_11_28/rest/security_advisories.py +++ b/githubkit/versions/ghec_v2022_11_28/rest/security_advisories.py @@ -14,7 +14,7 @@ from pydantic import BaseModel -from githubkit.typing import Missing +from githubkit.typing import Missing, UnsetType from githubkit.utils import UNSET, exclude_unset from githubkit.compat import model_dump, type_validate_python @@ -457,7 +457,7 @@ def create_repository_advisory( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, summary: str, description: str, @@ -532,7 +532,7 @@ async def async_create_repository_advisory( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, summary: str, description: str, @@ -607,7 +607,7 @@ def create_private_vulnerability_report( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, summary: str, description: str, @@ -682,7 +682,7 @@ async def async_create_private_vulnerability_report( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, summary: str, description: str, @@ -813,7 +813,7 @@ def update_repository_advisory( repo: str, ghsa_id: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, summary: Missing[str] = UNSET, description: Missing[str] = UNSET, @@ -895,7 +895,7 @@ async def async_update_repository_advisory( repo: str, ghsa_id: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, summary: Missing[str] = UNSET, description: Missing[str] = UNSET, diff --git a/githubkit/versions/ghec_v2022_11_28/rest/teams.py b/githubkit/versions/ghec_v2022_11_28/rest/teams.py index 46ed96732..2661d14a9 100644 --- a/githubkit/versions/ghec_v2022_11_28/rest/teams.py +++ b/githubkit/versions/ghec_v2022_11_28/rest/teams.py @@ -14,7 +14,7 @@ from pydantic import BaseModel -from githubkit.typing import Missing +from githubkit.typing import Missing, UnsetType from githubkit.utils import UNSET, exclude_unset from githubkit.compat import model_dump, type_validate_python @@ -332,7 +332,7 @@ def create( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, description: Missing[str] = UNSET, @@ -395,7 +395,7 @@ async def async_create( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, description: Missing[str] = UNSET, @@ -548,7 +548,7 @@ def update_in_org( org: str, team_slug: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: Missing[str] = UNSET, description: Missing[str] = UNSET, @@ -618,7 +618,7 @@ async def async_update_in_org( org: str, team_slug: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: Missing[str] = UNSET, description: Missing[str] = UNSET, @@ -760,7 +760,7 @@ def create_discussion_in_org( org: str, team_slug: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, title: str, body: str, @@ -815,7 +815,7 @@ async def async_create_discussion_in_org( org: str, team_slug: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, title: str, body: str, @@ -960,7 +960,7 @@ def update_discussion_in_org( team_slug: str, discussion_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, title: Missing[str] = UNSET, body: Missing[str] = UNSET, @@ -1026,7 +1026,7 @@ async def async_update_discussion_in_org( team_slug: str, discussion_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, title: Missing[str] = UNSET, body: Missing[str] = UNSET, @@ -1160,7 +1160,7 @@ def create_discussion_comment_in_org( team_slug: str, discussion_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, body: str, ) -> Response[TeamDiscussionComment]: ... @@ -1223,7 +1223,7 @@ async def async_create_discussion_comment_in_org( team_slug: str, discussion_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, body: str, ) -> Response[TeamDiscussionComment]: ... @@ -1378,7 +1378,7 @@ def update_discussion_comment_in_org( discussion_number: int, comment_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, body: str, ) -> Response[TeamDiscussionComment]: ... @@ -1445,7 +1445,7 @@ async def async_update_discussion_comment_in_org( discussion_number: int, comment_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, body: str, ) -> Response[TeamDiscussionComment]: ... @@ -1590,7 +1590,7 @@ def link_external_idp_group_to_team_for_org( org: str, team_slug: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, group_id: int, ) -> Response[ExternalGroup]: ... @@ -1643,7 +1643,7 @@ async def async_link_external_idp_group_to_team_for_org( org: str, team_slug: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, group_id: int, ) -> Response[ExternalGroup]: ... @@ -1878,7 +1878,7 @@ def add_or_update_membership_for_user_in_org( team_slug: str, username: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, role: Missing[Literal["member", "maintainer"]] = UNSET, ) -> Response[TeamMembership]: ... @@ -1940,7 +1940,7 @@ async def async_add_or_update_membership_for_user_in_org( team_slug: str, username: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, role: Missing[Literal["member", "maintainer"]] = UNSET, ) -> Response[TeamMembership]: ... @@ -2158,7 +2158,7 @@ def add_or_update_project_permissions_in_org( team_slug: str, project_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, permission: Missing[Literal["read", "write", "admin"]] = UNSET, ) -> Response: ... @@ -2227,7 +2227,7 @@ async def async_add_or_update_project_permissions_in_org( team_slug: str, project_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, permission: Missing[Literal["read", "write", "admin"]] = UNSET, ) -> Response: ... @@ -2450,7 +2450,7 @@ def add_or_update_repo_permissions_in_org( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, permission: Missing[str] = UNSET, ) -> Response: ... @@ -2508,7 +2508,7 @@ async def async_add_or_update_repo_permissions_in_org( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, permission: Missing[str] = UNSET, ) -> Response: ... @@ -2648,7 +2648,7 @@ def create_or_update_idp_group_connections_in_org( org: str, team_slug: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, groups: Missing[ List[OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItemsType] @@ -2708,7 +2708,7 @@ async def async_create_or_update_idp_group_connections_in_org( org: str, team_slug: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, groups: Missing[ List[OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItemsType] @@ -2926,7 +2926,7 @@ def update_legacy( self, team_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, description: Missing[str] = UNSET, @@ -2988,7 +2988,7 @@ async def async_update_legacy( self, team_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, description: Missing[str] = UNSET, @@ -3116,7 +3116,7 @@ def create_discussion_legacy( self, team_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, title: str, body: str, @@ -3168,7 +3168,7 @@ async def async_create_discussion_legacy( self, team_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, title: str, body: str, @@ -3304,7 +3304,7 @@ def update_discussion_legacy( team_id: int, discussion_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, title: Missing[str] = UNSET, body: Missing[str] = UNSET, @@ -3363,7 +3363,7 @@ async def async_update_discussion_legacy( team_id: int, discussion_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, title: Missing[str] = UNSET, body: Missing[str] = UNSET, @@ -3490,7 +3490,7 @@ def create_discussion_comment_legacy( team_id: int, discussion_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, body: str, ) -> Response[TeamDiscussionComment]: ... @@ -3550,7 +3550,7 @@ async def async_create_discussion_comment_legacy( team_id: int, discussion_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, body: str, ) -> Response[TeamDiscussionComment]: ... @@ -3698,7 +3698,7 @@ def update_discussion_comment_legacy( discussion_number: int, comment_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, body: str, ) -> Response[TeamDiscussionComment]: ... @@ -3761,7 +3761,7 @@ async def async_update_discussion_comment_legacy( discussion_number: int, comment_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, body: str, ) -> Response[TeamDiscussionComment]: ... @@ -4134,7 +4134,7 @@ def add_or_update_membership_for_user_legacy( team_id: int, username: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, role: Missing[Literal["member", "maintainer"]] = UNSET, ) -> Response[TeamMembership]: ... @@ -4194,7 +4194,7 @@ async def async_add_or_update_membership_for_user_legacy( team_id: int, username: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, role: Missing[Literal["member", "maintainer"]] = UNSET, ) -> Response[TeamMembership]: ... @@ -4408,7 +4408,7 @@ def add_or_update_project_permissions_legacy( team_id: int, project_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, permission: Missing[Literal["read", "write", "admin"]] = UNSET, ) -> Response: ... @@ -4470,7 +4470,7 @@ async def async_add_or_update_project_permissions_legacy( team_id: int, project_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, permission: Missing[Literal["read", "write", "admin"]] = UNSET, ) -> Response: ... @@ -4700,7 +4700,7 @@ def add_or_update_repo_permissions_legacy( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, permission: Missing[Literal["pull", "push", "admin"]] = UNSET, ) -> Response: ... @@ -4763,7 +4763,7 @@ async def async_add_or_update_repo_permissions_legacy( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, permission: Missing[Literal["pull", "push", "admin"]] = UNSET, ) -> Response: ... @@ -4912,7 +4912,7 @@ def create_or_update_idp_group_connections_legacy( self, team_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, groups: List[TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItemsType], synced_at: Missing[str] = UNSET, @@ -4972,7 +4972,7 @@ async def async_create_or_update_idp_group_connections_legacy( self, team_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, groups: List[TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItemsType], synced_at: Missing[str] = UNSET, diff --git a/githubkit/versions/ghec_v2022_11_28/rest/users.py b/githubkit/versions/ghec_v2022_11_28/rest/users.py index 9176f7893..d8d87b642 100644 --- a/githubkit/versions/ghec_v2022_11_28/rest/users.py +++ b/githubkit/versions/ghec_v2022_11_28/rest/users.py @@ -14,7 +14,7 @@ from pydantic import BaseModel -from githubkit.typing import Missing +from githubkit.typing import Missing, UnsetType from githubkit.utils import UNSET, exclude_unset from githubkit.compat import model_dump, type_validate_python @@ -131,7 +131,7 @@ def update_authenticated( def update_authenticated( self, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: Missing[str] = UNSET, email: Missing[str] = UNSET, @@ -191,7 +191,7 @@ async def async_update_authenticated( async def async_update_authenticated( self, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: Missing[str] = UNSET, email: Missing[str] = UNSET, @@ -473,7 +473,7 @@ def set_primary_email_visibility_for_authenticated_user( def set_primary_email_visibility_for_authenticated_user( self, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, visibility: Literal["public", "private"], ) -> Response[List[Email]]: ... @@ -533,7 +533,7 @@ async def async_set_primary_email_visibility_for_authenticated_user( async def async_set_primary_email_visibility_for_authenticated_user( self, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, visibility: Literal["public", "private"], ) -> Response[List[Email]]: ... @@ -663,7 +663,7 @@ def add_email_for_authenticated_user( def add_email_for_authenticated_user( self, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, emails: List[str], ) -> Response[List[Email]]: ... @@ -725,7 +725,7 @@ async def async_add_email_for_authenticated_user( async def async_add_email_for_authenticated_user( self, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, emails: List[str], ) -> Response[List[Email]]: ... @@ -787,7 +787,7 @@ def delete_email_for_authenticated_user( def delete_email_for_authenticated_user( self, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, emails: List[str], ) -> Response: ... @@ -843,7 +843,7 @@ async def async_delete_email_for_authenticated_user( async def async_delete_email_for_authenticated_user( self, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, emails: List[str], ) -> Response: ... @@ -1252,7 +1252,7 @@ def create_gpg_key_for_authenticated_user( def create_gpg_key_for_authenticated_user( self, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: Missing[str] = UNSET, armored_public_key: str, @@ -1303,7 +1303,7 @@ async def async_create_gpg_key_for_authenticated_user( async def async_create_gpg_key_for_authenticated_user( self, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: Missing[str] = UNSET, armored_public_key: str, @@ -1528,7 +1528,7 @@ def create_public_ssh_key_for_authenticated_user( def create_public_ssh_key_for_authenticated_user( self, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, title: Missing[str] = UNSET, key: str, @@ -1579,7 +1579,7 @@ async def async_create_public_ssh_key_for_authenticated_user( async def async_create_public_ssh_key_for_authenticated_user( self, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, title: Missing[str] = UNSET, key: str, @@ -1875,7 +1875,7 @@ def add_social_account_for_authenticated_user( def add_social_account_for_authenticated_user( self, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, account_urls: List[str], ) -> Response[List[SocialAccount]]: ... @@ -1935,7 +1935,7 @@ async def async_add_social_account_for_authenticated_user( async def async_add_social_account_for_authenticated_user( self, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, account_urls: List[str], ) -> Response[List[SocialAccount]]: ... @@ -1995,7 +1995,7 @@ def delete_social_account_for_authenticated_user( def delete_social_account_for_authenticated_user( self, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, account_urls: List[str], ) -> Response: ... @@ -2047,7 +2047,7 @@ async def async_delete_social_account_for_authenticated_user( async def async_delete_social_account_for_authenticated_user( self, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, account_urls: List[str], ) -> Response: ... @@ -2169,7 +2169,7 @@ def create_ssh_signing_key_for_authenticated_user( def create_ssh_signing_key_for_authenticated_user( self, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, title: Missing[str] = UNSET, key: str, @@ -2228,7 +2228,7 @@ async def async_create_ssh_signing_key_for_authenticated_user( async def async_create_ssh_signing_key_for_authenticated_user( self, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, title: Missing[str] = UNSET, key: str, diff --git a/githubkit/versions/ghec_v2022_11_28/types/__init__.py b/githubkit/versions/ghec_v2022_11_28/types/__init__.py index cb05c12b5..bcab98cac 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/__init__.py +++ b/githubkit/versions/ghec_v2022_11_28/types/__init__.py @@ -58,7 +58,7 @@ from .group_0314 import LanguageType as LanguageType from .group_0382 import UserNameType as UserNameType from .group_0383 import ScimUserType as ScimUserType - from .group_0973 import WorkflowType as WorkflowType + from .group_0974 import WorkflowType as WorkflowType from .group_0009 import ScimErrorType as ScimErrorType from .group_0022 import ClassroomType as ClassroomType from .group_0064 import MilestoneType as MilestoneType @@ -164,7 +164,7 @@ from .group_0677 import WebhookPublicType as WebhookPublicType from .group_0768 import WebhookStatusType as WebhookStatusType from .group_0827 import GistsPostBodyType as GistsPostBodyType - from .group_1142 import UserPatchBodyType as UserPatchBodyType + from .group_1143 import UserPatchBodyType as UserPatchBodyType from .group_0002 import GlobalAdvisoryType as GlobalAdvisoryType from .group_0014 import AppPermissionsType as AppPermissionsType from .group_0049 import EnterpriseTeamType as EnterpriseTeamType @@ -207,7 +207,7 @@ from .group_0441 import WebhooksProjectType as WebhooksProjectType from .group_0452 import WebhooksReleaseType as WebhooksReleaseType from .group_0844 import RunnerGroupsOrgType as RunnerGroupsOrgType - from .group_1168 import SigstoreBundle0Type as SigstoreBundle0Type + from .group_1169 import SigstoreBundle0Type as SigstoreBundle0Type from .group_0008 import HookDeliveryItemType as HookDeliveryItemType from .group_0043 import SimpleRepositoryType as SimpleRepositoryType from .group_0068 import EventPropPayloadType as EventPropPayloadType @@ -246,9 +246,9 @@ from .group_0638 import WebhookPageBuildType as WebhookPageBuildType from .group_0834 import MarkdownPostBodyType as MarkdownPostBodyType from .group_0839 import OrgsOrgPatchBodyType as OrgsOrgPatchBodyType - from .group_1025 import DependabotSecretType as DependabotSecretType - from .group_1146 import CodespacesSecretType as CodespacesSecretType - from .group_1160 import UserKeysPostBodyType as UserKeysPostBodyType + from .group_1026 import DependabotSecretType as DependabotSecretType + from .group_1147 import CodespacesSecretType as CodespacesSecretType + from .group_1161 import UserKeysPostBodyType as UserKeysPostBodyType from .group_0018 import InstallationTokenType as InstallationTokenType from .group_0035 import RunnerApplicationType as RunnerApplicationType from .group_0060 import GetAllCostCentersType as GetAllCostCentersType @@ -275,7 +275,7 @@ from .group_0416 import WebhooksDeployKeyType as WebhooksDeployKeyType from .group_0430 import WebhooksMilestoneType as WebhooksMilestoneType from .group_0777 import WebhookTeamEditedType as WebhookTeamEditedType - from .group_1164 import UserReposPostBodyType as UserReposPostBodyType + from .group_1165 import UserReposPostBodyType as UserReposPostBodyType from .group_0019 import ScopedInstallationType as ScopedInstallationType from .group_0029 import OrganizationSimpleType as OrganizationSimpleType from .group_0037 import AnnouncementBannerType as AnnouncementBannerType @@ -345,8 +345,8 @@ from .group_0612 import WebhookMemberEditedType as WebhookMemberEditedType from .group_0644 import WebhookPingPropHookType as WebhookPingPropHookType from .group_0779 import WebhookWatchStartedType as WebhookWatchStartedType - from .group_0874 import CodespacesOrgSecretType as CodespacesOrgSecretType - from .group_1156 import UserGpgKeysPostBodyType as UserGpgKeysPostBodyType + from .group_0875 import CodespacesOrgSecretType as CodespacesOrgSecretType + from .group_1157 import UserGpgKeysPostBodyType as UserGpgKeysPostBodyType from .group_0020 import AuthorizationPropAppType as AuthorizationPropAppType from .group_0049 import OrganizationPropPlanType as OrganizationPropPlanType from .group_0056 import GetLicenseSyncStatusType as GetLicenseSyncStatusType @@ -386,12 +386,12 @@ from .group_0802 import EmojisGetResponse200Type as EmojisGetResponse200Type from .group_0829 import GistsGistIdPatchBodyType as GistsGistIdPatchBodyType from .group_0835 import NotificationsPutBodyType as NotificationsPutBodyType - from .group_0892 import OrgsOrgHooksPostBodyType as OrgsOrgHooksPostBodyType - from .group_0914 import OrgsOrgReposPostBodyType as OrgsOrgReposPostBodyType - from .group_0917 import OrgsOrgTeamsPostBodyType as OrgsOrgTeamsPostBodyType - from .group_1015 import RepoCodespacesSecretType as RepoCodespacesSecretType - from .group_1130 import TeamsTeamIdPatchBodyType as TeamsTeamIdPatchBodyType - from .group_1163 import UserProjectsPostBodyType as UserProjectsPostBodyType + from .group_0893 import OrgsOrgHooksPostBodyType as OrgsOrgHooksPostBodyType + from .group_0915 import OrgsOrgReposPostBodyType as OrgsOrgReposPostBodyType + from .group_0918 import OrgsOrgTeamsPostBodyType as OrgsOrgTeamsPostBodyType + from .group_1016 import RepoCodespacesSecretType as RepoCodespacesSecretType + from .group_1131 import TeamsTeamIdPatchBodyType as TeamsTeamIdPatchBodyType + from .group_1164 import UserProjectsPostBodyType as UserProjectsPostBodyType from .group_0004 import ValidationErrorSimpleType as ValidationErrorSimpleType from .group_0025 import ServerStatisticsItemsType as ServerStatisticsItemsType from .group_0039 import AuditLogEventPropDataType as AuditLogEventPropDataType @@ -477,8 +477,8 @@ from .group_0794 import AppHookConfigPatchBodyType as AppHookConfigPatchBodyType from .group_0806 import RunnerGroupsEnterpriseType as RunnerGroupsEnterpriseType from .group_0827 import GistsPostBodyPropFilesType as GistsPostBodyPropFilesType - from .group_1033 import DeploymentBranchPolicyType as DeploymentBranchPolicyType - from .group_1162 import UserMigrationsPostBodyType as UserMigrationsPostBodyType + from .group_1034 import DeploymentBranchPolicyType as DeploymentBranchPolicyType + from .group_1163 import UserMigrationsPostBodyType as UserMigrationsPostBodyType from .group_0011 import HookDeliveryPropRequestType as HookDeliveryPropRequestType from .group_0025 import ServerStatisticsActionsType as ServerStatisticsActionsType from .group_0097 import CredentialAuthorizationType as CredentialAuthorizationType @@ -518,9 +518,9 @@ from .group_0730 import WebhookRepositoryImportType as WebhookRepositoryImportType from .group_0768 import WebhookStatusPropCommitType as WebhookStatusPropCommitType from .group_0780 import WebhookWorkflowDispatchType as WebhookWorkflowDispatchType - from .group_0910 import OrgsOrgProjectsPostBodyType as OrgsOrgProjectsPostBodyType - from .group_0915 import OrgsOrgRulesetsPostBodyType as OrgsOrgRulesetsPostBodyType - from .group_0950 import ReposOwnerRepoPatchBodyType as ReposOwnerRepoPatchBodyType + from .group_0911 import OrgsOrgProjectsPostBodyType as OrgsOrgProjectsPostBodyType + from .group_0916 import OrgsOrgRulesetsPostBodyType as OrgsOrgRulesetsPostBodyType + from .group_0951 import ReposOwnerRepoPatchBodyType as ReposOwnerRepoPatchBodyType from .group_0002 import VulnerabilityPropPackageType as VulnerabilityPropPackageType from .group_0011 import HookDeliveryPropResponseType as HookDeliveryPropResponseType from .group_0024 import ClassroomAssignmentGradeType as ClassroomAssignmentGradeType @@ -563,7 +563,7 @@ from .group_0733 import WebhookRepositoryRenamedType as WebhookRepositoryRenamedType from .group_0762 import WebhookSponsorshipEditedType as WebhookSponsorshipEditedType from .group_0787 import WebhookWorkflowJobQueuedType as WebhookWorkflowJobQueuedType - from .group_1154 import UserEmailsPostBodyOneof0Type as UserEmailsPostBodyOneof0Type + from .group_1155 import UserEmailsPostBodyOneof0Type as UserEmailsPostBodyOneof0Type from .group_0017 import ( RepositoryPropPermissionsType as RepositoryPropPermissionsType, ) @@ -696,7 +696,7 @@ from .group_0855 import ( OrganizationActionsSecretType as OrganizationActionsSecretType, ) - from .group_0900 import ( + from .group_0901 import ( OrgsOrgMigrationsPostBodyType as OrgsOrgMigrationsPostBodyType, ) from .group_0005 import ( @@ -873,22 +873,22 @@ from .group_0757 import ( WebhookSecurityAndAnalysisType as WebhookSecurityAndAnalysisType, ) - from .group_0897 import ( + from .group_0898 import ( OrgsOrgInvitationsPostBodyType as OrgsOrgInvitationsPostBodyType, ) - from .group_0945 import ( + from .group_0946 import ( ProjectsProjectIdPatchBodyType as ProjectsProjectIdPatchBodyType, ) - from .group_1072 import ( + from .group_1073 import ( ReposOwnerRepoKeysPostBodyType as ReposOwnerRepoKeysPostBodyType, ) - from .group_1155 import ( + from .group_1156 import ( UserEmailsDeleteBodyOneof0Type as UserEmailsDeleteBodyOneof0Type, ) - from .group_1165 import ( + from .group_1166 import ( UserSocialAccountsPostBodyType as UserSocialAccountsPostBodyType, ) - from .group_1167 import ( + from .group_1168 import ( UserSshSigningKeysPostBodyType as UserSshSigningKeysPostBodyType, ) from .group_0002 import ( @@ -1038,22 +1038,22 @@ from .group_0859 import ( OrganizationActionsVariableType as OrganizationActionsVariableType, ) - from .group_0893 import ( + from .group_0894 import ( OrgsOrgHooksHookIdPatchBodyType as OrgsOrgHooksHookIdPatchBodyType, ) - from .group_1041 import ( + from .group_1042 import ( ReposOwnerRepoForksPostBodyType as ReposOwnerRepoForksPostBodyType, ) - from .group_1048 import ( + from .group_1049 import ( ReposOwnerRepoHooksPostBodyType as ReposOwnerRepoHooksPostBodyType, ) - from .group_1051 import ( + from .group_1052 import ( ReposOwnerRepoImportPutBodyType as ReposOwnerRepoImportPutBodyType, ) - from .group_1094 import ( + from .group_1095 import ( ReposOwnerRepoPullsPostBodyType as ReposOwnerRepoPullsPostBodyType, ) - from .group_1124 import ( + from .group_1125 import ( ReposOwnerRepoTopicsPutBodyType as ReposOwnerRepoTopicsPutBodyType, ) from .group_0028 import ( @@ -1242,31 +1242,31 @@ from .group_0790 import ( WebhookWorkflowRunInProgressType as WebhookWorkflowRunInProgressType, ) - from .group_0888 import ( + from .group_0889 import ( OrganizationDependabotSecretType as OrganizationDependabotSecretType, ) - from .group_1057 import ( + from .group_1058 import ( ReposOwnerRepoIssuesPostBodyType as ReposOwnerRepoIssuesPostBodyType, ) - from .group_1073 import ( + from .group_1074 import ( ReposOwnerRepoLabelsPostBodyType as ReposOwnerRepoLabelsPostBodyType, ) - from .group_1076 import ( + from .group_1077 import ( ReposOwnerRepoMergesPostBodyType as ReposOwnerRepoMergesPostBodyType, ) - from .group_1143 import ( + from .group_1144 import ( UserCodespacesGetResponse200Type as UserCodespacesGetResponse200Type, ) - from .group_1144 import ( + from .group_1145 import ( UserCodespacesPostBodyOneof0Type as UserCodespacesPostBodyOneof0Type, ) - from .group_1145 import ( + from .group_1146 import ( UserCodespacesPostBodyOneof1Type as UserCodespacesPostBodyOneof1Type, ) - from .group_1153 import ( + from .group_1154 import ( UserEmailVisibilityPatchBodyType as UserEmailVisibilityPatchBodyType, ) - from .group_1166 import ( + from .group_1167 import ( UserSocialAccountsDeleteBodyType as UserSocialAccountsDeleteBodyType, ) from .group_0054 import ( @@ -1389,16 +1389,16 @@ from .group_0840 import ( ActionsCacheUsageByRepositoryType as ActionsCacheUsageByRepositoryType, ) - from .group_0918 import ( + from .group_0919 import ( OrgsOrgTeamsTeamSlugPatchBodyType as OrgsOrgTeamsTeamSlugPatchBodyType, ) - from .group_1044 import ( + from .group_1045 import ( ReposOwnerRepoGitRefsPostBodyType as ReposOwnerRepoGitRefsPostBodyType, ) - from .group_1046 import ( + from .group_1047 import ( ReposOwnerRepoGitTagsPostBodyType as ReposOwnerRepoGitTagsPostBodyType, ) - from .group_1052 import ( + from .group_1053 import ( ReposOwnerRepoImportPatchBodyType as ReposOwnerRepoImportPatchBodyType, ) from .group_0002 import ( @@ -1542,31 +1542,31 @@ from .group_0768 import ( WebhookStatusPropBranchesItemsType as WebhookStatusPropBranchesItemsType, ) - from .group_0871 import ( + from .group_0872 import ( OrgsOrgCodespacesAccessPutBodyType as OrgsOrgCodespacesAccessPutBodyType, ) - from .group_0892 import ( + from .group_0893 import ( OrgsOrgHooksPostBodyPropConfigType as OrgsOrgHooksPostBodyPropConfigType, ) - from .group_1042 import ( + from .group_1043 import ( ReposOwnerRepoGitBlobsPostBodyType as ReposOwnerRepoGitBlobsPostBodyType, ) - from .group_1047 import ( + from .group_1048 import ( ReposOwnerRepoGitTreesPostBodyType as ReposOwnerRepoGitTreesPostBodyType, ) - from .group_1092 import ( + from .group_1093 import ( ReposOwnerRepoProjectsPostBodyType as ReposOwnerRepoProjectsPostBodyType, ) - from .group_1113 import ( + from .group_1114 import ( ReposOwnerRepoReleasesPostBodyType as ReposOwnerRepoReleasesPostBodyType, ) - from .group_1118 import ( + from .group_1119 import ( ReposOwnerRepoRulesetsPostBodyType as ReposOwnerRepoRulesetsPostBodyType, ) - from .group_1125 import ( + from .group_1126 import ( ReposOwnerRepoTransferPostBodyType as ReposOwnerRepoTransferPostBodyType, ) - from .group_1131 import ( + from .group_1132 import ( TeamsTeamIdDiscussionsPostBodyType as TeamsTeamIdDiscussionsPostBodyType, ) from .group_0039 import ( @@ -1659,25 +1659,25 @@ from .group_0860 import ( OrgsOrgActionsVariablesPostBodyType as OrgsOrgActionsVariablesPostBodyType, ) - from .group_0870 import ( + from .group_0871 import ( OrgsOrgCodespacesGetResponse200Type as OrgsOrgCodespacesGetResponse200Type, ) - from .group_0916 import ( + from .group_0917 import ( OrgsOrgRulesetsRulesetIdPutBodyType as OrgsOrgRulesetsRulesetIdPutBodyType, ) - from .group_0949 import ( + from .group_0950 import ( ReposOwnerRepoDeleteResponse403Type as ReposOwnerRepoDeleteResponse403Type, ) - from .group_0979 import ( + from .group_0980 import ( ReposOwnerRepoAutolinksPostBodyType as ReposOwnerRepoAutolinksPostBodyType, ) - from .group_1157 import ( + from .group_1158 import ( UserInstallationsGetResponse200Type as UserInstallationsGetResponse200Type, ) - from .group_1161 import ( + from .group_1162 import ( UserMembershipsOrgsOrgPatchBodyType as UserMembershipsOrgsOrgPatchBodyType, ) - from .group_1168 import ( + from .group_1169 import ( SigstoreBundle0PropDsseEnvelopeType as SigstoreBundle0PropDsseEnvelopeType, ) from .group_0039 import ( @@ -1818,52 +1818,52 @@ from .group_0841 import ( OrgsOrgActionsPermissionsPutBodyType as OrgsOrgActionsPermissionsPutBodyType, ) - from .group_0901 import ( + from .group_0902 import ( OrgsOrgOrganizationRolesPostBodyType as OrgsOrgOrganizationRolesPostBodyType, ) - from .group_0911 import ( + from .group_0912 import ( OrgsOrgPropertiesSchemaPatchBodyType as OrgsOrgPropertiesSchemaPatchBodyType, ) - from .group_0913 import ( + from .group_0914 import ( OrgsOrgPropertiesValuesPatchBodyType as OrgsOrgPropertiesValuesPatchBodyType, ) - from .group_0938 import ( + from .group_0939 import ( ProjectsColumnsColumnIdPatchBodyType as ProjectsColumnsColumnIdPatchBodyType, ) - from .group_0948 import ( + from .group_0949 import ( ProjectsProjectIdColumnsPostBodyType as ProjectsProjectIdColumnsPostBodyType, ) - from .group_1011 import ( + from .group_1012 import ( ReposOwnerRepoCodespacesPostBodyType as ReposOwnerRepoCodespacesPostBodyType, ) - from .group_1031 import ( + from .group_1032 import ( ReposOwnerRepoDispatchesPostBodyType as ReposOwnerRepoDispatchesPostBodyType, ) - from .group_1043 import ( + from .group_1044 import ( ReposOwnerRepoGitCommitsPostBodyType as ReposOwnerRepoGitCommitsPostBodyType, ) - from .group_1054 import ( + from .group_1055 import ( ReposOwnerRepoImportLfsPatchBodyType as ReposOwnerRepoImportLfsPatchBodyType, ) - from .group_1077 import ( + from .group_1078 import ( ReposOwnerRepoMilestonesPostBodyType as ReposOwnerRepoMilestonesPostBodyType, ) - from .group_1082 import ( + from .group_1083 import ( ReposOwnerRepoPagesPutBodyAnyof0Type as ReposOwnerRepoPagesPutBodyAnyof0Type, ) - from .group_1083 import ( + from .group_1084 import ( ReposOwnerRepoPagesPutBodyAnyof1Type as ReposOwnerRepoPagesPutBodyAnyof1Type, ) - from .group_1084 import ( + from .group_1085 import ( ReposOwnerRepoPagesPutBodyAnyof2Type as ReposOwnerRepoPagesPutBodyAnyof2Type, ) - from .group_1085 import ( + from .group_1086 import ( ReposOwnerRepoPagesPutBodyAnyof3Type as ReposOwnerRepoPagesPutBodyAnyof3Type, ) - from .group_1086 import ( + from .group_1087 import ( ReposOwnerRepoPagesPutBodyAnyof4Type as ReposOwnerRepoPagesPutBodyAnyof4Type, ) - from .group_1140 import ( + from .group_1141 import ( TeamsTeamIdReposOwnerRepoPutBodyType as TeamsTeamIdReposOwnerRepoPutBodyType, ) from .group_0025 import ( @@ -1968,40 +1968,40 @@ from .group_0798 import ( ApplicationsClientIdTokenPostBodyType as ApplicationsClientIdTokenPostBodyType, ) - from .group_0894 import ( + from .group_0895 import ( OrgsOrgHooksHookIdConfigPatchBodyType as OrgsOrgHooksHookIdConfigPatchBodyType, ) - from .group_0899 import ( + from .group_0900 import ( OrgsOrgMembershipsUsernamePutBodyType as OrgsOrgMembershipsUsernamePutBodyType, ) - from .group_0946 import ( + from .group_0947 import ( ProjectsProjectIdPatchResponse403Type as ProjectsProjectIdPatchResponse403Type, ) - from .group_1002 import ( + from .group_1003 import ( ReposOwnerRepoCheckSuitesPostBodyType as ReposOwnerRepoCheckSuitesPostBodyType, ) - from .group_1022 import ( + from .group_1023 import ( ReposOwnerRepoContentsPathPutBodyType as ReposOwnerRepoContentsPathPutBodyType, ) - from .group_1028 import ( + from .group_1029 import ( ReposOwnerRepoDeploymentsPostBodyType as ReposOwnerRepoDeploymentsPostBodyType, ) - from .group_1045 import ( + from .group_1046 import ( ReposOwnerRepoGitRefsRefPatchBodyType as ReposOwnerRepoGitRefsRefPatchBodyType, ) - from .group_1074 import ( + from .group_1075 import ( ReposOwnerRepoLabelsNamePatchBodyType as ReposOwnerRepoLabelsNamePatchBodyType, ) - from .group_1088 import ( + from .group_1089 import ( ReposOwnerRepoPagesPostBodyAnyof0Type as ReposOwnerRepoPagesPostBodyAnyof0Type, ) - from .group_1089 import ( + from .group_1090 import ( ReposOwnerRepoPagesPostBodyAnyof1Type as ReposOwnerRepoPagesPostBodyAnyof1Type, ) - from .group_1121 import ( + from .group_1122 import ( ReposOwnerRepoStatusesShaPostBodyType as ReposOwnerRepoStatusesShaPostBodyType, ) - from .group_1122 import ( + from .group_1123 import ( ReposOwnerRepoSubscriptionPutBodyType as ReposOwnerRepoSubscriptionPutBodyType, ) from .group_0002 import ( @@ -2151,19 +2151,19 @@ from .group_0845 import ( OrgsOrgActionsRunnerGroupsPostBodyType as OrgsOrgActionsRunnerGroupsPostBodyType, ) - from .group_0895 import ( + from .group_0896 import ( OrgsOrgInstallationsGetResponse200Type as OrgsOrgInstallationsGetResponse200Type, ) - from .group_0944 import ( + from .group_0945 import ( ProjectsProjectIdDeleteResponse403Type as ProjectsProjectIdDeleteResponse403Type, ) - from .group_0976 import ( + from .group_0977 import ( ReposOwnerRepoAttestationsPostBodyType as ReposOwnerRepoAttestationsPostBodyType, ) - from .group_1049 import ( + from .group_1050 import ( ReposOwnerRepoHooksHookIdPatchBodyType as ReposOwnerRepoHooksHookIdPatchBodyType, ) - from .group_1079 import ( + from .group_1080 import ( ReposOwnerRepoNotificationsPutBodyType as ReposOwnerRepoNotificationsPutBodyType, ) from .group_0011 import ( @@ -2292,22 +2292,22 @@ from .group_0855 import ( OrgsOrgActionsSecretsGetResponse200Type as OrgsOrgActionsSecretsGetResponse200Type, ) - from .group_0908 import ( + from .group_0909 import ( OrgsOrgPersonalAccessTokensPostBodyType as OrgsOrgPersonalAccessTokensPostBodyType, ) - from .group_0933 import ( + from .group_0934 import ( ProjectsColumnsCardsCardIdPatchBodyType as ProjectsColumnsCardsCardIdPatchBodyType, ) - from .group_1075 import ( + from .group_1076 import ( ReposOwnerRepoMergeUpstreamPostBodyType as ReposOwnerRepoMergeUpstreamPostBodyType, ) - from .group_1127 import ( + from .group_1128 import ( ScimV2OrganizationsOrgUsersPostBodyType as ScimV2OrganizationsOrgUsersPostBodyType, ) - from .group_1138 import ( + from .group_1139 import ( TeamsTeamIdProjectsProjectIdPutBodyType as TeamsTeamIdProjectsProjectIdPutBodyType, ) - from .group_1146 import ( + from .group_1147 import ( UserCodespacesSecretsGetResponse200Type as UserCodespacesSecretsGetResponse200Type, ) from .group_0031 import ( @@ -2430,16 +2430,16 @@ from .group_0861 import ( OrgsOrgActionsVariablesNamePatchBodyType as OrgsOrgActionsVariablesNamePatchBodyType, ) - from .group_0942 import ( + from .group_0943 import ( ProjectsColumnsColumnIdMovesPostBodyType as ProjectsColumnsColumnIdMovesPostBodyType, ) - from .group_1023 import ( + from .group_1024 import ( ReposOwnerRepoContentsPathDeleteBodyType as ReposOwnerRepoContentsPathDeleteBodyType, ) - from .group_1123 import ( + from .group_1124 import ( ReposOwnerRepoTagsProtectionPostBodyType as ReposOwnerRepoTagsProtectionPostBodyType, ) - from .group_1150 import ( + from .group_1151 import ( UserCodespacesCodespaceNamePatchBodyType as UserCodespacesCodespaceNamePatchBodyType, ) from .group_0025 import ( @@ -2547,22 +2547,22 @@ from .group_0859 import ( OrgsOrgActionsVariablesGetResponse200Type as OrgsOrgActionsVariablesGetResponse200Type, ) - from .group_0893 import ( + from .group_0894 import ( OrgsOrgHooksHookIdPatchBodyPropConfigType as OrgsOrgHooksHookIdPatchBodyPropConfigType, ) - from .group_0997 import ( + from .group_0998 import ( ReposOwnerRepoCheckRunsPostBodyOneof0Type as ReposOwnerRepoCheckRunsPostBodyOneof0Type, ) - from .group_0998 import ( + from .group_0999 import ( ReposOwnerRepoCheckRunsPostBodyOneof1Type as ReposOwnerRepoCheckRunsPostBodyOneof1Type, ) - from .group_1048 import ( + from .group_1049 import ( ReposOwnerRepoHooksPostBodyPropConfigType as ReposOwnerRepoHooksPostBodyPropConfigType, ) - from .group_1087 import ( + from .group_1088 import ( ReposOwnerRepoPagesPostBodyPropSourceType as ReposOwnerRepoPagesPostBodyPropSourceType, ) - from .group_1137 import ( + from .group_1138 import ( TeamsTeamIdMembershipsUsernamePutBodyType as TeamsTeamIdMembershipsUsernamePutBodyType, ) from .group_0025 import ( @@ -2712,28 +2712,28 @@ from .group_0856 import ( OrgsOrgActionsSecretsSecretNamePutBodyType as OrgsOrgActionsSecretsSecretNamePutBodyType, ) - from .group_0874 import ( + from .group_0875 import ( OrgsOrgCodespacesSecretsGetResponse200Type as OrgsOrgCodespacesSecretsGetResponse200Type, ) - from .group_0888 import ( + from .group_0889 import ( OrgsOrgDependabotSecretsGetResponse200Type as OrgsOrgDependabotSecretsGetResponse200Type, ) - from .group_0971 import ( + from .group_0972 import ( ReposOwnerRepoActionsVariablesPostBodyType as ReposOwnerRepoActionsVariablesPostBodyType, ) - from .group_1010 import ( + from .group_1011 import ( ReposOwnerRepoCodespacesGetResponse200Type as ReposOwnerRepoCodespacesGetResponse200Type, ) - from .group_1090 import ( + from .group_1091 import ( ReposOwnerRepoPagesDeploymentsPostBodyType as ReposOwnerRepoPagesDeploymentsPostBodyType, ) - from .group_1097 import ( + from .group_1098 import ( ReposOwnerRepoPullsPullNumberPatchBodyType as ReposOwnerRepoPullsPullNumberPatchBodyType, ) - from .group_1119 import ( + from .group_1120 import ( ReposOwnerRepoRulesetsRulesetIdPutBodyType as ReposOwnerRepoRulesetsRulesetIdPutBodyType, ) - from .group_1147 import ( + from .group_1148 import ( UserCodespacesSecretsSecretNamePutBodyType as UserCodespacesSecretsSecretNamePutBodyType, ) from .group_0053 import ( @@ -2814,28 +2814,28 @@ from .group_0801 import ( ApplicationsClientIdTokenScopedPostBodyType as ApplicationsClientIdTokenScopedPostBodyType, ) - from .group_0902 import ( + from .group_0903 import ( OrgsOrgOrganizationRolesRoleIdPatchBodyType as OrgsOrgOrganizationRolesRoleIdPatchBodyType, ) - from .group_0919 import ( + from .group_0920 import ( OrgsOrgTeamsTeamSlugDiscussionsPostBodyType as OrgsOrgTeamsTeamSlugDiscussionsPostBodyType, ) - from .group_0934 import ( + from .group_0935 import ( ProjectsColumnsCardsCardIdMovesPostBodyType as ProjectsColumnsCardsCardIdMovesPostBodyType, ) - from .group_0956 import ( + from .group_0957 import ( ReposOwnerRepoActionsPermissionsPutBodyType as ReposOwnerRepoActionsPermissionsPutBodyType, ) - from .group_0961 import ( + from .group_0962 import ( ReposOwnerRepoActionsRunsGetResponse200Type as ReposOwnerRepoActionsRunsGetResponse200Type, ) - from .group_1046 import ( + from .group_1047 import ( ReposOwnerRepoGitTagsPostBodyPropTaggerType as ReposOwnerRepoGitTagsPostBodyPropTaggerType, ) - from .group_1093 import ( + from .group_1094 import ( ReposOwnerRepoPropertiesValuesPatchBodyType as ReposOwnerRepoPropertiesValuesPatchBodyType, ) - from .group_1168 import ( + from .group_1169 import ( SigstoreBundle0PropVerificationMaterialType as SigstoreBundle0PropVerificationMaterialType, ) from .group_0160 import ( @@ -2943,34 +2943,34 @@ from .group_0844 import ( OrgsOrgActionsRunnerGroupsGetResponse200Type as OrgsOrgActionsRunnerGroupsGetResponse200Type, ) - from .group_0878 import ( + from .group_0879 import ( OrgsOrgCopilotBillingSeatsGetResponse200Type as OrgsOrgCopilotBillingSeatsGetResponse200Type, ) - from .group_0909 import ( + from .group_0910 import ( OrgsOrgPersonalAccessTokensPatIdPostBodyType as OrgsOrgPersonalAccessTokensPatIdPostBodyType, ) - from .group_0914 import ( + from .group_0915 import ( OrgsOrgReposPostBodyPropCustomPropertiesType as OrgsOrgReposPostBodyPropCustomPropertiesType, ) - from .group_0931 import ( + from .group_0932 import ( OrgsOrgSecurityProductEnablementPostBodyType as OrgsOrgSecurityProductEnablementPostBodyType, ) - from .group_1009 import ( + from .group_1010 import ( ReposOwnerRepoCodeScanningSarifsPostBodyType as ReposOwnerRepoCodeScanningSarifsPostBodyType, ) - from .group_1018 import ( + from .group_1019 import ( ReposOwnerRepoCommentsCommentIdPatchBodyType as ReposOwnerRepoCommentsCommentIdPatchBodyType, ) - from .group_1029 import ( + from .group_1030 import ( ReposOwnerRepoDeploymentsPostResponse202Type as ReposOwnerRepoDeploymentsPostResponse202Type, ) - from .group_1050 import ( + from .group_1051 import ( ReposOwnerRepoHooksHookIdConfigPatchBodyType as ReposOwnerRepoHooksHookIdConfigPatchBodyType, ) - from .group_1060 import ( + from .group_1061 import ( ReposOwnerRepoIssuesIssueNumberPatchBodyType as ReposOwnerRepoIssuesIssueNumberPatchBodyType, ) - from .group_1116 import ( + from .group_1117 import ( ReposOwnerRepoReleasesReleaseIdPatchBodyType as ReposOwnerRepoReleasesReleaseIdPatchBodyType, ) from .group_0025 import ( @@ -3120,34 +3120,34 @@ from .group_0865 import ( OrgsOrgCodeSecurityConfigurationsPostBodyType as OrgsOrgCodeSecurityConfigurationsPostBodyType, ) - from .group_0875 import ( + from .group_0876 import ( OrgsOrgCodespacesSecretsSecretNamePutBodyType as OrgsOrgCodespacesSecretsSecretNamePutBodyType, ) - from .group_0889 import ( + from .group_0890 import ( OrgsOrgDependabotSecretsSecretNamePutBodyType as OrgsOrgDependabotSecretsSecretNamePutBodyType, ) - from .group_0929 import ( + from .group_0930 import ( OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType as OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType, ) - from .group_0977 import ( + from .group_0978 import ( ReposOwnerRepoAttestationsPostResponse201Type as ReposOwnerRepoAttestationsPostResponse201Type, ) - from .group_0996 import ( + from .group_0997 import ( ReposOwnerRepoCheckRunsPostBodyPropOutputType as ReposOwnerRepoCheckRunsPostBodyPropOutputType, ) - from .group_1014 import ( + from .group_1015 import ( ReposOwnerRepoCodespacesNewGetResponse200Type as ReposOwnerRepoCodespacesNewGetResponse200Type, ) - from .group_1080 import ( + from .group_1081 import ( ReposOwnerRepoNotificationsPutResponse202Type as ReposOwnerRepoNotificationsPutResponse202Type, ) - from .group_1101 import ( + from .group_1102 import ( ReposOwnerRepoPullsPullNumberMergePutBodyType as ReposOwnerRepoPullsPullNumberMergePutBodyType, ) - from .group_1141 import ( + from .group_1142 import ( TeamsTeamIdTeamSyncGroupMappingsPatchBodyType as TeamsTeamIdTeamSyncGroupMappingsPatchBodyType, ) - from .group_1159 import ( + from .group_1160 import ( UserInteractionLimitsGetResponse200Anyof1Type as UserInteractionLimitsGetResponse200Anyof1Type, ) from .group_0025 import ( @@ -3291,52 +3291,52 @@ from .group_0853 import ( OrgsOrgActionsRunnersRunnerIdLabelsPutBodyType as OrgsOrgActionsRunnersRunnerIdLabelsPutBodyType, ) - from .group_0879 import ( + from .group_0880 import ( OrgsOrgCopilotBillingSelectedTeamsPostBodyType as OrgsOrgCopilotBillingSelectedTeamsPostBodyType, ) - from .group_0883 import ( + from .group_0884 import ( OrgsOrgCopilotBillingSelectedUsersPostBodyType as OrgsOrgCopilotBillingSelectedUsersPostBodyType, ) - from .group_0887 import ( + from .group_0888 import ( OrgsOrgCustomRepositoryRolesGetResponse200Type as OrgsOrgCustomRepositoryRolesGetResponse200Type, ) - from .group_0903 import ( + from .group_0904 import ( OrgsOrgOutsideCollaboratorsUsernamePutBodyType as OrgsOrgOutsideCollaboratorsUsernamePutBodyType, ) - from .group_0906 import ( + from .group_0907 import ( OrgsOrgPersonalAccessTokenRequestsPostBodyType as OrgsOrgPersonalAccessTokenRequestsPostBodyType, ) - from .group_0939 import ( + from .group_0940 import ( ProjectsColumnsColumnIdCardsPostBodyOneof0Type as ProjectsColumnsColumnIdCardsPostBodyOneof0Type, ) - from .group_0940 import ( + from .group_0941 import ( ProjectsColumnsColumnIdCardsPostBodyOneof1Type as ProjectsColumnsColumnIdCardsPostBodyOneof1Type, ) - from .group_0957 import ( + from .group_0958 import ( ReposOwnerRepoActionsRunnersGetResponse200Type as ReposOwnerRepoActionsRunnersGetResponse200Type, ) - from .group_0968 import ( + from .group_0969 import ( ReposOwnerRepoActionsSecretsGetResponse200Type as ReposOwnerRepoActionsSecretsGetResponse200Type, ) - from .group_0995 import ( + from .group_0996 import ( ReposOwnerRepoBranchesBranchRenamePostBodyType as ReposOwnerRepoBranchesBranchRenamePostBodyType, ) - from .group_1017 import ( + from .group_1018 import ( ReposOwnerRepoCollaboratorsUsernamePutBodyType as ReposOwnerRepoCollaboratorsUsernamePutBodyType, ) - from .group_1043 import ( + from .group_1044 import ( ReposOwnerRepoGitCommitsPostBodyPropAuthorType as ReposOwnerRepoGitCommitsPostBodyPropAuthorType, ) - from .group_1070 import ( + from .group_1071 import ( ReposOwnerRepoIssuesIssueNumberLockPutBodyType as ReposOwnerRepoIssuesIssueNumberLockPutBodyType, ) - from .group_1081 import ( + from .group_1082 import ( ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type as ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, ) - from .group_1139 import ( + from .group_1140 import ( TeamsTeamIdProjectsProjectIdPutResponse403Type as TeamsTeamIdProjectsProjectIdPutResponse403Type, ) - from .group_1152 import ( + from .group_1153 import ( UserCodespacesCodespaceNamePublishPostBodyType as UserCodespacesCodespaceNamePublishPostBodyType, ) from .group_0025 import ( @@ -3468,40 +3468,40 @@ from .group_0854 import ( OrgsOrgActionsRunnersRunnerIdLabelsPostBodyType as OrgsOrgActionsRunnersRunnerIdLabelsPostBodyType, ) - from .group_0925 import ( + from .group_0926 import ( OrgsOrgTeamsTeamSlugExternalGroupsPatchBodyType as OrgsOrgTeamsTeamSlugExternalGroupsPatchBodyType, ) - from .group_0932 import ( + from .group_0933 import ( ProjectsColumnsCardsCardIdDeleteResponse403Type as ProjectsColumnsCardsCardIdDeleteResponse403Type, ) - from .group_0941 import ( + from .group_0942 import ( ProjectsColumnsColumnIdCardsPostResponse503Type as ProjectsColumnsColumnIdCardsPostResponse503Type, ) - from .group_0943 import ( + from .group_0944 import ( ProjectsColumnsColumnIdMovesPostResponse201Type as ProjectsColumnsColumnIdMovesPostResponse201Type, ) - from .group_0952 import ( + from .group_0953 import ( ReposOwnerRepoActionsJobsJobIdRerunPostBodyType as ReposOwnerRepoActionsJobsJobIdRerunPostBodyType, ) - from .group_0966 import ( + from .group_0967 import ( ReposOwnerRepoActionsRunsRunIdRerunPostBodyType as ReposOwnerRepoActionsRunsRunIdRerunPostBodyType, ) - from .group_0972 import ( + from .group_0973 import ( ReposOwnerRepoActionsVariablesNamePatchBodyType as ReposOwnerRepoActionsVariablesNamePatchBodyType, ) - from .group_1022 import ( + from .group_1023 import ( ReposOwnerRepoContentsPathPutBodyPropAuthorType as ReposOwnerRepoContentsPathPutBodyPropAuthorType, ) - from .group_1047 import ( + from .group_1048 import ( ReposOwnerRepoGitTreesPostBodyPropTreeItemsType as ReposOwnerRepoGitTreesPostBodyPropTreeItemsType, ) - from .group_1115 import ( + from .group_1116 import ( ReposOwnerRepoReleasesGenerateNotesPostBodyType as ReposOwnerRepoReleasesGenerateNotesPostBodyType, ) - from .group_1127 import ( + from .group_1128 import ( ScimV2OrganizationsOrgUsersPostBodyPropNameType as ScimV2OrganizationsOrgUsersPostBodyPropNameType, ) - from .group_1145 import ( + from .group_1146 import ( UserCodespacesPostBodyOneof1PropPullRequestType as UserCodespacesPostBodyOneof1PropPullRequestType, ) from .group_0053 import ( @@ -3600,43 +3600,43 @@ from .group_0843 import ( OrgsOrgActionsPermissionsRepositoriesPutBodyType as OrgsOrgActionsPermissionsRepositoriesPutBodyType, ) - from .group_0872 import ( + from .group_0873 import ( OrgsOrgCodespacesAccessSelectedUsersPostBodyType as OrgsOrgCodespacesAccessSelectedUsersPostBodyType, ) - from .group_0881 import ( + from .group_0882 import ( OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType as OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType, ) - from .group_0885 import ( + from .group_0886 import ( OrgsOrgCopilotBillingSelectedUsersDeleteBodyType as OrgsOrgCopilotBillingSelectedUsersDeleteBodyType, ) - from .group_0896 import ( + from .group_0897 import ( OrgsOrgInteractionLimitsGetResponse200Anyof1Type as OrgsOrgInteractionLimitsGetResponse200Anyof1Type, ) - from .group_0927 import ( + from .group_0928 import ( OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType as OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType, ) - from .group_0951 import ( + from .group_0952 import ( ReposOwnerRepoActionsArtifactsGetResponse200Type as ReposOwnerRepoActionsArtifactsGetResponse200Type, ) - from .group_0970 import ( + from .group_0971 import ( ReposOwnerRepoActionsVariablesGetResponse200Type as ReposOwnerRepoActionsVariablesGetResponse200Type, ) - from .group_0973 import ( + from .group_0974 import ( ReposOwnerRepoActionsWorkflowsGetResponse200Type as ReposOwnerRepoActionsWorkflowsGetResponse200Type, ) - from .group_0976 import ( + from .group_0977 import ( ReposOwnerRepoAttestationsPostBodyPropBundleType as ReposOwnerRepoAttestationsPostBodyPropBundleType, ) - from .group_1053 import ( + from .group_1054 import ( ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType as ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType, ) - from .group_1107 import ( + from .group_1108 import ( ReposOwnerRepoPullsPullNumberReviewsPostBodyType as ReposOwnerRepoPullsPullNumberReviewsPostBodyType, ) - from .group_1114 import ( + from .group_1115 import ( ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType as ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType, ) - from .group_1128 import ( + from .group_1129 import ( ScimV2OrganizationsOrgUsersScimUserIdPutBodyType as ScimV2OrganizationsOrgUsersScimUserIdPutBodyType, ) from .group_0025 import ( @@ -3720,31 +3720,31 @@ from .group_0759 import ( WebhookSecurityAndAnalysisPropChangesPropFromType as WebhookSecurityAndAnalysisPropChangesPropFromType, ) - from .group_0947 import ( + from .group_0948 import ( ProjectsProjectIdCollaboratorsUsernamePutBodyType as ProjectsProjectIdCollaboratorsUsernamePutBodyType, ) - from .group_0969 import ( + from .group_0970 import ( ReposOwnerRepoActionsSecretsSecretNamePutBodyType as ReposOwnerRepoActionsSecretsSecretNamePutBodyType, ) - from .group_0980 import ( + from .group_0981 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyType as ReposOwnerRepoBranchesBranchProtectionPutBodyType, ) - from .group_1003 import ( + from .group_1004 import ( ReposOwnerRepoCheckSuitesPreferencesPatchBodyType as ReposOwnerRepoCheckSuitesPreferencesPatchBodyType, ) - from .group_1015 import ( + from .group_1016 import ( ReposOwnerRepoCodespacesSecretsGetResponse200Type as ReposOwnerRepoCodespacesSecretsGetResponse200Type, ) - from .group_1025 import ( + from .group_1026 import ( ReposOwnerRepoDependabotSecretsGetResponse200Type as ReposOwnerRepoDependabotSecretsGetResponse200Type, ) - from .group_1043 import ( + from .group_1044 import ( ReposOwnerRepoGitCommitsPostBodyPropCommitterType as ReposOwnerRepoGitCommitsPostBodyPropCommitterType, ) - from .group_1095 import ( + from .group_1096 import ( ReposOwnerRepoPullsCommentsCommentIdPatchBodyType as ReposOwnerRepoPullsCommentsCommentIdPatchBodyType, ) - from .group_1099 import ( + from .group_1100 import ( ReposOwnerRepoPullsPullNumberCommentsPostBodyType as ReposOwnerRepoPullsPullNumberCommentsPostBodyType, ) from .group_0413 import ( @@ -3843,49 +3843,49 @@ from .group_0864 import ( OrgsOrgAttestationsSubjectDigestGetResponse200Type as OrgsOrgAttestationsSubjectDigestGetResponse200Type, ) - from .group_0873 import ( + from .group_0874 import ( OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType as OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType, ) - from .group_0898 import ( + from .group_0899 import ( OrgsOrgMembersUsernameCodespacesGetResponse200Type as OrgsOrgMembersUsernameCodespacesGetResponse200Type, ) - from .group_0926 import ( + from .group_0927 import ( OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType as OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType, ) - from .group_0935 import ( + from .group_0936 import ( ProjectsColumnsCardsCardIdMovesPostResponse201Type as ProjectsColumnsCardsCardIdMovesPostResponse201Type, ) - from .group_0936 import ( + from .group_0937 import ( ProjectsColumnsCardsCardIdMovesPostResponse403Type as ProjectsColumnsCardsCardIdMovesPostResponse403Type, ) - from .group_0937 import ( + from .group_0938 import ( ProjectsColumnsCardsCardIdMovesPostResponse503Type as ProjectsColumnsCardsCardIdMovesPostResponse503Type, ) - from .group_0950 import ( + from .group_0951 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType, ) - from .group_1013 import ( + from .group_1014 import ( ReposOwnerRepoCodespacesMachinesGetResponse200Type as ReposOwnerRepoCodespacesMachinesGetResponse200Type, ) - from .group_1020 import ( + from .group_1021 import ( ReposOwnerRepoCommitsCommitShaCommentsPostBodyType as ReposOwnerRepoCommitsCommitShaCommentsPostBodyType, ) - from .group_1022 import ( + from .group_1023 import ( ReposOwnerRepoContentsPathPutBodyPropCommitterType as ReposOwnerRepoContentsPathPutBodyPropCommitterType, ) - from .group_1023 import ( + from .group_1024 import ( ReposOwnerRepoContentsPathDeleteBodyPropAuthorType as ReposOwnerRepoContentsPathDeleteBodyPropAuthorType, ) - from .group_1056 import ( + from .group_1057 import ( ReposOwnerRepoInvitationsInvitationIdPatchBodyType as ReposOwnerRepoInvitationsInvitationIdPatchBodyType, ) - from .group_1058 import ( + from .group_1059 import ( ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType as ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType, ) - from .group_1126 import ( + from .group_1127 import ( ReposTemplateOwnerTemplateRepoGeneratePostBodyType as ReposTemplateOwnerTemplateRepoGeneratePostBodyType, ) - from .group_1129 import ( + from .group_1130 import ( ScimV2OrganizationsOrgUsersScimUserIdPatchBodyType as ScimV2OrganizationsOrgUsersScimUserIdPatchBodyType, ) from .group_0025 import ( @@ -3996,19 +3996,19 @@ from .group_0837 import ( NotificationsThreadsThreadIdSubscriptionPutBodyType as NotificationsThreadsThreadIdSubscriptionPutBodyType, ) - from .group_0996 import ( + from .group_0997 import ( ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType as ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType, ) - from .group_1021 import ( + from .group_1022 import ( ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type as ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type, ) - from .group_1063 import ( + from .group_1064 import ( ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType as ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType, ) - from .group_1098 import ( + from .group_1099 import ( ReposOwnerRepoPullsPullNumberCodespacesPostBodyType as ReposOwnerRepoPullsPullNumberCodespacesPostBodyType, ) - from .group_1132 import ( + from .group_1133 import ( TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType as TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType, ) from .group_0081 import ( @@ -4113,52 +4113,52 @@ from .group_0846 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBodyType as OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBodyType, ) - from .group_0912 import ( + from .group_0913 import ( OrgsOrgPropertiesSchemaCustomPropertyNamePutBodyType as OrgsOrgPropertiesSchemaCustomPropertyNamePutBodyType, ) - from .group_0953 import ( + from .group_0954 import ( ReposOwnerRepoActionsOidcCustomizationSubPutBodyType as ReposOwnerRepoActionsOidcCustomizationSubPutBodyType, ) - from .group_0964 import ( + from .group_0965 import ( ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type as ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type, ) - from .group_1000 import ( + from .group_1001 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type, ) - from .group_1001 import ( + from .group_1002 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type, ) - from .group_1016 import ( + from .group_1017 import ( ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType as ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType, ) - from .group_1019 import ( + from .group_1020 import ( ReposOwnerRepoCommentsCommentIdReactionsPostBodyType as ReposOwnerRepoCommentsCommentIdReactionsPostBodyType, ) - from .group_1026 import ( + from .group_1027 import ( ReposOwnerRepoDependabotSecretsSecretNamePutBodyType as ReposOwnerRepoDependabotSecretsSecretNamePutBodyType, ) - from .group_1032 import ( + from .group_1033 import ( ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyType as ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyType, ) - from .group_1061 import ( + from .group_1062 import ( ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType as ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType, ) - from .group_1071 import ( + from .group_1072 import ( ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType as ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType, ) - from .group_1078 import ( + from .group_1079 import ( ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType as ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType, ) - from .group_1102 import ( + from .group_1103 import ( ReposOwnerRepoPullsPullNumberMergePutResponse405Type as ReposOwnerRepoPullsPullNumberMergePutResponse405Type, ) - from .group_1103 import ( + from .group_1104 import ( ReposOwnerRepoPullsPullNumberMergePutResponse409Type as ReposOwnerRepoPullsPullNumberMergePutResponse409Type, ) - from .group_1111 import ( + from .group_1112 import ( ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType as ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType, ) - from .group_1117 import ( + from .group_1118 import ( ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType as ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType, ) from .group_0132 import ( @@ -4323,28 +4323,31 @@ from .group_0813 import ( EnterprisesEnterpriseActionsRunnersGetResponse200Type as EnterprisesEnterpriseActionsRunnersGetResponse200Type, ) - from .group_0880 import ( + from .group_0866 import ( + OrgsOrgCodeSecurityConfigurationsDetachDeleteBodyType as OrgsOrgCodeSecurityConfigurationsDetachDeleteBodyType, + ) + from .group_0881 import ( OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type as OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type, ) - from .group_0884 import ( + from .group_0885 import ( OrgsOrgCopilotBillingSelectedUsersPostResponse201Type as OrgsOrgCopilotBillingSelectedUsersPostResponse201Type, ) - from .group_0904 import ( + from .group_0905 import ( OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type as OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type, ) - from .group_0959 import ( + from .group_0960 import ( ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType as ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType, ) - from .group_1023 import ( + from .group_1024 import ( ReposOwnerRepoContentsPathDeleteBodyPropCommitterType as ReposOwnerRepoContentsPathDeleteBodyPropCommitterType, ) - from .group_1031 import ( + from .group_1032 import ( ReposOwnerRepoDispatchesPostBodyPropClientPayloadType as ReposOwnerRepoDispatchesPostBodyPropClientPayloadType, ) - from .group_1057 import ( + from .group_1058 import ( ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type as ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type, ) - from .group_1151 import ( + from .group_1152 import ( UserCodespacesCodespaceNameMachinesGetResponse200Type as UserCodespacesCodespaceNameMachinesGetResponse200Type, ) from .group_0053 import ( @@ -4452,34 +4455,34 @@ from .group_0858 import ( OrgsOrgActionsSecretsSecretNameRepositoriesPutBodyType as OrgsOrgActionsSecretsSecretNameRepositoriesPutBodyType, ) - from .group_0930 import ( + from .group_0931 import ( OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyType as OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyType, ) - from .group_0960 import ( + from .group_0961 import ( ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType as ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType, ) - from .group_1024 import ( + from .group_1025 import ( ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType as ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType, ) - from .group_1028 import ( + from .group_1029 import ( ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type as ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type, ) - from .group_1062 import ( + from .group_1063 import ( ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType as ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType, ) - from .group_1064 import ( + from .group_1065 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type, ) - from .group_1065 import ( + from .group_1066 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type, ) - from .group_1127 import ( + from .group_1128 import ( ScimV2OrganizationsOrgUsersPostBodyPropEmailsItemsType as ScimV2OrganizationsOrgUsersPostBodyPropEmailsItemsType, ) - from .group_1149 import ( + from .group_1150 import ( UserCodespacesSecretsSecretNameRepositoriesPutBodyType as UserCodespacesSecretsSecretNameRepositoriesPutBodyType, ) - from .group_1168 import ( + from .group_1169 import ( SigstoreBundle0PropDsseEnvelopePropSignaturesItemsType as SigstoreBundle0PropDsseEnvelopePropSignaturesItemsType, ) from .group_0053 import ( @@ -4572,28 +4575,28 @@ from .group_0842 import ( OrgsOrgActionsPermissionsRepositoriesGetResponse200Type as OrgsOrgActionsPermissionsRepositoriesGetResponse200Type, ) - from .group_0882 import ( + from .group_0883 import ( OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type as OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type, ) - from .group_0886 import ( + from .group_0887 import ( OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type as OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type, ) - from .group_0928 import ( + from .group_0929 import ( OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type as OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type, ) - from .group_1012 import ( + from .group_1013 import ( ReposOwnerRepoCodespacesDevcontainersGetResponse200Type as ReposOwnerRepoCodespacesDevcontainersGetResponse200Type, ) - from .group_1055 import ( + from .group_1056 import ( ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type as ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type, ) - from .group_1067 import ( + from .group_1068 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type, ) - from .group_1068 import ( + from .group_1069 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2Type as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2Type, ) - from .group_1108 import ( + from .group_1109 import ( ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType as ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType, ) from .group_0149 import ( @@ -4689,19 +4692,19 @@ from .group_0838 import ( OrganizationsOrganizationIdCustomRolesGetResponse200Type as OrganizationsOrganizationIdCustomRolesGetResponse200Type, ) - from .group_0905 import ( + from .group_0906 import ( OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type as OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type, ) - from .group_0999 import ( + from .group_1000 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType, ) - from .group_1005 import ( + from .group_1006 import ( ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType as ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType, ) - from .group_1128 import ( + from .group_1129 import ( ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropNameType as ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropNameType, ) - from .group_1168 import ( + from .group_1169 import ( UsersUsernameAttestationsSubjectDigestGetResponse200Type as UsersUsernameAttestationsSubjectDigestGetResponse200Type, ) from .group_0197 import ( @@ -4842,34 +4845,34 @@ from .group_0862 import ( OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type as OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type, ) - from .group_0877 import ( + from .group_0878 import ( OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType as OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType, ) - from .group_0891 import ( + from .group_0892 import ( OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType as OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType, ) - from .group_0958 import ( + from .group_0959 import ( ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType as ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType, ) - from .group_0962 import ( + from .group_0963 import ( ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type as ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type, ) - from .group_0967 import ( + from .group_0968 import ( ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType as ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType, ) - from .group_0978 import ( + from .group_0979 import ( ReposOwnerRepoAttestationsSubjectDigestGetResponse200Type as ReposOwnerRepoAttestationsSubjectDigestGetResponse200Type, ) - from .group_1014 import ( + from .group_1015 import ( ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType as ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType, ) - from .group_1027 import ( + from .group_1028 import ( ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type as ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type, ) - from .group_1030 import ( + from .group_1031 import ( ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType as ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType, ) - from .group_1096 import ( + from .group_1097 import ( ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType as ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType, ) from .group_0197 import ( @@ -4989,19 +4992,19 @@ from .group_0822 import ( EnterprisesEnterpriseCopilotBillingSeatsGetResponse200Type as EnterprisesEnterpriseCopilotBillingSeatsGetResponse200Type, ) - from .group_0907 import ( + from .group_0908 import ( OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType as OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType, ) - from .group_0954 import ( + from .group_0955 import ( ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type as ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type, ) - from .group_1059 import ( + from .group_1060 import ( ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType as ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType, ) - from .group_1120 import ( + from .group_1121 import ( ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType as ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType, ) - from .group_1133 import ( + from .group_1134 import ( TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType as TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType, ) from .group_0060 import ( @@ -5115,13 +5118,13 @@ from .group_0778 import ( WebhookTeamRemovedFromRepositoryPropRepositoryPropOwnerType as WebhookTeamRemovedFromRepositoryPropRepositoryPropOwnerType, ) - from .group_1066 import ( + from .group_1067 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType, ) - from .group_1112 import ( + from .group_1113 import ( ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type as ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type, ) - from .group_1136 import ( + from .group_1137 import ( TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType as TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType, ) from .group_0056 import ( @@ -5268,22 +5271,22 @@ from .group_0817 import ( EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBodyType as EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBodyType, ) - from .group_0920 import ( + from .group_0921 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBodyType as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBodyType, ) - from .group_0955 import ( + from .group_0956 import ( ReposOwnerRepoActionsOrganizationVariablesGetResponse200Type as ReposOwnerRepoActionsOrganizationVariablesGetResponse200Type, ) - from .group_0965 import ( + from .group_0966 import ( ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBodyType as ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBodyType, ) - from .group_0996 import ( + from .group_0997 import ( ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType as ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType, ) - from .group_1069 import ( + from .group_1070 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType, ) - from .group_1141 import ( + from .group_1142 import ( TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItemsType as TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItemsType, ) from .group_0116 import ( @@ -5430,19 +5433,19 @@ from .group_0857 import ( OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200Type as OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200Type, ) - from .group_0866 import ( + from .group_0867 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyType as OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyType, ) - from .group_1091 import ( + from .group_1092 import ( ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200Type as ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200Type, ) - from .group_1106 import ( + from .group_1107 import ( ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBodyType as ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBodyType, ) - from .group_1148 import ( + from .group_1149 import ( UserCodespacesSecretsSecretNameRepositoriesGetResponse200Type as UserCodespacesSecretsSecretNameRepositoriesGetResponse200Type, ) - from .group_1158 import ( + from .group_1159 import ( UserInstallationsInstallationIdRepositoriesGetResponse200Type as UserInstallationsInstallationIdRepositoriesGetResponse200Type, ) from .group_0439 import ( @@ -5541,22 +5544,22 @@ from .group_0848 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBodyType as OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBodyType, ) - from .group_0941 import ( + from .group_0942 import ( ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType as ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType, ) - from .group_0974 import ( + from .group_0975 import ( ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyType as ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyType, ) - from .group_0975 import ( + from .group_0976 import ( ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200Type as ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200Type, ) - from .group_0999 import ( + from .group_1000 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType, ) - from .group_1039 import ( + from .group_1040 import ( ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBodyType as ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBodyType, ) - from .group_1110 import ( + from .group_1111 import ( ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBodyType as ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBodyType, ) from .group_0052 import ( @@ -5670,10 +5673,10 @@ from .group_0805 import ( EnterprisesEnterpriseActionsPermissionsOrganizationsPutBodyType as EnterprisesEnterpriseActionsPermissionsOrganizationsPutBodyType, ) - from .group_1128 import ( + from .group_1129 import ( ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItemsType as ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItemsType, ) - from .group_1168 import ( + from .group_1169 import ( SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsType as SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsType, ) from .group_0439 import ( @@ -5790,16 +5793,16 @@ from .group_0849 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type as OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type, ) - from .group_0876 import ( + from .group_0877 import ( OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type as OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type, ) - from .group_0890 import ( + from .group_0891 import ( OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type as OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type, ) - from .group_0976 import ( + from .group_0977 import ( ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelopeType as ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelopeType, ) - from .group_1004 import ( + from .group_1005 import ( ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type as ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type, ) from .group_0130 import ( @@ -5949,43 +5952,43 @@ from .group_0791 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActorType as WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActorType, ) - from .group_0936 import ( + from .group_0937 import ( ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType as ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType, ) - from .group_0937 import ( + from .group_0938 import ( ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType as ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType, ) - from .group_0980 import ( + from .group_0981 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictionsType as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictionsType, ) - from .group_0996 import ( + from .group_0997 import ( ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType as ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType, ) - from .group_1006 import ( + from .group_1007 import ( ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0Type as ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0Type, ) - from .group_1007 import ( + from .group_1008 import ( ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1Type as ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1Type, ) - from .group_1008 import ( + from .group_1009 import ( ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2Type as ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2Type, ) - from .group_1060 import ( + from .group_1061 import ( ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type as ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type, ) - from .group_1100 import ( + from .group_1101 import ( ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBodyType as ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBodyType, ) - from .group_1104 import ( + from .group_1105 import ( ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0Type as ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0Type, ) - from .group_1105 import ( + from .group_1106 import ( ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1Type as ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1Type, ) - from .group_1107 import ( + from .group_1108 import ( ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType as ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType, ) - from .group_1109 import ( + from .group_1110 import ( ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBodyType as ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBodyType, ) from .group_0439 import ( @@ -6135,10 +6138,10 @@ from .group_0808 import ( EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBodyType as EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBodyType, ) - from .group_0867 import ( + from .group_0868 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBodyType as OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBodyType, ) - from .group_1036 import ( + from .group_1037 import ( ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200Type as ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200Type, ) from .group_0203 import ( @@ -6246,16 +6249,16 @@ from .group_0816 import ( EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200Type as EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200Type, ) - from .group_0868 import ( + from .group_0869 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType as OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType, ) - from .group_0921 import ( + from .group_0922 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType, ) - from .group_1040 import ( + from .group_1041 import ( ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType as ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType, ) - from .group_1168 import ( + from .group_1169 import ( SigstoreBundle0PropVerificationMaterialPropX509CertificateChainType as SigstoreBundle0PropVerificationMaterialPropX509CertificateChainType, ) from .group_0117 import ( @@ -6372,13 +6375,13 @@ from .group_0790 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsType as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsType, ) - from .group_0924 import ( + from .group_0925 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBodyType as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBodyType, ) - from .group_0950 import ( + from .group_0951 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType, ) - from .group_1038 import ( + from .group_1039 import ( ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200Type as ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200Type, ) from .group_0128 import ( @@ -6510,16 +6513,16 @@ from .group_0847 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200Type as OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200Type, ) - from .group_0930 import ( + from .group_0931 import ( OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItemsType as OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItemsType, ) - from .group_1037 import ( + from .group_1038 import ( ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBodyType as ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBodyType, ) - from .group_1065 import ( + from .group_1066 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType, ) - from .group_1129 import ( + from .group_1130 import ( ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsType as ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsType, ) from .group_0116 import ( @@ -6711,13 +6714,13 @@ from .group_0819 import ( EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200Type as EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200Type, ) - from .group_0950 import ( + from .group_0951 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType, ) - from .group_1032 import ( + from .group_1033 import ( ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType as ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType, ) - from .group_1068 import ( + from .group_1069 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType, ) from .group_0230 import ( @@ -6870,13 +6873,13 @@ from .group_0864 import ( OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsType as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsType, ) - from .group_0982 import ( + from .group_0983 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyType as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyType, ) - from .group_0986 import ( + from .group_0987 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0Type, ) - from .group_0999 import ( + from .group_1000 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType, ) from .group_0464 import ( @@ -7017,25 +7020,25 @@ from .group_0712 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType, ) - from .group_0974 import ( + from .group_0975 import ( ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType as ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType, ) - from .group_0976 import ( + from .group_0977 import ( ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterialType as ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterialType, ) - from .group_0987 import ( + from .group_0988 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0Type, ) - from .group_0989 import ( + from .group_0990 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0Type, ) - from .group_0992 import ( + from .group_0993 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0Type, ) - from .group_1134 import ( + from .group_1135 import ( TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType as TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType, ) - from .group_1168 import ( + from .group_1169 import ( SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogIdType as SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogIdType, ) from .group_0262 import ( @@ -7176,16 +7179,16 @@ from .group_0791 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType, ) - from .group_0963 import ( + from .group_0964 import ( ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200Type as ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200Type, ) - from .group_0980 import ( + from .group_0981 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksType as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksType, ) - from .group_0990 import ( + from .group_0991 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type, ) - from .group_0993 import ( + from .group_0994 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0Type, ) from .group_0215 import ( @@ -7302,10 +7305,10 @@ from .group_0791 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItemsType as WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItemsType, ) - from .group_0869 import ( + from .group_0870 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type as OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type, ) - from .group_0988 import ( + from .group_0989 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0Type, ) from .group_0116 import ( @@ -7452,13 +7455,13 @@ from .group_0791 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType, ) - from .group_0991 import ( + from .group_0992 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Type, ) - from .group_0994 import ( + from .group_0995 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0Type, ) - from .group_1003 import ( + from .group_1004 import ( ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType as ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType, ) from .group_0484 import ( @@ -7578,7 +7581,7 @@ from .group_0790 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType, ) - from .group_0999 import ( + from .group_1000 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType, ) from .group_0116 import ( @@ -7677,13 +7680,13 @@ from .group_0810 import ( EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBodyType as EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBodyType, ) - from .group_0981 import ( + from .group_0982 import ( ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyType as ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyType, ) - from .group_1012 import ( + from .group_1013 import ( ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType as ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType, ) - from .group_1168 import ( + from .group_1169 import ( UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType as UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType, ) from .group_0464 import ( @@ -7827,13 +7830,13 @@ from .group_0811 import ( EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type as EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type, ) - from .group_0978 import ( + from .group_0979 import ( ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsType as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsType, ) - from .group_1034 import ( + from .group_1035 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType, ) - from .group_1168 import ( + from .group_1169 import ( SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersionType as SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersionType, ) from .group_0485 import ( @@ -7968,7 +7971,7 @@ from .group_0823 import ( EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBodyType as EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBodyType, ) - from .group_0980 import ( + from .group_0981 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsType as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsType, ) from .group_0215 import ( @@ -8058,7 +8061,7 @@ from .group_0756 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsType, ) - from .group_1135 import ( + from .group_1136 import ( TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType as TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType, ) from .group_0464 import ( @@ -8142,7 +8145,7 @@ from .group_0864 import ( OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType, ) - from .group_0922 import ( + from .group_0923 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType, ) from .group_0482 import ( @@ -8211,10 +8214,10 @@ from .group_0712 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType, ) - from .group_0950 import ( + from .group_0951 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType, ) - from .group_0950 import ( + from .group_0951 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecksType as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecksType, ) from .group_0480 import ( @@ -8304,13 +8307,13 @@ from .group_0791 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0983 import ( + from .group_0984 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type, ) - from .group_1033 import ( + from .group_1034 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type, ) - from .group_1168 import ( + from .group_1169 import ( SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromiseType as SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromiseType, ) from .group_0275 import ( @@ -8400,10 +8403,10 @@ from .group_0809 import ( EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200Type as EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200Type, ) - from .group_0984 import ( + from .group_0985 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0Type, ) - from .group_1129 import ( + from .group_1130 import ( ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0Type as ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0Type, ) from .group_0486 import ( @@ -8535,10 +8538,10 @@ from .group_0824 import ( EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse200Type as EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse200Type, ) - from .group_0982 import ( + from .group_0983 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType, ) - from .group_0985 import ( + from .group_0986 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0Type, ) from .group_0481 import ( @@ -8592,7 +8595,7 @@ from .group_0715 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItemsType as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItemsType, ) - from .group_0950 import ( + from .group_0951 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatternsType as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatternsType, ) from .group_0464 import ( @@ -8661,16 +8664,16 @@ from .group_0826 import ( EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteResponse200Type as EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteResponse200Type, ) - from .group_0978 import ( + from .group_0979 import ( ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType, ) - from .group_0980 import ( + from .group_0981 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItemsType as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItemsType, ) - from .group_1035 import ( + from .group_1036 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type, ) - from .group_1168 import ( + from .group_1169 import ( SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItemsType as SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItemsType, ) from .group_0634 import ( @@ -8715,10 +8718,10 @@ from .group_0712 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItemsType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItemsType, ) - from .group_0923 import ( + from .group_0924 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType, ) - from .group_1129 import ( + from .group_1130 import ( ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1ItemsType as ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1ItemsType, ) from .group_0634 import ( @@ -8973,7 +8976,7 @@ from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0981 import ( + from .group_0982 import ( ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType as ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType, ) from .group_0712 import ( @@ -8991,10 +8994,10 @@ from .group_0756 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType, ) - from .group_0978 import ( + from .group_0979 import ( ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType, ) - from .group_0980 import ( + from .group_0981 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictionsType as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictionsType, ) from .group_0712 import ( @@ -9024,19 +9027,19 @@ from .group_0712 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1Type as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1Type, ) - from .group_0981 import ( + from .group_0982 import ( ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType as ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType, ) from .group_0712 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type, ) - from .group_0980 import ( + from .group_0981 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType, ) from .group_0712 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType, ) - from .group_0978 import ( + from .group_0979 import ( ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType, ) else: @@ -12808,140 +12811,141 @@ "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType", ), ".group_0865": ("OrgsOrgCodeSecurityConfigurationsPostBodyType",), - ".group_0866": ( + ".group_0866": ("OrgsOrgCodeSecurityConfigurationsDetachDeleteBodyType",), + ".group_0867": ( "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyType", ), - ".group_0867": ( + ".group_0868": ( "OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBodyType", ), - ".group_0868": ( + ".group_0869": ( "OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType", ), - ".group_0869": ( + ".group_0870": ( "OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type", ), - ".group_0870": ("OrgsOrgCodespacesGetResponse200Type",), - ".group_0871": ("OrgsOrgCodespacesAccessPutBodyType",), - ".group_0872": ("OrgsOrgCodespacesAccessSelectedUsersPostBodyType",), - ".group_0873": ("OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType",), - ".group_0874": ( + ".group_0871": ("OrgsOrgCodespacesGetResponse200Type",), + ".group_0872": ("OrgsOrgCodespacesAccessPutBodyType",), + ".group_0873": ("OrgsOrgCodespacesAccessSelectedUsersPostBodyType",), + ".group_0874": ("OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType",), + ".group_0875": ( "OrgsOrgCodespacesSecretsGetResponse200Type", "CodespacesOrgSecretType", ), - ".group_0875": ("OrgsOrgCodespacesSecretsSecretNamePutBodyType",), - ".group_0876": ( + ".group_0876": ("OrgsOrgCodespacesSecretsSecretNamePutBodyType",), + ".group_0877": ( "OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type", ), - ".group_0877": ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType",), - ".group_0878": ("OrgsOrgCopilotBillingSeatsGetResponse200Type",), - ".group_0879": ("OrgsOrgCopilotBillingSelectedTeamsPostBodyType",), - ".group_0880": ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type",), - ".group_0881": ("OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType",), - ".group_0882": ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type",), - ".group_0883": ("OrgsOrgCopilotBillingSelectedUsersPostBodyType",), - ".group_0884": ("OrgsOrgCopilotBillingSelectedUsersPostResponse201Type",), - ".group_0885": ("OrgsOrgCopilotBillingSelectedUsersDeleteBodyType",), - ".group_0886": ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type",), - ".group_0887": ("OrgsOrgCustomRepositoryRolesGetResponse200Type",), - ".group_0888": ( + ".group_0878": ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType",), + ".group_0879": ("OrgsOrgCopilotBillingSeatsGetResponse200Type",), + ".group_0880": ("OrgsOrgCopilotBillingSelectedTeamsPostBodyType",), + ".group_0881": ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type",), + ".group_0882": ("OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType",), + ".group_0883": ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type",), + ".group_0884": ("OrgsOrgCopilotBillingSelectedUsersPostBodyType",), + ".group_0885": ("OrgsOrgCopilotBillingSelectedUsersPostResponse201Type",), + ".group_0886": ("OrgsOrgCopilotBillingSelectedUsersDeleteBodyType",), + ".group_0887": ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type",), + ".group_0888": ("OrgsOrgCustomRepositoryRolesGetResponse200Type",), + ".group_0889": ( "OrgsOrgDependabotSecretsGetResponse200Type", "OrganizationDependabotSecretType", ), - ".group_0889": ("OrgsOrgDependabotSecretsSecretNamePutBodyType",), - ".group_0890": ( + ".group_0890": ("OrgsOrgDependabotSecretsSecretNamePutBodyType",), + ".group_0891": ( "OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type", ), - ".group_0891": ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType",), - ".group_0892": ( + ".group_0892": ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType",), + ".group_0893": ( "OrgsOrgHooksPostBodyType", "OrgsOrgHooksPostBodyPropConfigType", ), - ".group_0893": ( + ".group_0894": ( "OrgsOrgHooksHookIdPatchBodyType", "OrgsOrgHooksHookIdPatchBodyPropConfigType", ), - ".group_0894": ("OrgsOrgHooksHookIdConfigPatchBodyType",), - ".group_0895": ("OrgsOrgInstallationsGetResponse200Type",), - ".group_0896": ("OrgsOrgInteractionLimitsGetResponse200Anyof1Type",), - ".group_0897": ("OrgsOrgInvitationsPostBodyType",), - ".group_0898": ("OrgsOrgMembersUsernameCodespacesGetResponse200Type",), - ".group_0899": ("OrgsOrgMembershipsUsernamePutBodyType",), - ".group_0900": ("OrgsOrgMigrationsPostBodyType",), - ".group_0901": ("OrgsOrgOrganizationRolesPostBodyType",), - ".group_0902": ("OrgsOrgOrganizationRolesRoleIdPatchBodyType",), - ".group_0903": ("OrgsOrgOutsideCollaboratorsUsernamePutBodyType",), - ".group_0904": ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type",), - ".group_0905": ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type",), - ".group_0906": ("OrgsOrgPersonalAccessTokenRequestsPostBodyType",), - ".group_0907": ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType",), - ".group_0908": ("OrgsOrgPersonalAccessTokensPostBodyType",), - ".group_0909": ("OrgsOrgPersonalAccessTokensPatIdPostBodyType",), - ".group_0910": ("OrgsOrgProjectsPostBodyType",), - ".group_0911": ("OrgsOrgPropertiesSchemaPatchBodyType",), - ".group_0912": ("OrgsOrgPropertiesSchemaCustomPropertyNamePutBodyType",), - ".group_0913": ("OrgsOrgPropertiesValuesPatchBodyType",), - ".group_0914": ( + ".group_0895": ("OrgsOrgHooksHookIdConfigPatchBodyType",), + ".group_0896": ("OrgsOrgInstallationsGetResponse200Type",), + ".group_0897": ("OrgsOrgInteractionLimitsGetResponse200Anyof1Type",), + ".group_0898": ("OrgsOrgInvitationsPostBodyType",), + ".group_0899": ("OrgsOrgMembersUsernameCodespacesGetResponse200Type",), + ".group_0900": ("OrgsOrgMembershipsUsernamePutBodyType",), + ".group_0901": ("OrgsOrgMigrationsPostBodyType",), + ".group_0902": ("OrgsOrgOrganizationRolesPostBodyType",), + ".group_0903": ("OrgsOrgOrganizationRolesRoleIdPatchBodyType",), + ".group_0904": ("OrgsOrgOutsideCollaboratorsUsernamePutBodyType",), + ".group_0905": ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type",), + ".group_0906": ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type",), + ".group_0907": ("OrgsOrgPersonalAccessTokenRequestsPostBodyType",), + ".group_0908": ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType",), + ".group_0909": ("OrgsOrgPersonalAccessTokensPostBodyType",), + ".group_0910": ("OrgsOrgPersonalAccessTokensPatIdPostBodyType",), + ".group_0911": ("OrgsOrgProjectsPostBodyType",), + ".group_0912": ("OrgsOrgPropertiesSchemaPatchBodyType",), + ".group_0913": ("OrgsOrgPropertiesSchemaCustomPropertyNamePutBodyType",), + ".group_0914": ("OrgsOrgPropertiesValuesPatchBodyType",), + ".group_0915": ( "OrgsOrgReposPostBodyType", "OrgsOrgReposPostBodyPropCustomPropertiesType", ), - ".group_0915": ("OrgsOrgRulesetsPostBodyType",), - ".group_0916": ("OrgsOrgRulesetsRulesetIdPutBodyType",), - ".group_0917": ("OrgsOrgTeamsPostBodyType",), - ".group_0918": ("OrgsOrgTeamsTeamSlugPatchBodyType",), - ".group_0919": ("OrgsOrgTeamsTeamSlugDiscussionsPostBodyType",), - ".group_0920": ( + ".group_0916": ("OrgsOrgRulesetsPostBodyType",), + ".group_0917": ("OrgsOrgRulesetsRulesetIdPutBodyType",), + ".group_0918": ("OrgsOrgTeamsPostBodyType",), + ".group_0919": ("OrgsOrgTeamsTeamSlugPatchBodyType",), + ".group_0920": ("OrgsOrgTeamsTeamSlugDiscussionsPostBodyType",), + ".group_0921": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBodyType", ), - ".group_0921": ( + ".group_0922": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType", ), - ".group_0922": ( + ".group_0923": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType", ), - ".group_0923": ( + ".group_0924": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType", ), - ".group_0924": ( + ".group_0925": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBodyType", ), - ".group_0925": ("OrgsOrgTeamsTeamSlugExternalGroupsPatchBodyType",), - ".group_0926": ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType",), - ".group_0927": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType",), - ".group_0928": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type",), - ".group_0929": ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType",), - ".group_0930": ( + ".group_0926": ("OrgsOrgTeamsTeamSlugExternalGroupsPatchBodyType",), + ".group_0927": ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType",), + ".group_0928": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType",), + ".group_0929": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type",), + ".group_0930": ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType",), + ".group_0931": ( "OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyType", "OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItemsType", ), - ".group_0931": ("OrgsOrgSecurityProductEnablementPostBodyType",), - ".group_0932": ("ProjectsColumnsCardsCardIdDeleteResponse403Type",), - ".group_0933": ("ProjectsColumnsCardsCardIdPatchBodyType",), - ".group_0934": ("ProjectsColumnsCardsCardIdMovesPostBodyType",), - ".group_0935": ("ProjectsColumnsCardsCardIdMovesPostResponse201Type",), - ".group_0936": ( + ".group_0932": ("OrgsOrgSecurityProductEnablementPostBodyType",), + ".group_0933": ("ProjectsColumnsCardsCardIdDeleteResponse403Type",), + ".group_0934": ("ProjectsColumnsCardsCardIdPatchBodyType",), + ".group_0935": ("ProjectsColumnsCardsCardIdMovesPostBodyType",), + ".group_0936": ("ProjectsColumnsCardsCardIdMovesPostResponse201Type",), + ".group_0937": ( "ProjectsColumnsCardsCardIdMovesPostResponse403Type", "ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType", ), - ".group_0937": ( + ".group_0938": ( "ProjectsColumnsCardsCardIdMovesPostResponse503Type", "ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType", ), - ".group_0938": ("ProjectsColumnsColumnIdPatchBodyType",), - ".group_0939": ("ProjectsColumnsColumnIdCardsPostBodyOneof0Type",), - ".group_0940": ("ProjectsColumnsColumnIdCardsPostBodyOneof1Type",), - ".group_0941": ( + ".group_0939": ("ProjectsColumnsColumnIdPatchBodyType",), + ".group_0940": ("ProjectsColumnsColumnIdCardsPostBodyOneof0Type",), + ".group_0941": ("ProjectsColumnsColumnIdCardsPostBodyOneof1Type",), + ".group_0942": ( "ProjectsColumnsColumnIdCardsPostResponse503Type", "ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType", ), - ".group_0942": ("ProjectsColumnsColumnIdMovesPostBodyType",), - ".group_0943": ("ProjectsColumnsColumnIdMovesPostResponse201Type",), - ".group_0944": ("ProjectsProjectIdDeleteResponse403Type",), - ".group_0945": ("ProjectsProjectIdPatchBodyType",), - ".group_0946": ("ProjectsProjectIdPatchResponse403Type",), - ".group_0947": ("ProjectsProjectIdCollaboratorsUsernamePutBodyType",), - ".group_0948": ("ProjectsProjectIdColumnsPostBodyType",), - ".group_0949": ("ReposOwnerRepoDeleteResponse403Type",), - ".group_0950": ( + ".group_0943": ("ProjectsColumnsColumnIdMovesPostBodyType",), + ".group_0944": ("ProjectsColumnsColumnIdMovesPostResponse201Type",), + ".group_0945": ("ProjectsProjectIdDeleteResponse403Type",), + ".group_0946": ("ProjectsProjectIdPatchBodyType",), + ".group_0947": ("ProjectsProjectIdPatchResponse403Type",), + ".group_0948": ("ProjectsProjectIdCollaboratorsUsernamePutBodyType",), + ".group_0949": ("ProjectsProjectIdColumnsPostBodyType",), + ".group_0950": ("ReposOwnerRepoDeleteResponse403Type",), + ".group_0951": ( "ReposOwnerRepoPatchBodyType", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType", @@ -12950,61 +12954,61 @@ "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatternsType", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecksType", ), - ".group_0951": ("ReposOwnerRepoActionsArtifactsGetResponse200Type",), - ".group_0952": ("ReposOwnerRepoActionsJobsJobIdRerunPostBodyType",), - ".group_0953": ("ReposOwnerRepoActionsOidcCustomizationSubPutBodyType",), - ".group_0954": ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type",), - ".group_0955": ( + ".group_0952": ("ReposOwnerRepoActionsArtifactsGetResponse200Type",), + ".group_0953": ("ReposOwnerRepoActionsJobsJobIdRerunPostBodyType",), + ".group_0954": ("ReposOwnerRepoActionsOidcCustomizationSubPutBodyType",), + ".group_0955": ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type",), + ".group_0956": ( "ReposOwnerRepoActionsOrganizationVariablesGetResponse200Type", ), - ".group_0956": ("ReposOwnerRepoActionsPermissionsPutBodyType",), - ".group_0957": ("ReposOwnerRepoActionsRunnersGetResponse200Type",), - ".group_0958": ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType",), - ".group_0959": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType",), - ".group_0960": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType",), - ".group_0961": ("ReposOwnerRepoActionsRunsGetResponse200Type",), - ".group_0962": ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type",), - ".group_0963": ( + ".group_0957": ("ReposOwnerRepoActionsPermissionsPutBodyType",), + ".group_0958": ("ReposOwnerRepoActionsRunnersGetResponse200Type",), + ".group_0959": ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType",), + ".group_0960": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType",), + ".group_0961": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType",), + ".group_0962": ("ReposOwnerRepoActionsRunsGetResponse200Type",), + ".group_0963": ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type",), + ".group_0964": ( "ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200Type", ), - ".group_0964": ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type",), - ".group_0965": ( + ".group_0965": ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type",), + ".group_0966": ( "ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBodyType", ), - ".group_0966": ("ReposOwnerRepoActionsRunsRunIdRerunPostBodyType",), - ".group_0967": ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType",), - ".group_0968": ("ReposOwnerRepoActionsSecretsGetResponse200Type",), - ".group_0969": ("ReposOwnerRepoActionsSecretsSecretNamePutBodyType",), - ".group_0970": ("ReposOwnerRepoActionsVariablesGetResponse200Type",), - ".group_0971": ("ReposOwnerRepoActionsVariablesPostBodyType",), - ".group_0972": ("ReposOwnerRepoActionsVariablesNamePatchBodyType",), - ".group_0973": ( + ".group_0967": ("ReposOwnerRepoActionsRunsRunIdRerunPostBodyType",), + ".group_0968": ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType",), + ".group_0969": ("ReposOwnerRepoActionsSecretsGetResponse200Type",), + ".group_0970": ("ReposOwnerRepoActionsSecretsSecretNamePutBodyType",), + ".group_0971": ("ReposOwnerRepoActionsVariablesGetResponse200Type",), + ".group_0972": ("ReposOwnerRepoActionsVariablesPostBodyType",), + ".group_0973": ("ReposOwnerRepoActionsVariablesNamePatchBodyType",), + ".group_0974": ( "ReposOwnerRepoActionsWorkflowsGetResponse200Type", "WorkflowType", ), - ".group_0974": ( + ".group_0975": ( "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyType", "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType", ), - ".group_0975": ( + ".group_0976": ( "ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200Type", ), - ".group_0976": ( + ".group_0977": ( "ReposOwnerRepoAttestationsPostBodyType", "ReposOwnerRepoAttestationsPostBodyPropBundleType", "ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterialType", "ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelopeType", ), - ".group_0977": ("ReposOwnerRepoAttestationsPostResponse201Type",), - ".group_0978": ( + ".group_0978": ("ReposOwnerRepoAttestationsPostResponse201Type",), + ".group_0979": ( "ReposOwnerRepoAttestationsSubjectDigestGetResponse200Type", "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsType", "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType", "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType", "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType", ), - ".group_0979": ("ReposOwnerRepoAutolinksPostBodyType",), - ".group_0980": ( + ".group_0980": ("ReposOwnerRepoAutolinksPostBodyType",), + ".group_0981": ( "ReposOwnerRepoBranchesBranchProtectionPutBodyType", "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksType", "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItemsType", @@ -13013,366 +13017,366 @@ "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType", "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictionsType", ), - ".group_0981": ( + ".group_0982": ( "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyType", "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType", "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType", ), - ".group_0982": ( + ".group_0983": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyType", "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType", ), - ".group_0983": ( + ".group_0984": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type", ), - ".group_0984": ( + ".group_0985": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0Type", ), - ".group_0985": ( + ".group_0986": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0Type", ), - ".group_0986": ( + ".group_0987": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0Type", ), - ".group_0987": ( + ".group_0988": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0Type", ), - ".group_0988": ( + ".group_0989": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0Type", ), - ".group_0989": ( + ".group_0990": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0Type", ), - ".group_0990": ( + ".group_0991": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type", ), - ".group_0991": ( + ".group_0992": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Type", ), - ".group_0992": ( + ".group_0993": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0Type", ), - ".group_0993": ( + ".group_0994": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0Type", ), - ".group_0994": ( + ".group_0995": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0Type", ), - ".group_0995": ("ReposOwnerRepoBranchesBranchRenamePostBodyType",), - ".group_0996": ( + ".group_0996": ("ReposOwnerRepoBranchesBranchRenamePostBodyType",), + ".group_0997": ( "ReposOwnerRepoCheckRunsPostBodyPropOutputType", "ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType", "ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType", "ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType", ), - ".group_0997": ("ReposOwnerRepoCheckRunsPostBodyOneof0Type",), - ".group_0998": ("ReposOwnerRepoCheckRunsPostBodyOneof1Type",), - ".group_0999": ( + ".group_0998": ("ReposOwnerRepoCheckRunsPostBodyOneof0Type",), + ".group_0999": ("ReposOwnerRepoCheckRunsPostBodyOneof1Type",), + ".group_1000": ( "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType", "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType", "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType", "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType", ), - ".group_1000": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type",), - ".group_1001": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type",), - ".group_1002": ("ReposOwnerRepoCheckSuitesPostBodyType",), - ".group_1003": ( + ".group_1001": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type",), + ".group_1002": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type",), + ".group_1003": ("ReposOwnerRepoCheckSuitesPostBodyType",), + ".group_1004": ( "ReposOwnerRepoCheckSuitesPreferencesPatchBodyType", "ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType", ), - ".group_1004": ( + ".group_1005": ( "ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type", ), - ".group_1005": ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType",), - ".group_1006": ( + ".group_1006": ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType",), + ".group_1007": ( "ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0Type", ), - ".group_1007": ( + ".group_1008": ( "ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1Type", ), - ".group_1008": ( + ".group_1009": ( "ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2Type", ), - ".group_1009": ("ReposOwnerRepoCodeScanningSarifsPostBodyType",), - ".group_1010": ("ReposOwnerRepoCodespacesGetResponse200Type",), - ".group_1011": ("ReposOwnerRepoCodespacesPostBodyType",), - ".group_1012": ( + ".group_1010": ("ReposOwnerRepoCodeScanningSarifsPostBodyType",), + ".group_1011": ("ReposOwnerRepoCodespacesGetResponse200Type",), + ".group_1012": ("ReposOwnerRepoCodespacesPostBodyType",), + ".group_1013": ( "ReposOwnerRepoCodespacesDevcontainersGetResponse200Type", "ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType", ), - ".group_1013": ("ReposOwnerRepoCodespacesMachinesGetResponse200Type",), - ".group_1014": ( + ".group_1014": ("ReposOwnerRepoCodespacesMachinesGetResponse200Type",), + ".group_1015": ( "ReposOwnerRepoCodespacesNewGetResponse200Type", "ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType", ), - ".group_1015": ( + ".group_1016": ( "ReposOwnerRepoCodespacesSecretsGetResponse200Type", "RepoCodespacesSecretType", ), - ".group_1016": ("ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType",), - ".group_1017": ("ReposOwnerRepoCollaboratorsUsernamePutBodyType",), - ".group_1018": ("ReposOwnerRepoCommentsCommentIdPatchBodyType",), - ".group_1019": ("ReposOwnerRepoCommentsCommentIdReactionsPostBodyType",), - ".group_1020": ("ReposOwnerRepoCommitsCommitShaCommentsPostBodyType",), - ".group_1021": ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type",), - ".group_1022": ( + ".group_1017": ("ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType",), + ".group_1018": ("ReposOwnerRepoCollaboratorsUsernamePutBodyType",), + ".group_1019": ("ReposOwnerRepoCommentsCommentIdPatchBodyType",), + ".group_1020": ("ReposOwnerRepoCommentsCommentIdReactionsPostBodyType",), + ".group_1021": ("ReposOwnerRepoCommitsCommitShaCommentsPostBodyType",), + ".group_1022": ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type",), + ".group_1023": ( "ReposOwnerRepoContentsPathPutBodyType", "ReposOwnerRepoContentsPathPutBodyPropCommitterType", "ReposOwnerRepoContentsPathPutBodyPropAuthorType", ), - ".group_1023": ( + ".group_1024": ( "ReposOwnerRepoContentsPathDeleteBodyType", "ReposOwnerRepoContentsPathDeleteBodyPropCommitterType", "ReposOwnerRepoContentsPathDeleteBodyPropAuthorType", ), - ".group_1024": ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType",), - ".group_1025": ( + ".group_1025": ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType",), + ".group_1026": ( "ReposOwnerRepoDependabotSecretsGetResponse200Type", "DependabotSecretType", ), - ".group_1026": ("ReposOwnerRepoDependabotSecretsSecretNamePutBodyType",), - ".group_1027": ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type",), - ".group_1028": ( + ".group_1027": ("ReposOwnerRepoDependabotSecretsSecretNamePutBodyType",), + ".group_1028": ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type",), + ".group_1029": ( "ReposOwnerRepoDeploymentsPostBodyType", "ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type", ), - ".group_1029": ("ReposOwnerRepoDeploymentsPostResponse202Type",), - ".group_1030": ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType",), - ".group_1031": ( + ".group_1030": ("ReposOwnerRepoDeploymentsPostResponse202Type",), + ".group_1031": ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType",), + ".group_1032": ( "ReposOwnerRepoDispatchesPostBodyType", "ReposOwnerRepoDispatchesPostBodyPropClientPayloadType", ), - ".group_1032": ( + ".group_1033": ( "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyType", "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType", ), - ".group_1033": ( + ".group_1034": ( "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type", "DeploymentBranchPolicyType", ), - ".group_1034": ( + ".group_1035": ( "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType", ), - ".group_1035": ( + ".group_1036": ( "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type", ), - ".group_1036": ( + ".group_1037": ( "ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200Type", ), - ".group_1037": ( + ".group_1038": ( "ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBodyType", ), - ".group_1038": ( + ".group_1039": ( "ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200Type", ), - ".group_1039": ( + ".group_1040": ( "ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBodyType", ), - ".group_1040": ( + ".group_1041": ( "ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType", ), - ".group_1041": ("ReposOwnerRepoForksPostBodyType",), - ".group_1042": ("ReposOwnerRepoGitBlobsPostBodyType",), - ".group_1043": ( + ".group_1042": ("ReposOwnerRepoForksPostBodyType",), + ".group_1043": ("ReposOwnerRepoGitBlobsPostBodyType",), + ".group_1044": ( "ReposOwnerRepoGitCommitsPostBodyType", "ReposOwnerRepoGitCommitsPostBodyPropAuthorType", "ReposOwnerRepoGitCommitsPostBodyPropCommitterType", ), - ".group_1044": ("ReposOwnerRepoGitRefsPostBodyType",), - ".group_1045": ("ReposOwnerRepoGitRefsRefPatchBodyType",), - ".group_1046": ( + ".group_1045": ("ReposOwnerRepoGitRefsPostBodyType",), + ".group_1046": ("ReposOwnerRepoGitRefsRefPatchBodyType",), + ".group_1047": ( "ReposOwnerRepoGitTagsPostBodyType", "ReposOwnerRepoGitTagsPostBodyPropTaggerType", ), - ".group_1047": ( + ".group_1048": ( "ReposOwnerRepoGitTreesPostBodyType", "ReposOwnerRepoGitTreesPostBodyPropTreeItemsType", ), - ".group_1048": ( + ".group_1049": ( "ReposOwnerRepoHooksPostBodyType", "ReposOwnerRepoHooksPostBodyPropConfigType", ), - ".group_1049": ("ReposOwnerRepoHooksHookIdPatchBodyType",), - ".group_1050": ("ReposOwnerRepoHooksHookIdConfigPatchBodyType",), - ".group_1051": ("ReposOwnerRepoImportPutBodyType",), - ".group_1052": ("ReposOwnerRepoImportPatchBodyType",), - ".group_1053": ("ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType",), - ".group_1054": ("ReposOwnerRepoImportLfsPatchBodyType",), - ".group_1055": ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type",), - ".group_1056": ("ReposOwnerRepoInvitationsInvitationIdPatchBodyType",), - ".group_1057": ( + ".group_1050": ("ReposOwnerRepoHooksHookIdPatchBodyType",), + ".group_1051": ("ReposOwnerRepoHooksHookIdConfigPatchBodyType",), + ".group_1052": ("ReposOwnerRepoImportPutBodyType",), + ".group_1053": ("ReposOwnerRepoImportPatchBodyType",), + ".group_1054": ("ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType",), + ".group_1055": ("ReposOwnerRepoImportLfsPatchBodyType",), + ".group_1056": ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type",), + ".group_1057": ("ReposOwnerRepoInvitationsInvitationIdPatchBodyType",), + ".group_1058": ( "ReposOwnerRepoIssuesPostBodyType", "ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type", ), - ".group_1058": ("ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType",), - ".group_1059": ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType",), - ".group_1060": ( + ".group_1059": ("ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType",), + ".group_1060": ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType",), + ".group_1061": ( "ReposOwnerRepoIssuesIssueNumberPatchBodyType", "ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type", ), - ".group_1061": ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType",), - ".group_1062": ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType",), - ".group_1063": ("ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType",), - ".group_1064": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type",), - ".group_1065": ( + ".group_1062": ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType",), + ".group_1063": ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType",), + ".group_1064": ("ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType",), + ".group_1065": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type",), + ".group_1066": ( "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type", "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType", ), - ".group_1066": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType",), - ".group_1067": ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type",), - ".group_1068": ( + ".group_1067": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType",), + ".group_1068": ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type",), + ".group_1069": ( "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2Type", "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType", ), - ".group_1069": ( + ".group_1070": ( "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType", ), - ".group_1070": ("ReposOwnerRepoIssuesIssueNumberLockPutBodyType",), - ".group_1071": ("ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType",), - ".group_1072": ("ReposOwnerRepoKeysPostBodyType",), - ".group_1073": ("ReposOwnerRepoLabelsPostBodyType",), - ".group_1074": ("ReposOwnerRepoLabelsNamePatchBodyType",), - ".group_1075": ("ReposOwnerRepoMergeUpstreamPostBodyType",), - ".group_1076": ("ReposOwnerRepoMergesPostBodyType",), - ".group_1077": ("ReposOwnerRepoMilestonesPostBodyType",), - ".group_1078": ("ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType",), - ".group_1079": ("ReposOwnerRepoNotificationsPutBodyType",), - ".group_1080": ("ReposOwnerRepoNotificationsPutResponse202Type",), - ".group_1081": ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type",), - ".group_1082": ("ReposOwnerRepoPagesPutBodyAnyof0Type",), - ".group_1083": ("ReposOwnerRepoPagesPutBodyAnyof1Type",), - ".group_1084": ("ReposOwnerRepoPagesPutBodyAnyof2Type",), - ".group_1085": ("ReposOwnerRepoPagesPutBodyAnyof3Type",), - ".group_1086": ("ReposOwnerRepoPagesPutBodyAnyof4Type",), - ".group_1087": ("ReposOwnerRepoPagesPostBodyPropSourceType",), - ".group_1088": ("ReposOwnerRepoPagesPostBodyAnyof0Type",), - ".group_1089": ("ReposOwnerRepoPagesPostBodyAnyof1Type",), - ".group_1090": ("ReposOwnerRepoPagesDeploymentsPostBodyType",), - ".group_1091": ( + ".group_1071": ("ReposOwnerRepoIssuesIssueNumberLockPutBodyType",), + ".group_1072": ("ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType",), + ".group_1073": ("ReposOwnerRepoKeysPostBodyType",), + ".group_1074": ("ReposOwnerRepoLabelsPostBodyType",), + ".group_1075": ("ReposOwnerRepoLabelsNamePatchBodyType",), + ".group_1076": ("ReposOwnerRepoMergeUpstreamPostBodyType",), + ".group_1077": ("ReposOwnerRepoMergesPostBodyType",), + ".group_1078": ("ReposOwnerRepoMilestonesPostBodyType",), + ".group_1079": ("ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType",), + ".group_1080": ("ReposOwnerRepoNotificationsPutBodyType",), + ".group_1081": ("ReposOwnerRepoNotificationsPutResponse202Type",), + ".group_1082": ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type",), + ".group_1083": ("ReposOwnerRepoPagesPutBodyAnyof0Type",), + ".group_1084": ("ReposOwnerRepoPagesPutBodyAnyof1Type",), + ".group_1085": ("ReposOwnerRepoPagesPutBodyAnyof2Type",), + ".group_1086": ("ReposOwnerRepoPagesPutBodyAnyof3Type",), + ".group_1087": ("ReposOwnerRepoPagesPutBodyAnyof4Type",), + ".group_1088": ("ReposOwnerRepoPagesPostBodyPropSourceType",), + ".group_1089": ("ReposOwnerRepoPagesPostBodyAnyof0Type",), + ".group_1090": ("ReposOwnerRepoPagesPostBodyAnyof1Type",), + ".group_1091": ("ReposOwnerRepoPagesDeploymentsPostBodyType",), + ".group_1092": ( "ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200Type", ), - ".group_1092": ("ReposOwnerRepoProjectsPostBodyType",), - ".group_1093": ("ReposOwnerRepoPropertiesValuesPatchBodyType",), - ".group_1094": ("ReposOwnerRepoPullsPostBodyType",), - ".group_1095": ("ReposOwnerRepoPullsCommentsCommentIdPatchBodyType",), - ".group_1096": ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType",), - ".group_1097": ("ReposOwnerRepoPullsPullNumberPatchBodyType",), - ".group_1098": ("ReposOwnerRepoPullsPullNumberCodespacesPostBodyType",), - ".group_1099": ("ReposOwnerRepoPullsPullNumberCommentsPostBodyType",), - ".group_1100": ( + ".group_1093": ("ReposOwnerRepoProjectsPostBodyType",), + ".group_1094": ("ReposOwnerRepoPropertiesValuesPatchBodyType",), + ".group_1095": ("ReposOwnerRepoPullsPostBodyType",), + ".group_1096": ("ReposOwnerRepoPullsCommentsCommentIdPatchBodyType",), + ".group_1097": ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType",), + ".group_1098": ("ReposOwnerRepoPullsPullNumberPatchBodyType",), + ".group_1099": ("ReposOwnerRepoPullsPullNumberCodespacesPostBodyType",), + ".group_1100": ("ReposOwnerRepoPullsPullNumberCommentsPostBodyType",), + ".group_1101": ( "ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBodyType", ), - ".group_1101": ("ReposOwnerRepoPullsPullNumberMergePutBodyType",), - ".group_1102": ("ReposOwnerRepoPullsPullNumberMergePutResponse405Type",), - ".group_1103": ("ReposOwnerRepoPullsPullNumberMergePutResponse409Type",), - ".group_1104": ( + ".group_1102": ("ReposOwnerRepoPullsPullNumberMergePutBodyType",), + ".group_1103": ("ReposOwnerRepoPullsPullNumberMergePutResponse405Type",), + ".group_1104": ("ReposOwnerRepoPullsPullNumberMergePutResponse409Type",), + ".group_1105": ( "ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0Type", ), - ".group_1105": ( + ".group_1106": ( "ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1Type", ), - ".group_1106": ( + ".group_1107": ( "ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBodyType", ), - ".group_1107": ( + ".group_1108": ( "ReposOwnerRepoPullsPullNumberReviewsPostBodyType", "ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType", ), - ".group_1108": ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType",), - ".group_1109": ( + ".group_1109": ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType",), + ".group_1110": ( "ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBodyType", ), - ".group_1110": ( + ".group_1111": ( "ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBodyType", ), - ".group_1111": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType",), - ".group_1112": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type",), - ".group_1113": ("ReposOwnerRepoReleasesPostBodyType",), - ".group_1114": ("ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType",), - ".group_1115": ("ReposOwnerRepoReleasesGenerateNotesPostBodyType",), - ".group_1116": ("ReposOwnerRepoReleasesReleaseIdPatchBodyType",), - ".group_1117": ("ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType",), - ".group_1118": ("ReposOwnerRepoRulesetsPostBodyType",), - ".group_1119": ("ReposOwnerRepoRulesetsRulesetIdPutBodyType",), - ".group_1120": ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType",), - ".group_1121": ("ReposOwnerRepoStatusesShaPostBodyType",), - ".group_1122": ("ReposOwnerRepoSubscriptionPutBodyType",), - ".group_1123": ("ReposOwnerRepoTagsProtectionPostBodyType",), - ".group_1124": ("ReposOwnerRepoTopicsPutBodyType",), - ".group_1125": ("ReposOwnerRepoTransferPostBodyType",), - ".group_1126": ("ReposTemplateOwnerTemplateRepoGeneratePostBodyType",), - ".group_1127": ( + ".group_1112": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType",), + ".group_1113": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type",), + ".group_1114": ("ReposOwnerRepoReleasesPostBodyType",), + ".group_1115": ("ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType",), + ".group_1116": ("ReposOwnerRepoReleasesGenerateNotesPostBodyType",), + ".group_1117": ("ReposOwnerRepoReleasesReleaseIdPatchBodyType",), + ".group_1118": ("ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType",), + ".group_1119": ("ReposOwnerRepoRulesetsPostBodyType",), + ".group_1120": ("ReposOwnerRepoRulesetsRulesetIdPutBodyType",), + ".group_1121": ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType",), + ".group_1122": ("ReposOwnerRepoStatusesShaPostBodyType",), + ".group_1123": ("ReposOwnerRepoSubscriptionPutBodyType",), + ".group_1124": ("ReposOwnerRepoTagsProtectionPostBodyType",), + ".group_1125": ("ReposOwnerRepoTopicsPutBodyType",), + ".group_1126": ("ReposOwnerRepoTransferPostBodyType",), + ".group_1127": ("ReposTemplateOwnerTemplateRepoGeneratePostBodyType",), + ".group_1128": ( "ScimV2OrganizationsOrgUsersPostBodyType", "ScimV2OrganizationsOrgUsersPostBodyPropNameType", "ScimV2OrganizationsOrgUsersPostBodyPropEmailsItemsType", ), - ".group_1128": ( + ".group_1129": ( "ScimV2OrganizationsOrgUsersScimUserIdPutBodyType", "ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropNameType", "ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItemsType", ), - ".group_1129": ( + ".group_1130": ( "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyType", "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsType", "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0Type", "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1ItemsType", ), - ".group_1130": ("TeamsTeamIdPatchBodyType",), - ".group_1131": ("TeamsTeamIdDiscussionsPostBodyType",), - ".group_1132": ("TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType",), - ".group_1133": ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType",), - ".group_1134": ( + ".group_1131": ("TeamsTeamIdPatchBodyType",), + ".group_1132": ("TeamsTeamIdDiscussionsPostBodyType",), + ".group_1133": ("TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType",), + ".group_1134": ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType",), + ".group_1135": ( "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType", ), - ".group_1135": ( + ".group_1136": ( "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType", ), - ".group_1136": ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType",), - ".group_1137": ("TeamsTeamIdMembershipsUsernamePutBodyType",), - ".group_1138": ("TeamsTeamIdProjectsProjectIdPutBodyType",), - ".group_1139": ("TeamsTeamIdProjectsProjectIdPutResponse403Type",), - ".group_1140": ("TeamsTeamIdReposOwnerRepoPutBodyType",), - ".group_1141": ( + ".group_1137": ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType",), + ".group_1138": ("TeamsTeamIdMembershipsUsernamePutBodyType",), + ".group_1139": ("TeamsTeamIdProjectsProjectIdPutBodyType",), + ".group_1140": ("TeamsTeamIdProjectsProjectIdPutResponse403Type",), + ".group_1141": ("TeamsTeamIdReposOwnerRepoPutBodyType",), + ".group_1142": ( "TeamsTeamIdTeamSyncGroupMappingsPatchBodyType", "TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItemsType", ), - ".group_1142": ("UserPatchBodyType",), - ".group_1143": ("UserCodespacesGetResponse200Type",), - ".group_1144": ("UserCodespacesPostBodyOneof0Type",), - ".group_1145": ( + ".group_1143": ("UserPatchBodyType",), + ".group_1144": ("UserCodespacesGetResponse200Type",), + ".group_1145": ("UserCodespacesPostBodyOneof0Type",), + ".group_1146": ( "UserCodespacesPostBodyOneof1Type", "UserCodespacesPostBodyOneof1PropPullRequestType", ), - ".group_1146": ( + ".group_1147": ( "UserCodespacesSecretsGetResponse200Type", "CodespacesSecretType", ), - ".group_1147": ("UserCodespacesSecretsSecretNamePutBodyType",), - ".group_1148": ( + ".group_1148": ("UserCodespacesSecretsSecretNamePutBodyType",), + ".group_1149": ( "UserCodespacesSecretsSecretNameRepositoriesGetResponse200Type", ), - ".group_1149": ("UserCodespacesSecretsSecretNameRepositoriesPutBodyType",), - ".group_1150": ("UserCodespacesCodespaceNamePatchBodyType",), - ".group_1151": ("UserCodespacesCodespaceNameMachinesGetResponse200Type",), - ".group_1152": ("UserCodespacesCodespaceNamePublishPostBodyType",), - ".group_1153": ("UserEmailVisibilityPatchBodyType",), - ".group_1154": ("UserEmailsPostBodyOneof0Type",), - ".group_1155": ("UserEmailsDeleteBodyOneof0Type",), - ".group_1156": ("UserGpgKeysPostBodyType",), - ".group_1157": ("UserInstallationsGetResponse200Type",), - ".group_1158": ( + ".group_1150": ("UserCodespacesSecretsSecretNameRepositoriesPutBodyType",), + ".group_1151": ("UserCodespacesCodespaceNamePatchBodyType",), + ".group_1152": ("UserCodespacesCodespaceNameMachinesGetResponse200Type",), + ".group_1153": ("UserCodespacesCodespaceNamePublishPostBodyType",), + ".group_1154": ("UserEmailVisibilityPatchBodyType",), + ".group_1155": ("UserEmailsPostBodyOneof0Type",), + ".group_1156": ("UserEmailsDeleteBodyOneof0Type",), + ".group_1157": ("UserGpgKeysPostBodyType",), + ".group_1158": ("UserInstallationsGetResponse200Type",), + ".group_1159": ( "UserInstallationsInstallationIdRepositoriesGetResponse200Type", ), - ".group_1159": ("UserInteractionLimitsGetResponse200Anyof1Type",), - ".group_1160": ("UserKeysPostBodyType",), - ".group_1161": ("UserMembershipsOrgsOrgPatchBodyType",), - ".group_1162": ("UserMigrationsPostBodyType",), - ".group_1163": ("UserProjectsPostBodyType",), - ".group_1164": ("UserReposPostBodyType",), - ".group_1165": ("UserSocialAccountsPostBodyType",), - ".group_1166": ("UserSocialAccountsDeleteBodyType",), - ".group_1167": ("UserSshSigningKeysPostBodyType",), - ".group_1168": ( + ".group_1160": ("UserInteractionLimitsGetResponse200Anyof1Type",), + ".group_1161": ("UserKeysPostBodyType",), + ".group_1162": ("UserMembershipsOrgsOrgPatchBodyType",), + ".group_1163": ("UserMigrationsPostBodyType",), + ".group_1164": ("UserProjectsPostBodyType",), + ".group_1165": ("UserReposPostBodyType",), + ".group_1166": ("UserSocialAccountsPostBodyType",), + ".group_1167": ("UserSocialAccountsDeleteBodyType",), + ".group_1168": ("UserSshSigningKeysPostBodyType",), + ".group_1169": ( "UsersUsernameAttestationsSubjectDigestGetResponse200Type", "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType", "SigstoreBundle0Type", diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0090.py b/githubkit/versions/ghec_v2022_11_28/types/group_0090.py index f82f0e955..48b03fc73 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0090.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0090.py @@ -39,6 +39,7 @@ class CodeSecurityConfigurationType(TypedDict): private_vulnerability_reporting: NotRequired[ Literal["enabled", "disabled", "not_set"] ] + enforcement: NotRequired[Literal["enforced", "unenforced"]] url: NotRequired[str] html_url: NotRequired[str] created_at: NotRequired[datetime] 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 311ee4044..52d791953 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0865.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0865.py @@ -33,6 +33,7 @@ class OrgsOrgCodeSecurityConfigurationsPostBodyType(TypedDict): private_vulnerability_reporting: NotRequired[ Literal["enabled", "disabled", "not_set"] ] + enforcement: NotRequired[Literal["enforced", "unenforced"]] __all__ = ("OrgsOrgCodeSecurityConfigurationsPostBodyType",) 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 7f905fdbc..e910eb18d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0866.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0866.py @@ -9,30 +9,14 @@ from __future__ import annotations -from typing import Literal +from typing import List from typing_extensions import TypedDict, NotRequired -class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyType(TypedDict): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody""" - - name: NotRequired[str] - description: NotRequired[str] - advanced_security: NotRequired[Literal["enabled", "disabled"]] - dependency_graph: NotRequired[Literal["enabled", "disabled", "not_set"]] - 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"]] - 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"] - ] - private_vulnerability_reporting: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - - -__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyType",) +class OrgsOrgCodeSecurityConfigurationsDetachDeleteBodyType(TypedDict): + """OrgsOrgCodeSecurityConfigurationsDetachDeleteBody""" + + selected_repository_ids: NotRequired[List[int]] + + +__all__ = ("OrgsOrgCodeSecurityConfigurationsDetachDeleteBodyType",) 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 171204dc4..1f990e379 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0867.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0867.py @@ -9,15 +9,31 @@ from __future__ import annotations -from typing import List, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -class OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBodyType(TypedDict): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody""" - - scope: Literal["all", "public", "private_or_internal", "selected"] - selected_repository_ids: NotRequired[List[int]] - - -__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBodyType",) +class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyType(TypedDict): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody""" + + name: NotRequired[str] + description: NotRequired[str] + advanced_security: NotRequired[Literal["enabled", "disabled"]] + dependency_graph: NotRequired[Literal["enabled", "disabled", "not_set"]] + 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"]] + 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"] + ] + private_vulnerability_reporting: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + enforcement: NotRequired[Literal["enforced", "unenforced"]] + + +__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyType",) 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 657825ddf..171204dc4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0868.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0868.py @@ -9,16 +9,15 @@ from __future__ import annotations -from typing import Literal +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -class OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType(TypedDict): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody""" +class OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBodyType(TypedDict): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody""" - default_for_new_repos: NotRequired[ - Literal["all", "none", "private_and_internal", "public"] - ] + scope: Literal["all", "public", "private_or_internal", "selected"] + selected_repository_ids: NotRequired[List[int]] -__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType",) +__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBodyType",) 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 a6c7c76dd..657825ddf 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0869.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0869.py @@ -12,20 +12,13 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0090 import CodeSecurityConfigurationType - -class OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type( - TypedDict -): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200""" +class OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType(TypedDict): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody""" default_for_new_repos: NotRequired[ Literal["all", "none", "private_and_internal", "public"] ] - configuration: NotRequired[CodeSecurityConfigurationType] -__all__ = ( - "OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type", -) +__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType",) 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 09b1cea4b..a6c7c76dd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0870.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0870.py @@ -9,17 +9,23 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import TypedDict, NotRequired -from .group_0094 import CodespaceType +from .group_0090 import CodeSecurityConfigurationType -class OrgsOrgCodespacesGetResponse200Type(TypedDict): - """OrgsOrgCodespacesGetResponse200""" +class OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type( + TypedDict +): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200""" - total_count: int - codespaces: List[CodespaceType] + default_for_new_repos: NotRequired[ + Literal["all", "none", "private_and_internal", "public"] + ] + configuration: NotRequired[CodeSecurityConfigurationType] -__all__ = ("OrgsOrgCodespacesGetResponse200Type",) +__all__ = ( + "OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type", +) 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 11890a4e9..09b1cea4b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0871.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0871.py @@ -9,20 +9,17 @@ from __future__ import annotations -from typing import List, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict +from .group_0094 import CodespaceType -class OrgsOrgCodespacesAccessPutBodyType(TypedDict): - """OrgsOrgCodespacesAccessPutBody""" - visibility: Literal[ - "disabled", - "selected_members", - "all_members", - "all_members_and_outside_collaborators", - ] - selected_usernames: NotRequired[List[str]] +class OrgsOrgCodespacesGetResponse200Type(TypedDict): + """OrgsOrgCodespacesGetResponse200""" + total_count: int + codespaces: List[CodespaceType] -__all__ = ("OrgsOrgCodespacesAccessPutBodyType",) + +__all__ = ("OrgsOrgCodespacesGetResponse200Type",) 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 ecb5a7ff7..11890a4e9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0872.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0872.py @@ -9,14 +9,20 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import List, Literal +from typing_extensions import TypedDict, NotRequired -class OrgsOrgCodespacesAccessSelectedUsersPostBodyType(TypedDict): - """OrgsOrgCodespacesAccessSelectedUsersPostBody""" +class OrgsOrgCodespacesAccessPutBodyType(TypedDict): + """OrgsOrgCodespacesAccessPutBody""" - selected_usernames: List[str] + visibility: Literal[ + "disabled", + "selected_members", + "all_members", + "all_members_and_outside_collaborators", + ] + selected_usernames: NotRequired[List[str]] -__all__ = ("OrgsOrgCodespacesAccessSelectedUsersPostBodyType",) +__all__ = ("OrgsOrgCodespacesAccessPutBodyType",) 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 343148794..ecb5a7ff7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0873.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0873.py @@ -13,10 +13,10 @@ from typing_extensions import TypedDict -class OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType(TypedDict): - """OrgsOrgCodespacesAccessSelectedUsersDeleteBody""" +class OrgsOrgCodespacesAccessSelectedUsersPostBodyType(TypedDict): + """OrgsOrgCodespacesAccessSelectedUsersPostBody""" selected_usernames: List[str] -__all__ = ("OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType",) +__all__ = ("OrgsOrgCodespacesAccessSelectedUsersPostBodyType",) 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 9f9f2b273..343148794 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0874.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0874.py @@ -9,32 +9,14 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -class OrgsOrgCodespacesSecretsGetResponse200Type(TypedDict): - """OrgsOrgCodespacesSecretsGetResponse200""" +class OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType(TypedDict): + """OrgsOrgCodespacesAccessSelectedUsersDeleteBody""" - total_count: int - secrets: List[CodespacesOrgSecretType] + selected_usernames: List[str] -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__ = ( - "OrgsOrgCodespacesSecretsGetResponse200Type", - "CodespacesOrgSecretType", -) +__all__ = ("OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType",) 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 df9701450..9f9f2b273 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0875.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0875.py @@ -9,17 +9,32 @@ from __future__ import annotations +from datetime import datetime from typing import List, Literal from typing_extensions import TypedDict, NotRequired -class OrgsOrgCodespacesSecretsSecretNamePutBodyType(TypedDict): - """OrgsOrgCodespacesSecretsSecretNamePutBody""" +class OrgsOrgCodespacesSecretsGetResponse200Type(TypedDict): + """OrgsOrgCodespacesSecretsGetResponse200""" - encrypted_value: NotRequired[str] - key_id: NotRequired[str] + total_count: int + secrets: List[CodespacesOrgSecretType] + + +class CodespacesOrgSecretType(TypedDict): + """Codespaces Secret + + Secrets for a GitHub Codespace. + """ + + name: str + created_at: datetime + updated_at: datetime visibility: Literal["all", "private", "selected"] - selected_repository_ids: NotRequired[List[int]] + selected_repositories_url: NotRequired[str] -__all__ = ("OrgsOrgCodespacesSecretsSecretNamePutBodyType",) +__all__ = ( + "OrgsOrgCodespacesSecretsGetResponse200Type", + "CodespacesOrgSecretType", +) 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 4488b5d81..df9701450 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0876.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0876.py @@ -9,17 +9,17 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import List, Literal +from typing_extensions import TypedDict, NotRequired -from .group_0082 import MinimalRepositoryType +class OrgsOrgCodespacesSecretsSecretNamePutBodyType(TypedDict): + """OrgsOrgCodespacesSecretsSecretNamePutBody""" -class OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): - """OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200""" + encrypted_value: NotRequired[str] + key_id: NotRequired[str] + visibility: Literal["all", "private", "selected"] + selected_repository_ids: NotRequired[List[int]] - total_count: int - repositories: List[MinimalRepositoryType] - -__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type",) +__all__ = ("OrgsOrgCodespacesSecretsSecretNamePutBodyType",) 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 bc6a55ac2..4488b5d81 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0877.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0877.py @@ -12,11 +12,14 @@ from typing import List from typing_extensions import TypedDict +from .group_0082 import MinimalRepositoryType -class OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType(TypedDict): - """OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody""" - selected_repository_ids: List[int] +class OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): + """OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200""" + total_count: int + repositories: List[MinimalRepositoryType] -__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType",) + +__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type",) 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 eb3dab848..bc6a55ac2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0878.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0878.py @@ -10,16 +10,13 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0049 import CopilotSeatDetailsType +class OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType(TypedDict): + """OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody""" -class OrgsOrgCopilotBillingSeatsGetResponse200Type(TypedDict): - """OrgsOrgCopilotBillingSeatsGetResponse200""" + selected_repository_ids: List[int] - total_seats: NotRequired[int] - seats: NotRequired[List[CopilotSeatDetailsType]] - -__all__ = ("OrgsOrgCopilotBillingSeatsGetResponse200Type",) +__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType",) 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 f5fc4cf2b..eb3dab848 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0879.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0879.py @@ -10,13 +10,16 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired +from .group_0049 import CopilotSeatDetailsType -class OrgsOrgCopilotBillingSelectedTeamsPostBodyType(TypedDict): - """OrgsOrgCopilotBillingSelectedTeamsPostBody""" - selected_teams: List[str] +class OrgsOrgCopilotBillingSeatsGetResponse200Type(TypedDict): + """OrgsOrgCopilotBillingSeatsGetResponse200""" + total_seats: NotRequired[int] + seats: NotRequired[List[CopilotSeatDetailsType]] -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostBodyType",) + +__all__ = ("OrgsOrgCopilotBillingSeatsGetResponse200Type",) 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 7d801be5e..f5fc4cf2b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0880.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0880.py @@ -9,16 +9,14 @@ from __future__ import annotations +from typing import List from typing_extensions import TypedDict -class OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type(TypedDict): - """OrgsOrgCopilotBillingSelectedTeamsPostResponse201 +class OrgsOrgCopilotBillingSelectedTeamsPostBodyType(TypedDict): + """OrgsOrgCopilotBillingSelectedTeamsPostBody""" - The total number of seat assignments created. - """ + selected_teams: List[str] - seats_created: int - -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type",) +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostBodyType",) 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 ad2745b9f..7d801be5e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0881.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0881.py @@ -9,14 +9,16 @@ from __future__ import annotations -from typing import List from typing_extensions import TypedDict -class OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType(TypedDict): - """OrgsOrgCopilotBillingSelectedTeamsDeleteBody""" +class OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type(TypedDict): + """OrgsOrgCopilotBillingSelectedTeamsPostResponse201 - selected_teams: List[str] + The total number of seat assignments created. + """ + seats_created: int -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType",) + +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type",) 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 2c06d525c..ad2745b9f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0882.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0882.py @@ -9,16 +9,14 @@ from __future__ import annotations +from typing import List from typing_extensions import TypedDict -class OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type(TypedDict): - """OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200 +class OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType(TypedDict): + """OrgsOrgCopilotBillingSelectedTeamsDeleteBody""" - The total number of seat assignments cancelled. - """ + selected_teams: List[str] - seats_cancelled: int - -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type",) +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType",) 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 d2bc78059..2c06d525c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0883.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0883.py @@ -9,14 +9,16 @@ from __future__ import annotations -from typing import List from typing_extensions import TypedDict -class OrgsOrgCopilotBillingSelectedUsersPostBodyType(TypedDict): - """OrgsOrgCopilotBillingSelectedUsersPostBody""" +class OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type(TypedDict): + """OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200 - selected_usernames: List[str] + The total number of seat assignments cancelled. + """ + seats_cancelled: int -__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostBodyType",) + +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type",) 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 c59c644d1..d2bc78059 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0884.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0884.py @@ -9,16 +9,14 @@ from __future__ import annotations +from typing import List from typing_extensions import TypedDict -class OrgsOrgCopilotBillingSelectedUsersPostResponse201Type(TypedDict): - """OrgsOrgCopilotBillingSelectedUsersPostResponse201 +class OrgsOrgCopilotBillingSelectedUsersPostBodyType(TypedDict): + """OrgsOrgCopilotBillingSelectedUsersPostBody""" - The total number of seat assignments created. - """ + selected_usernames: List[str] - seats_created: int - -__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostResponse201Type",) +__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostBodyType",) 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 b06b1b236..c59c644d1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0885.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0885.py @@ -9,14 +9,16 @@ from __future__ import annotations -from typing import List from typing_extensions import TypedDict -class OrgsOrgCopilotBillingSelectedUsersDeleteBodyType(TypedDict): - """OrgsOrgCopilotBillingSelectedUsersDeleteBody""" +class OrgsOrgCopilotBillingSelectedUsersPostResponse201Type(TypedDict): + """OrgsOrgCopilotBillingSelectedUsersPostResponse201 - selected_usernames: List[str] + The total number of seat assignments created. + """ + seats_created: int -__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteBodyType",) + +__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostResponse201Type",) 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 146387615..b06b1b236 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0886.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0886.py @@ -9,16 +9,14 @@ from __future__ import annotations +from typing import List from typing_extensions import TypedDict -class OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type(TypedDict): - """OrgsOrgCopilotBillingSelectedUsersDeleteResponse200 +class OrgsOrgCopilotBillingSelectedUsersDeleteBodyType(TypedDict): + """OrgsOrgCopilotBillingSelectedUsersDeleteBody""" - The total number of seat assignments cancelled. - """ + selected_usernames: List[str] - seats_cancelled: int - -__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type",) +__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteBodyType",) 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 bedad6627..146387615 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,16 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0085 import OrganizationCustomRepositoryRoleType +class OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type(TypedDict): + """OrgsOrgCopilotBillingSelectedUsersDeleteResponse200 -class OrgsOrgCustomRepositoryRolesGetResponse200Type(TypedDict): - """OrgsOrgCustomRepositoryRolesGetResponse200""" + The total number of seat assignments cancelled. + """ - total_count: NotRequired[int] - custom_roles: NotRequired[List[OrganizationCustomRepositoryRoleType]] + seats_cancelled: int -__all__ = ("OrgsOrgCustomRepositoryRolesGetResponse200Type",) +__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type",) 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 a4754484f..bedad6627 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0888.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0888.py @@ -9,32 +9,17 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal +from typing import List from typing_extensions import TypedDict, NotRequired +from .group_0085 import OrganizationCustomRepositoryRoleType -class OrgsOrgDependabotSecretsGetResponse200Type(TypedDict): - """OrgsOrgDependabotSecretsGetResponse200""" - total_count: int - secrets: List[OrganizationDependabotSecretType] +class OrgsOrgCustomRepositoryRolesGetResponse200Type(TypedDict): + """OrgsOrgCustomRepositoryRolesGetResponse200""" + total_count: NotRequired[int] + custom_roles: NotRequired[List[OrganizationCustomRepositoryRoleType]] -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__ = ( - "OrgsOrgDependabotSecretsGetResponse200Type", - "OrganizationDependabotSecretType", -) +__all__ = ("OrgsOrgCustomRepositoryRolesGetResponse200Type",) 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 eb6772b44..a4754484f 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,32 @@ from __future__ import annotations +from datetime import datetime from typing import List, Literal from typing_extensions import TypedDict, NotRequired -class OrgsOrgDependabotSecretsSecretNamePutBodyType(TypedDict): - """OrgsOrgDependabotSecretsSecretNamePutBody""" +class OrgsOrgDependabotSecretsGetResponse200Type(TypedDict): + """OrgsOrgDependabotSecretsGetResponse200""" - encrypted_value: NotRequired[str] - key_id: NotRequired[str] + total_count: int + 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_repository_ids: NotRequired[List[str]] + selected_repositories_url: NotRequired[str] -__all__ = ("OrgsOrgDependabotSecretsSecretNamePutBodyType",) +__all__ = ( + "OrgsOrgDependabotSecretsGetResponse200Type", + "OrganizationDependabotSecretType", +) 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 b0ae807bd..eb6772b44 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0890.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0890.py @@ -9,17 +9,17 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import List, Literal +from typing_extensions import TypedDict, NotRequired -from .group_0082 import MinimalRepositoryType +class OrgsOrgDependabotSecretsSecretNamePutBodyType(TypedDict): + """OrgsOrgDependabotSecretsSecretNamePutBody""" -class OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): - """OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200""" + encrypted_value: NotRequired[str] + key_id: NotRequired[str] + visibility: Literal["all", "private", "selected"] + selected_repository_ids: NotRequired[List[str]] - total_count: int - repositories: List[MinimalRepositoryType] - -__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type",) +__all__ = ("OrgsOrgDependabotSecretsSecretNamePutBodyType",) 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 20b1891ca..b0ae807bd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0891.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0891.py @@ -12,11 +12,14 @@ from typing import List from typing_extensions import TypedDict +from .group_0082 import MinimalRepositoryType -class OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType(TypedDict): - """OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody""" - selected_repository_ids: List[int] +class OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): + """OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200""" + total_count: int + repositories: List[MinimalRepositoryType] -__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType",) + +__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type",) 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 122ba557e..20b1891ca 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0892.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0892.py @@ -9,34 +9,14 @@ from __future__ import annotations -from typing import List, Union -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -class OrgsOrgHooksPostBodyType(TypedDict): - """OrgsOrgHooksPostBody""" +class OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType(TypedDict): + """OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody""" - name: str - config: OrgsOrgHooksPostBodyPropConfigType - events: NotRequired[List[str]] - active: NotRequired[bool] + selected_repository_ids: List[int] -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__ = ( - "OrgsOrgHooksPostBodyType", - "OrgsOrgHooksPostBodyPropConfigType", -) +__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType",) 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 11e886a2e..122ba557e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0893.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0893.py @@ -13,17 +13,17 @@ from typing_extensions import TypedDict, NotRequired -class OrgsOrgHooksHookIdPatchBodyType(TypedDict): - """OrgsOrgHooksHookIdPatchBody""" +class OrgsOrgHooksPostBodyType(TypedDict): + """OrgsOrgHooksPostBody""" - config: NotRequired[OrgsOrgHooksHookIdPatchBodyPropConfigType] + name: str + config: OrgsOrgHooksPostBodyPropConfigType events: NotRequired[List[str]] active: NotRequired[bool] - name: NotRequired[str] -class OrgsOrgHooksHookIdPatchBodyPropConfigType(TypedDict): - """OrgsOrgHooksHookIdPatchBodyPropConfig +class OrgsOrgHooksPostBodyPropConfigType(TypedDict): + """OrgsOrgHooksPostBodyPropConfig Key/value pairs to provide settings for this webhook. """ @@ -32,9 +32,11 @@ class OrgsOrgHooksHookIdPatchBodyPropConfigType(TypedDict): content_type: NotRequired[str] secret: NotRequired[str] insecure_ssl: NotRequired[Union[str, float]] + username: NotRequired[str] + password: NotRequired[str] __all__ = ( - "OrgsOrgHooksHookIdPatchBodyType", - "OrgsOrgHooksHookIdPatchBodyPropConfigType", + "OrgsOrgHooksPostBodyType", + "OrgsOrgHooksPostBodyPropConfigType", ) 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 7e5067447..11e886a2e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0894.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0894.py @@ -9,17 +9,32 @@ from __future__ import annotations -from typing import Union +from typing import List, Union from typing_extensions import TypedDict, NotRequired -class OrgsOrgHooksHookIdConfigPatchBodyType(TypedDict): - """OrgsOrgHooksHookIdConfigPatchBody""" +class OrgsOrgHooksHookIdPatchBodyType(TypedDict): + """OrgsOrgHooksHookIdPatchBody""" - url: NotRequired[str] + config: NotRequired[OrgsOrgHooksHookIdPatchBodyPropConfigType] + events: NotRequired[List[str]] + active: NotRequired[bool] + name: NotRequired[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__ = ("OrgsOrgHooksHookIdConfigPatchBodyType",) +__all__ = ( + "OrgsOrgHooksHookIdPatchBodyType", + "OrgsOrgHooksHookIdPatchBodyPropConfigType", +) 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 6cb3bd343..7e5067447 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0895.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0895.py @@ -9,17 +9,17 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import TypedDict, NotRequired -from .group_0015 import InstallationType +class OrgsOrgHooksHookIdConfigPatchBodyType(TypedDict): + """OrgsOrgHooksHookIdConfigPatchBody""" -class OrgsOrgInstallationsGetResponse200Type(TypedDict): - """OrgsOrgInstallationsGetResponse200""" + url: NotRequired[str] + content_type: NotRequired[str] + secret: NotRequired[str] + insecure_ssl: NotRequired[Union[str, float]] - total_count: int - installations: List[InstallationType] - -__all__ = ("OrgsOrgInstallationsGetResponse200Type",) +__all__ = ("OrgsOrgHooksHookIdConfigPatchBodyType",) 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 5916d7d10..6cb3bd343 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0896.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0896.py @@ -9,11 +9,17 @@ from __future__ import annotations +from typing import List from typing_extensions import TypedDict +from .group_0015 import InstallationType -class OrgsOrgInteractionLimitsGetResponse200Anyof1Type(TypedDict): - """OrgsOrgInteractionLimitsGetResponse200Anyof1""" +class OrgsOrgInstallationsGetResponse200Type(TypedDict): + """OrgsOrgInstallationsGetResponse200""" -__all__ = ("OrgsOrgInteractionLimitsGetResponse200Anyof1Type",) + total_count: int + installations: List[InstallationType] + + +__all__ = ("OrgsOrgInstallationsGetResponse200Type",) 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 53e71b67a..5916d7d10 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0897.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0897.py @@ -9,17 +9,11 @@ from __future__ import annotations -from typing import List, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class OrgsOrgInvitationsPostBodyType(TypedDict): - """OrgsOrgInvitationsPostBody""" +class OrgsOrgInteractionLimitsGetResponse200Anyof1Type(TypedDict): + """OrgsOrgInteractionLimitsGetResponse200Anyof1""" - invitee_id: NotRequired[int] - email: NotRequired[str] - role: NotRequired[Literal["admin", "direct_member", "billing_manager", "reinstate"]] - team_ids: NotRequired[List[int]] - -__all__ = ("OrgsOrgInvitationsPostBodyType",) +__all__ = ("OrgsOrgInteractionLimitsGetResponse200Anyof1Type",) 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 b1151ada6..53e71b67a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0898.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0898.py @@ -9,17 +9,17 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import List, Literal +from typing_extensions import TypedDict, NotRequired -from .group_0094 import CodespaceType +class OrgsOrgInvitationsPostBodyType(TypedDict): + """OrgsOrgInvitationsPostBody""" -class OrgsOrgMembersUsernameCodespacesGetResponse200Type(TypedDict): - """OrgsOrgMembersUsernameCodespacesGetResponse200""" + invitee_id: NotRequired[int] + email: NotRequired[str] + role: NotRequired[Literal["admin", "direct_member", "billing_manager", "reinstate"]] + team_ids: NotRequired[List[int]] - total_count: int - codespaces: List[CodespaceType] - -__all__ = ("OrgsOrgMembersUsernameCodespacesGetResponse200Type",) +__all__ = ("OrgsOrgInvitationsPostBodyType",) 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 8a9c0bc90..b1151ada6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0899.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0899.py @@ -9,14 +9,17 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict +from .group_0094 import CodespaceType -class OrgsOrgMembershipsUsernamePutBodyType(TypedDict): - """OrgsOrgMembershipsUsernamePutBody""" - role: NotRequired[Literal["admin", "member"]] +class OrgsOrgMembersUsernameCodespacesGetResponse200Type(TypedDict): + """OrgsOrgMembersUsernameCodespacesGetResponse200""" + total_count: int + codespaces: List[CodespaceType] -__all__ = ("OrgsOrgMembershipsUsernamePutBodyType",) + +__all__ = ("OrgsOrgMembersUsernameCodespacesGetResponse200Type",) 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 f222d73fb..8a9c0bc90 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0900.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0900.py @@ -9,22 +9,14 @@ from __future__ import annotations -from typing import List, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -class OrgsOrgMigrationsPostBodyType(TypedDict): - """OrgsOrgMigrationsPostBody""" +class OrgsOrgMembershipsUsernamePutBodyType(TypedDict): + """OrgsOrgMembershipsUsernamePutBody""" - 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"]]] + role: NotRequired[Literal["admin", "member"]] -__all__ = ("OrgsOrgMigrationsPostBodyType",) +__all__ = ("OrgsOrgMembershipsUsernamePutBodyType",) 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 174eddcfe..f222d73fb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0901.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0901.py @@ -9,16 +9,22 @@ from __future__ import annotations -from typing import List +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -class OrgsOrgOrganizationRolesPostBodyType(TypedDict): - """OrgsOrgOrganizationRolesPostBody""" +class OrgsOrgMigrationsPostBodyType(TypedDict): + """OrgsOrgMigrationsPostBody""" - name: str - description: NotRequired[str] - permissions: List[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__ = ("OrgsOrgOrganizationRolesPostBodyType",) +__all__ = ("OrgsOrgMigrationsPostBodyType",) 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 7b35bcb3e..174eddcfe 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0902.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0902.py @@ -13,12 +13,12 @@ from typing_extensions import TypedDict, NotRequired -class OrgsOrgOrganizationRolesRoleIdPatchBodyType(TypedDict): - """OrgsOrgOrganizationRolesRoleIdPatchBody""" +class OrgsOrgOrganizationRolesPostBodyType(TypedDict): + """OrgsOrgOrganizationRolesPostBody""" - name: NotRequired[str] + name: str description: NotRequired[str] - permissions: NotRequired[List[str]] + permissions: List[str] -__all__ = ("OrgsOrgOrganizationRolesRoleIdPatchBodyType",) +__all__ = ("OrgsOrgOrganizationRolesPostBodyType",) 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 76bef7987..7b35bcb3e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0903.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0903.py @@ -9,13 +9,16 @@ from __future__ import annotations +from typing import List from typing_extensions import TypedDict, NotRequired -class OrgsOrgOutsideCollaboratorsUsernamePutBodyType(TypedDict): - """OrgsOrgOutsideCollaboratorsUsernamePutBody""" +class OrgsOrgOrganizationRolesRoleIdPatchBodyType(TypedDict): + """OrgsOrgOrganizationRolesRoleIdPatchBody""" - async_: NotRequired[bool] + name: NotRequired[str] + description: NotRequired[str] + permissions: NotRequired[List[str]] -__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutBodyType",) +__all__ = ("OrgsOrgOrganizationRolesRoleIdPatchBodyType",) 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 5de4170f2..76bef7987 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0904.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0904.py @@ -9,11 +9,13 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type(TypedDict): - """OrgsOrgOutsideCollaboratorsUsernamePutResponse202""" +class OrgsOrgOutsideCollaboratorsUsernamePutBodyType(TypedDict): + """OrgsOrgOutsideCollaboratorsUsernamePutBody""" + async_: NotRequired[bool] -__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type",) + +__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutBodyType",) 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 c6b448fef..5de4170f2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0905.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0905.py @@ -9,14 +9,11 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type(TypedDict): - """OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422""" +class OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type(TypedDict): + """OrgsOrgOutsideCollaboratorsUsernamePutResponse202""" - message: NotRequired[str] - documentation_url: NotRequired[str] - -__all__ = ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type",) +__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type",) 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 606354a4b..c6b448fef 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0906.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0906.py @@ -9,16 +9,14 @@ from __future__ import annotations -from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -class OrgsOrgPersonalAccessTokenRequestsPostBodyType(TypedDict): - """OrgsOrgPersonalAccessTokenRequestsPostBody""" +class OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type(TypedDict): + """OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422""" - pat_request_ids: NotRequired[List[int]] - action: Literal["approve", "deny"] - reason: NotRequired[Union[str, None]] + message: NotRequired[str] + documentation_url: NotRequired[str] -__all__ = ("OrgsOrgPersonalAccessTokenRequestsPostBodyType",) +__all__ = ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type",) 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 4fc23e50a..606354a4b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0907.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0907.py @@ -9,15 +9,16 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -class OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType(TypedDict): - """OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody""" +class OrgsOrgPersonalAccessTokenRequestsPostBodyType(TypedDict): + """OrgsOrgPersonalAccessTokenRequestsPostBody""" + pat_request_ids: NotRequired[List[int]] action: Literal["approve", "deny"] reason: NotRequired[Union[str, None]] -__all__ = ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType",) +__all__ = ("OrgsOrgPersonalAccessTokenRequestsPostBodyType",) 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 23297838b..4fc23e50a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0908.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0908.py @@ -9,15 +9,15 @@ from __future__ import annotations -from typing import List, Literal -from typing_extensions import TypedDict +from typing import Union, Literal +from typing_extensions import TypedDict, NotRequired -class OrgsOrgPersonalAccessTokensPostBodyType(TypedDict): - """OrgsOrgPersonalAccessTokensPostBody""" +class OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType(TypedDict): + """OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody""" - action: Literal["revoke"] - pat_ids: List[int] + action: Literal["approve", "deny"] + reason: NotRequired[Union[str, None]] -__all__ = ("OrgsOrgPersonalAccessTokensPostBodyType",) +__all__ = ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType",) 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 32c37cd97..23297838b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0909.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0909.py @@ -9,14 +9,15 @@ from __future__ import annotations -from typing import Literal +from typing import List, Literal from typing_extensions import TypedDict -class OrgsOrgPersonalAccessTokensPatIdPostBodyType(TypedDict): - """OrgsOrgPersonalAccessTokensPatIdPostBody""" +class OrgsOrgPersonalAccessTokensPostBodyType(TypedDict): + """OrgsOrgPersonalAccessTokensPostBody""" action: Literal["revoke"] + pat_ids: List[int] -__all__ = ("OrgsOrgPersonalAccessTokensPatIdPostBodyType",) +__all__ = ("OrgsOrgPersonalAccessTokensPostBodyType",) 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 afad09a25..32c37cd97 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0910.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0910.py @@ -9,14 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing import Literal +from typing_extensions import TypedDict -class OrgsOrgProjectsPostBodyType(TypedDict): - """OrgsOrgProjectsPostBody""" +class OrgsOrgPersonalAccessTokensPatIdPostBodyType(TypedDict): + """OrgsOrgPersonalAccessTokensPatIdPostBody""" - name: str - body: NotRequired[str] + action: Literal["revoke"] -__all__ = ("OrgsOrgProjectsPostBodyType",) +__all__ = ("OrgsOrgPersonalAccessTokensPatIdPostBodyType",) 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 8731230e7..afad09a25 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0911.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0911.py @@ -9,16 +9,14 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0119 import OrgCustomPropertyType +class OrgsOrgProjectsPostBodyType(TypedDict): + """OrgsOrgProjectsPostBody""" -class OrgsOrgPropertiesSchemaPatchBodyType(TypedDict): - """OrgsOrgPropertiesSchemaPatchBody""" + name: str + body: NotRequired[str] - properties: List[OrgCustomPropertyType] - -__all__ = ("OrgsOrgPropertiesSchemaPatchBodyType",) +__all__ = ("OrgsOrgProjectsPostBodyType",) 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 fef4a5519..8731230e7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0912.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0912.py @@ -9,18 +9,16 @@ from __future__ import annotations -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict +from .group_0119 import OrgCustomPropertyType -class OrgsOrgPropertiesSchemaCustomPropertyNamePutBodyType(TypedDict): - """OrgsOrgPropertiesSchemaCustomPropertyNamePutBody""" - 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]] +class OrgsOrgPropertiesSchemaPatchBodyType(TypedDict): + """OrgsOrgPropertiesSchemaPatchBody""" + properties: List[OrgCustomPropertyType] -__all__ = ("OrgsOrgPropertiesSchemaCustomPropertyNamePutBodyType",) + +__all__ = ("OrgsOrgPropertiesSchemaPatchBodyType",) 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 2fb8e673c..fef4a5519 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0913.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0913.py @@ -9,17 +9,18 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired -from .group_0120 import CustomPropertyValueType +class OrgsOrgPropertiesSchemaCustomPropertyNamePutBodyType(TypedDict): + """OrgsOrgPropertiesSchemaCustomPropertyNamePutBody""" -class OrgsOrgPropertiesValuesPatchBodyType(TypedDict): - """OrgsOrgPropertiesValuesPatchBody""" + 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]] - repository_names: List[str] - properties: List[CustomPropertyValueType] - -__all__ = ("OrgsOrgPropertiesValuesPatchBodyType",) +__all__ = ("OrgsOrgPropertiesSchemaCustomPropertyNamePutBodyType",) 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 4f19ca86e..2fb8e673c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0914.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0914.py @@ -9,51 +9,17 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired - - -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] - - -class OrgsOrgReposPostBodyPropCustomPropertiesType(TypedDict): - """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__ = ( - "OrgsOrgReposPostBodyType", - "OrgsOrgReposPostBodyPropCustomPropertiesType", -) +from typing import List +from typing_extensions import TypedDict + +from .group_0120 import CustomPropertyValueType + + +class OrgsOrgPropertiesValuesPatchBodyType(TypedDict): + """OrgsOrgPropertiesValuesPatchBody""" + + repository_names: List[str] + properties: List[CustomPropertyValueType] + + +__all__ = ("OrgsOrgPropertiesValuesPatchBodyType",) 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 6b0e709f2..4f19ca86e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0915.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0915.py @@ -9,79 +9,51 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0137 import RepositoryRuleUpdateType -from .group_0161 import RepositoryRuleOneof17Type -from .group_0157 import RepositoryRuleWorkflowsType -from .group_0142 import RepositoryRulePullRequestType -from .group_0133 import OrgRulesetConditionsOneof0Type -from .group_0134 import OrgRulesetConditionsOneof1Type -from .group_0135 import OrgRulesetConditionsOneof2Type -from .group_0159 import RepositoryRuleCodeScanningType -from .group_0124 import RepositoryRulesetBypassActorType -from .group_0154 import RepositoryRuleTagNamePatternType -from .group_0152 import RepositoryRuleBranchNamePatternType -from .group_0140 import RepositoryRuleRequiredDeploymentsType -from .group_0144 import RepositoryRuleRequiredStatusChecksType -from .group_0146 import RepositoryRuleCommitMessagePatternType -from .group_0150 import RepositoryRuleCommitterEmailPatternType -from .group_0148 import RepositoryRuleCommitAuthorEmailPatternType -from .group_0139 import ( - RepositoryRuleOneof15Type, - RepositoryRuleRequiredLinearHistoryType, -) -from .group_0136 import ( - RepositoryRuleOneof14Type, - RepositoryRuleOneof16Type, - RepositoryRuleCreationType, - RepositoryRuleDeletionType, - RepositoryRuleNonFastForwardType, - RepositoryRuleRequiredSignaturesType, -) - -class OrgsOrgRulesetsPostBodyType(TypedDict): - """OrgsOrgRulesetsPostBody""" +class OrgsOrgReposPostBodyType(TypedDict): + """OrgsOrgReposPostBody""" name: str - target: NotRequired[Literal["branch", "tag", "push"]] - enforcement: Literal["disabled", "active", "evaluate"] - bypass_actors: NotRequired[List[RepositoryRulesetBypassActorType]] - conditions: NotRequired[ - Union[ - OrgRulesetConditionsOneof0Type, - OrgRulesetConditionsOneof1Type, - OrgRulesetConditionsOneof2Type, - ] - ] - rules: NotRequired[ - List[ - Union[ - RepositoryRuleCreationType, - RepositoryRuleUpdateType, - RepositoryRuleDeletionType, - RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleRequiredDeploymentsType, - RepositoryRuleRequiredSignaturesType, - RepositoryRulePullRequestType, - RepositoryRuleRequiredStatusChecksType, - RepositoryRuleNonFastForwardType, - RepositoryRuleCommitMessagePatternType, - RepositoryRuleCommitAuthorEmailPatternType, - RepositoryRuleCommitterEmailPatternType, - RepositoryRuleBranchNamePatternType, - RepositoryRuleTagNamePatternType, - RepositoryRuleOneof14Type, - RepositoryRuleOneof15Type, - RepositoryRuleOneof16Type, - RepositoryRuleOneof17Type, - RepositoryRuleWorkflowsType, - RepositoryRuleCodeScanningType, - ] - ] + 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] -__all__ = ("OrgsOrgRulesetsPostBodyType",) +class OrgsOrgReposPostBodyPropCustomPropertiesType(TypedDict): + """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__ = ( + "OrgsOrgReposPostBodyType", + "OrgsOrgReposPostBodyPropCustomPropertiesType", +) 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 d64b0e60c..6b0e709f2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0916.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0916.py @@ -42,12 +42,12 @@ ) -class OrgsOrgRulesetsRulesetIdPutBodyType(TypedDict): - """OrgsOrgRulesetsRulesetIdPutBody""" +class OrgsOrgRulesetsPostBodyType(TypedDict): + """OrgsOrgRulesetsPostBody""" - name: NotRequired[str] + name: str target: NotRequired[Literal["branch", "tag", "push"]] - enforcement: NotRequired[Literal["disabled", "active", "evaluate"]] + enforcement: Literal["disabled", "active", "evaluate"] bypass_actors: NotRequired[List[RepositoryRulesetBypassActorType]] conditions: NotRequired[ Union[ @@ -84,4 +84,4 @@ class OrgsOrgRulesetsRulesetIdPutBodyType(TypedDict): ] -__all__ = ("OrgsOrgRulesetsRulesetIdPutBodyType",) +__all__ = ("OrgsOrgRulesetsPostBodyType",) 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 2bfa5cbd0..d64b0e60c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0917.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0917.py @@ -9,23 +9,79 @@ from __future__ import annotations -from typing import List, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0137 import RepositoryRuleUpdateType +from .group_0161 import RepositoryRuleOneof17Type +from .group_0157 import RepositoryRuleWorkflowsType +from .group_0142 import RepositoryRulePullRequestType +from .group_0133 import OrgRulesetConditionsOneof0Type +from .group_0134 import OrgRulesetConditionsOneof1Type +from .group_0135 import OrgRulesetConditionsOneof2Type +from .group_0159 import RepositoryRuleCodeScanningType +from .group_0124 import RepositoryRulesetBypassActorType +from .group_0154 import RepositoryRuleTagNamePatternType +from .group_0152 import RepositoryRuleBranchNamePatternType +from .group_0140 import RepositoryRuleRequiredDeploymentsType +from .group_0144 import RepositoryRuleRequiredStatusChecksType +from .group_0146 import RepositoryRuleCommitMessagePatternType +from .group_0150 import RepositoryRuleCommitterEmailPatternType +from .group_0148 import RepositoryRuleCommitAuthorEmailPatternType +from .group_0139 import ( + RepositoryRuleOneof15Type, + RepositoryRuleRequiredLinearHistoryType, +) +from .group_0136 import ( + RepositoryRuleOneof14Type, + RepositoryRuleOneof16Type, + RepositoryRuleCreationType, + RepositoryRuleDeletionType, + RepositoryRuleNonFastForwardType, + RepositoryRuleRequiredSignaturesType, +) -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"] +class OrgsOrgRulesetsRulesetIdPutBodyType(TypedDict): + """OrgsOrgRulesetsRulesetIdPutBody""" + + name: NotRequired[str] + target: NotRequired[Literal["branch", "tag", "push"]] + 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, + RepositoryRuleRequiredDeploymentsType, + RepositoryRuleRequiredSignaturesType, + RepositoryRulePullRequestType, + RepositoryRuleRequiredStatusChecksType, + RepositoryRuleNonFastForwardType, + RepositoryRuleCommitMessagePatternType, + RepositoryRuleCommitAuthorEmailPatternType, + RepositoryRuleCommitterEmailPatternType, + RepositoryRuleBranchNamePatternType, + RepositoryRuleTagNamePatternType, + RepositoryRuleOneof14Type, + RepositoryRuleOneof15Type, + RepositoryRuleOneof16Type, + RepositoryRuleOneof17Type, + RepositoryRuleWorkflowsType, + RepositoryRuleCodeScanningType, + ] + ] ] - permission: NotRequired[Literal["pull", "push"]] - parent_team_id: NotRequired[int] -__all__ = ("OrgsOrgTeamsPostBodyType",) +__all__ = ("OrgsOrgRulesetsRulesetIdPutBodyType",) 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 19f0b0ccd..2bfa5cbd0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0918.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0918.py @@ -9,21 +9,23 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -class OrgsOrgTeamsTeamSlugPatchBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugPatchBody""" +class OrgsOrgTeamsPostBodyType(TypedDict): + """OrgsOrgTeamsPostBody""" - name: NotRequired[str] + 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", "admin"]] - parent_team_id: NotRequired[Union[int, None]] + permission: NotRequired[Literal["pull", "push"]] + parent_team_id: NotRequired[int] -__all__ = ("OrgsOrgTeamsTeamSlugPatchBodyType",) +__all__ = ("OrgsOrgTeamsPostBodyType",) 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 81e2f4f67..19f0b0ccd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0919.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0919.py @@ -9,15 +9,21 @@ from __future__ import annotations +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -class OrgsOrgTeamsTeamSlugDiscussionsPostBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugDiscussionsPostBody""" +class OrgsOrgTeamsTeamSlugPatchBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugPatchBody""" - title: str - body: str - private: NotRequired[bool] + 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__ = ("OrgsOrgTeamsTeamSlugDiscussionsPostBodyType",) +__all__ = ("OrgsOrgTeamsTeamSlugPatchBodyType",) 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 555845d86..81e2f4f67 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0920.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0920.py @@ -12,11 +12,12 @@ from typing_extensions import TypedDict, NotRequired -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody""" +class OrgsOrgTeamsTeamSlugDiscussionsPostBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugDiscussionsPostBody""" - title: NotRequired[str] - body: NotRequired[str] + title: str + body: str + private: NotRequired[bool] -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBodyType",) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsPostBodyType",) 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 a05290583..555845d86 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0921.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0921.py @@ -9,13 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody""" - body: str + title: NotRequired[str] + body: NotRequired[str] -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType",) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBodyType",) 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 a6b974137..a05290583 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0922.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0922.py @@ -12,14 +12,10 @@ from typing_extensions import TypedDict -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType( - TypedDict -): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody""" body: str -__all__ = ( - "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType", -) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType",) 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 937b98f91..a6b974137 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0923.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0923.py @@ -9,22 +9,17 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType( +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType( TypedDict ): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPos - tBody - """ + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] + body: str __all__ = ( - "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType", + "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType", ) 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 c71526f64..937b98f91 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0924.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0924.py @@ -13,12 +13,18 @@ from typing_extensions import TypedDict -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType( + TypedDict +): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPos + tBody + """ content: Literal[ "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" ] -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBodyType",) +__all__ = ( + "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType", +) 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 2c9744c1c..c71526f64 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0925.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0925.py @@ -9,13 +9,16 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict -class OrgsOrgTeamsTeamSlugExternalGroupsPatchBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugExternalGroupsPatchBody""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody""" - group_id: int + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] -__all__ = ("OrgsOrgTeamsTeamSlugExternalGroupsPatchBodyType",) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBodyType",) 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 3551630af..2c9744c1c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0926.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0926.py @@ -9,14 +9,13 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody""" +class OrgsOrgTeamsTeamSlugExternalGroupsPatchBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugExternalGroupsPatchBody""" - role: NotRequired[Literal["member", "maintainer"]] + group_id: int -__all__ = ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType",) +__all__ = ("OrgsOrgTeamsTeamSlugExternalGroupsPatchBodyType",) 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 4e75e8844..3551630af 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0927.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0927.py @@ -13,10 +13,10 @@ from typing_extensions import TypedDict, NotRequired -class OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody""" +class OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody""" - permission: NotRequired[Literal["read", "write", "admin"]] + role: NotRequired[Literal["member", "maintainer"]] -__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType",) +__all__ = ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType",) 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 42d481609..4e75e8844 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0928.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0928.py @@ -9,14 +9,14 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict, NotRequired -class OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type(TypedDict): - """OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403""" +class OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody""" - message: NotRequired[str] - documentation_url: NotRequired[str] + permission: NotRequired[Literal["read", "write", "admin"]] -__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type",) +__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType",) 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 0851e1500..42d481609 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0929.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0929.py @@ -12,10 +12,11 @@ from typing_extensions import TypedDict, NotRequired -class OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody""" +class OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type(TypedDict): + """OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403""" - permission: NotRequired[str] + message: NotRequired[str] + documentation_url: NotRequired[str] -__all__ = ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType",) +__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type",) 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 be0b0a638..0851e1500 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0930.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0930.py @@ -9,27 +9,13 @@ from __future__ import annotations -from typing import List from typing_extensions import TypedDict, NotRequired -class OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBody""" +class OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody""" - groups: NotRequired[ - List[OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItemsType] - ] + permission: NotRequired[str] -class OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItemsType(TypedDict): - """OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItems""" - - group_id: str - group_name: str - group_description: str - - -__all__ = ( - "OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyType", - "OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItemsType", -) +__all__ = ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType",) 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 5ef349fe1..be0b0a638 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0931.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0931.py @@ -9,14 +9,27 @@ from __future__ import annotations -from typing import Literal +from typing import List from typing_extensions import TypedDict, NotRequired -class OrgsOrgSecurityProductEnablementPostBodyType(TypedDict): - """OrgsOrgSecurityProductEnablementPostBody""" +class OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBody""" - query_suite: NotRequired[Literal["default", "extended"]] + groups: NotRequired[ + List[OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItemsType] + ] -__all__ = ("OrgsOrgSecurityProductEnablementPostBodyType",) +class OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItemsType(TypedDict): + """OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItems""" + + group_id: str + group_name: str + group_description: str + + +__all__ = ( + "OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyType", + "OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItemsType", +) 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 90b8767cf..5ef349fe1 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,14 @@ from __future__ import annotations -from typing import List +from typing import Literal from typing_extensions import TypedDict, NotRequired -class ProjectsColumnsCardsCardIdDeleteResponse403Type(TypedDict): - """ProjectsColumnsCardsCardIdDeleteResponse403""" +class OrgsOrgSecurityProductEnablementPostBodyType(TypedDict): + """OrgsOrgSecurityProductEnablementPostBody""" - message: NotRequired[str] - documentation_url: NotRequired[str] - errors: NotRequired[List[str]] + query_suite: NotRequired[Literal["default", "extended"]] -__all__ = ("ProjectsColumnsCardsCardIdDeleteResponse403Type",) +__all__ = ("OrgsOrgSecurityProductEnablementPostBodyType",) 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 201f880aa..90b8767cf 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0933.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0933.py @@ -9,15 +9,16 @@ from __future__ import annotations -from typing import Union +from typing import List from typing_extensions import TypedDict, NotRequired -class ProjectsColumnsCardsCardIdPatchBodyType(TypedDict): - """ProjectsColumnsCardsCardIdPatchBody""" +class ProjectsColumnsCardsCardIdDeleteResponse403Type(TypedDict): + """ProjectsColumnsCardsCardIdDeleteResponse403""" - note: NotRequired[Union[str, None]] - archived: NotRequired[bool] + message: NotRequired[str] + documentation_url: NotRequired[str] + errors: NotRequired[List[str]] -__all__ = ("ProjectsColumnsCardsCardIdPatchBodyType",) +__all__ = ("ProjectsColumnsCardsCardIdDeleteResponse403Type",) 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 6ae64aa6a..201f880aa 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0934.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0934.py @@ -9,14 +9,15 @@ from __future__ import annotations +from typing import Union from typing_extensions import TypedDict, NotRequired -class ProjectsColumnsCardsCardIdMovesPostBodyType(TypedDict): - """ProjectsColumnsCardsCardIdMovesPostBody""" +class ProjectsColumnsCardsCardIdPatchBodyType(TypedDict): + """ProjectsColumnsCardsCardIdPatchBody""" - position: str - column_id: NotRequired[int] + note: NotRequired[Union[str, None]] + archived: NotRequired[bool] -__all__ = ("ProjectsColumnsCardsCardIdMovesPostBodyType",) +__all__ = ("ProjectsColumnsCardsCardIdPatchBodyType",) 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 7c136f63a..6ae64aa6a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0935.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0935.py @@ -9,11 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class ProjectsColumnsCardsCardIdMovesPostResponse201Type(TypedDict): - """ProjectsColumnsCardsCardIdMovesPostResponse201""" +class ProjectsColumnsCardsCardIdMovesPostBodyType(TypedDict): + """ProjectsColumnsCardsCardIdMovesPostBody""" + position: str + column_id: NotRequired[int] -__all__ = ("ProjectsColumnsCardsCardIdMovesPostResponse201Type",) + +__all__ = ("ProjectsColumnsCardsCardIdMovesPostBodyType",) 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 dd0f1fcf5..7c136f63a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0936.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0936.py @@ -9,30 +9,11 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ProjectsColumnsCardsCardIdMovesPostResponse403Type(TypedDict): - """ProjectsColumnsCardsCardIdMovesPostResponse403""" +class ProjectsColumnsCardsCardIdMovesPostResponse201Type(TypedDict): + """ProjectsColumnsCardsCardIdMovesPostResponse201""" - message: NotRequired[str] - documentation_url: NotRequired[str] - errors: NotRequired[ - List[ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType] - ] - -class ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType(TypedDict): - """ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems""" - - code: NotRequired[str] - message: NotRequired[str] - resource: NotRequired[str] - field: NotRequired[str] - - -__all__ = ( - "ProjectsColumnsCardsCardIdMovesPostResponse403Type", - "ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType", -) +__all__ = ("ProjectsColumnsCardsCardIdMovesPostResponse201Type",) 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 b4b6ae8c8..dd0f1fcf5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0937.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0937.py @@ -13,25 +13,26 @@ from typing_extensions import TypedDict, NotRequired -class ProjectsColumnsCardsCardIdMovesPostResponse503Type(TypedDict): - """ProjectsColumnsCardsCardIdMovesPostResponse503""" +class ProjectsColumnsCardsCardIdMovesPostResponse403Type(TypedDict): + """ProjectsColumnsCardsCardIdMovesPostResponse403""" - code: NotRequired[str] message: NotRequired[str] documentation_url: NotRequired[str] errors: NotRequired[ - List[ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType] + List[ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType] ] -class ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType(TypedDict): - """ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems""" +class ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType(TypedDict): + """ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems""" code: NotRequired[str] message: NotRequired[str] + resource: NotRequired[str] + field: NotRequired[str] __all__ = ( - "ProjectsColumnsCardsCardIdMovesPostResponse503Type", - "ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType", + "ProjectsColumnsCardsCardIdMovesPostResponse403Type", + "ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType", ) 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 62ebaaaef..b4b6ae8c8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0938.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0938.py @@ -9,13 +9,29 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import List +from typing_extensions import TypedDict, NotRequired -class ProjectsColumnsColumnIdPatchBodyType(TypedDict): - """ProjectsColumnsColumnIdPatchBody""" +class ProjectsColumnsCardsCardIdMovesPostResponse503Type(TypedDict): + """ProjectsColumnsCardsCardIdMovesPostResponse503""" - name: str + code: NotRequired[str] + message: NotRequired[str] + documentation_url: NotRequired[str] + errors: NotRequired[ + List[ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType] + ] -__all__ = ("ProjectsColumnsColumnIdPatchBodyType",) +class ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType(TypedDict): + """ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems""" + + code: NotRequired[str] + message: NotRequired[str] + + +__all__ = ( + "ProjectsColumnsCardsCardIdMovesPostResponse503Type", + "ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType", +) 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 1fdc1bf2e..62ebaaaef 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0939.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0939.py @@ -9,14 +9,13 @@ from __future__ import annotations -from typing import Union from typing_extensions import TypedDict -class ProjectsColumnsColumnIdCardsPostBodyOneof0Type(TypedDict): - """ProjectsColumnsColumnIdCardsPostBodyOneof0""" +class ProjectsColumnsColumnIdPatchBodyType(TypedDict): + """ProjectsColumnsColumnIdPatchBody""" - note: Union[str, None] + name: str -__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof0Type",) +__all__ = ("ProjectsColumnsColumnIdPatchBodyType",) 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 93c271e2e..1fdc1bf2e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0940.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0940.py @@ -9,14 +9,14 @@ from __future__ import annotations +from typing import Union from typing_extensions import TypedDict -class ProjectsColumnsColumnIdCardsPostBodyOneof1Type(TypedDict): - """ProjectsColumnsColumnIdCardsPostBodyOneof1""" +class ProjectsColumnsColumnIdCardsPostBodyOneof0Type(TypedDict): + """ProjectsColumnsColumnIdCardsPostBodyOneof0""" - content_id: int - content_type: str + note: Union[str, None] -__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof1Type",) +__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof0Type",) 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 ff00e5f62..93c271e2e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0941.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0941.py @@ -9,29 +9,14 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ProjectsColumnsColumnIdCardsPostResponse503Type(TypedDict): - """ProjectsColumnsColumnIdCardsPostResponse503""" +class ProjectsColumnsColumnIdCardsPostBodyOneof1Type(TypedDict): + """ProjectsColumnsColumnIdCardsPostBodyOneof1""" - code: NotRequired[str] - message: NotRequired[str] - documentation_url: NotRequired[str] - errors: NotRequired[ - List[ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType] - ] + content_id: int + content_type: str -class ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType(TypedDict): - """ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems""" - - code: NotRequired[str] - message: NotRequired[str] - - -__all__ = ( - "ProjectsColumnsColumnIdCardsPostResponse503Type", - "ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType", -) +__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof1Type",) 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 1eee63273..ff00e5f62 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0942.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0942.py @@ -9,13 +9,29 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import List +from typing_extensions import TypedDict, NotRequired -class ProjectsColumnsColumnIdMovesPostBodyType(TypedDict): - """ProjectsColumnsColumnIdMovesPostBody""" +class ProjectsColumnsColumnIdCardsPostResponse503Type(TypedDict): + """ProjectsColumnsColumnIdCardsPostResponse503""" - position: str + code: NotRequired[str] + message: NotRequired[str] + documentation_url: NotRequired[str] + errors: NotRequired[ + List[ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType] + ] -__all__ = ("ProjectsColumnsColumnIdMovesPostBodyType",) +class ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType(TypedDict): + """ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems""" + + code: NotRequired[str] + message: NotRequired[str] + + +__all__ = ( + "ProjectsColumnsColumnIdCardsPostResponse503Type", + "ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType", +) 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 7df563c61..1eee63273 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0943.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0943.py @@ -12,8 +12,10 @@ from typing_extensions import TypedDict -class ProjectsColumnsColumnIdMovesPostResponse201Type(TypedDict): - """ProjectsColumnsColumnIdMovesPostResponse201""" +class ProjectsColumnsColumnIdMovesPostBodyType(TypedDict): + """ProjectsColumnsColumnIdMovesPostBody""" + position: str -__all__ = ("ProjectsColumnsColumnIdMovesPostResponse201Type",) + +__all__ = ("ProjectsColumnsColumnIdMovesPostBodyType",) 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 9109dd1f5..7df563c61 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0944.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0944.py @@ -9,16 +9,11 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ProjectsProjectIdDeleteResponse403Type(TypedDict): - """ProjectsProjectIdDeleteResponse403""" +class ProjectsColumnsColumnIdMovesPostResponse201Type(TypedDict): + """ProjectsColumnsColumnIdMovesPostResponse201""" - message: NotRequired[str] - documentation_url: NotRequired[str] - errors: NotRequired[List[str]] - -__all__ = ("ProjectsProjectIdDeleteResponse403Type",) +__all__ = ("ProjectsColumnsColumnIdMovesPostResponse201Type",) 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 c0a6113f3..9109dd1f5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0945.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0945.py @@ -9,18 +9,16 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List from typing_extensions import TypedDict, NotRequired -class ProjectsProjectIdPatchBodyType(TypedDict): - """ProjectsProjectIdPatchBody""" +class ProjectsProjectIdDeleteResponse403Type(TypedDict): + """ProjectsProjectIdDeleteResponse403""" - 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[str]] -__all__ = ("ProjectsProjectIdPatchBodyType",) +__all__ = ("ProjectsProjectIdDeleteResponse403Type",) 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 86724eccf..c0a6113f3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0946.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0946.py @@ -9,16 +9,18 @@ from __future__ import annotations -from typing import List +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -class ProjectsProjectIdPatchResponse403Type(TypedDict): - """ProjectsProjectIdPatchResponse403""" +class ProjectsProjectIdPatchBodyType(TypedDict): + """ProjectsProjectIdPatchBody""" - message: NotRequired[str] - documentation_url: NotRequired[str] - errors: NotRequired[List[str]] + name: NotRequired[str] + body: NotRequired[Union[str, None]] + state: NotRequired[str] + organization_permission: NotRequired[Literal["read", "write", "admin", "none"]] + private: NotRequired[bool] -__all__ = ("ProjectsProjectIdPatchResponse403Type",) +__all__ = ("ProjectsProjectIdPatchBodyType",) 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 42de766b0..86724eccf 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0947.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0947.py @@ -9,14 +9,16 @@ from __future__ import annotations -from typing import Literal +from typing import List from typing_extensions import TypedDict, NotRequired -class ProjectsProjectIdCollaboratorsUsernamePutBodyType(TypedDict): - """ProjectsProjectIdCollaboratorsUsernamePutBody""" +class ProjectsProjectIdPatchResponse403Type(TypedDict): + """ProjectsProjectIdPatchResponse403""" - permission: NotRequired[Literal["read", "write", "admin"]] + message: NotRequired[str] + documentation_url: NotRequired[str] + errors: NotRequired[List[str]] -__all__ = ("ProjectsProjectIdCollaboratorsUsernamePutBodyType",) +__all__ = ("ProjectsProjectIdPatchResponse403Type",) 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 8c02d8953..42de766b0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0948.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0948.py @@ -9,13 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import TypedDict, NotRequired -class ProjectsProjectIdColumnsPostBodyType(TypedDict): - """ProjectsProjectIdColumnsPostBody""" +class ProjectsProjectIdCollaboratorsUsernamePutBodyType(TypedDict): + """ProjectsProjectIdCollaboratorsUsernamePutBody""" - name: str + permission: NotRequired[Literal["read", "write", "admin"]] -__all__ = ("ProjectsProjectIdColumnsPostBodyType",) +__all__ = ("ProjectsProjectIdCollaboratorsUsernamePutBodyType",) 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 f63d55222..8c02d8953 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0949.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0949.py @@ -9,14 +9,13 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ReposOwnerRepoDeleteResponse403Type(TypedDict): - """ReposOwnerRepoDeleteResponse403""" +class ProjectsProjectIdColumnsPostBodyType(TypedDict): + """ProjectsProjectIdColumnsPostBody""" - message: NotRequired[str] - documentation_url: NotRequired[str] + name: str -__all__ = ("ReposOwnerRepoDeleteResponse403Type",) +__all__ = ("ProjectsProjectIdColumnsPostBodyType",) 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 63ade159b..f63d55222 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0950.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0950.py @@ -9,152 +9,14 @@ from __future__ import annotations -from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoPatchBodyType(TypedDict): - """ReposOwnerRepoPatchBody""" +class ReposOwnerRepoDeleteResponse403Type(TypedDict): + """ReposOwnerRepoDeleteResponse403""" - 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] + message: NotRequired[str] + documentation_url: NotRequired[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 - ] - secret_scanning: NotRequired[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType - ] - secret_scanning_push_protection: NotRequired[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType - ] - 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 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 ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatternsType( - TypedDict -): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatte - rns - - Use the `status` property to enable or disable secret scanning non-provider - patterns for this repository. For more information, see "[Secret scanning - supported secrets](/code-security/secret-scanning/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__ = ( - "ReposOwnerRepoPatchBodyType", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatternsType", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecksType", -) +__all__ = ("ReposOwnerRepoDeleteResponse403Type",) 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 969b2d557..63ade159b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0951.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0951.py @@ -9,17 +9,152 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import Union, Literal +from typing_extensions import TypedDict, NotRequired -from .group_0181 import ArtifactType +class ReposOwnerRepoPatchBodyType(TypedDict): + """ReposOwnerRepoPatchBody""" -class ReposOwnerRepoActionsArtifactsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsArtifactsGetResponse200""" + 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] - total_count: int - artifacts: List[ArtifactType] +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType(TypedDict): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysis -__all__ = ("ReposOwnerRepoActionsArtifactsGetResponse200Type",) + 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 + ] + secret_scanning: NotRequired[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType + ] + secret_scanning_push_protection: NotRequired[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType + ] + 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 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 ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatternsType( + TypedDict +): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatte + rns + + Use the `status` property to enable or disable secret scanning non-provider + patterns for this repository. For more information, see "[Secret scanning + supported secrets](/code-security/secret-scanning/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__ = ( + "ReposOwnerRepoPatchBodyType", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatternsType", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecksType", +) 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 2956c520b..969b2d557 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,17 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict +from .group_0181 import ArtifactType -class ReposOwnerRepoActionsJobsJobIdRerunPostBodyType(TypedDict): - """ReposOwnerRepoActionsJobsJobIdRerunPostBody""" - enable_debug_logging: NotRequired[bool] +class ReposOwnerRepoActionsArtifactsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsArtifactsGetResponse200""" + total_count: int + artifacts: List[ArtifactType] -__all__ = ("ReposOwnerRepoActionsJobsJobIdRerunPostBodyType",) + +__all__ = ("ReposOwnerRepoActionsArtifactsGetResponse200Type",) 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 47a8c99be..2956c520b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0953.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0953.py @@ -9,18 +9,13 @@ from __future__ import annotations -from typing import List from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoActionsOidcCustomizationSubPutBodyType(TypedDict): - """Actions OIDC subject customization for a repository +class ReposOwnerRepoActionsJobsJobIdRerunPostBodyType(TypedDict): + """ReposOwnerRepoActionsJobsJobIdRerunPostBody""" - Actions OIDC subject customization for a repository - """ + enable_debug_logging: NotRequired[bool] - use_default: bool - include_claim_keys: NotRequired[List[str]] - -__all__ = ("ReposOwnerRepoActionsOidcCustomizationSubPutBodyType",) +__all__ = ("ReposOwnerRepoActionsJobsJobIdRerunPostBodyType",) 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 8069668e0..47a8c99be 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0954.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0954.py @@ -10,16 +10,17 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0185 import ActionsSecretType +class ReposOwnerRepoActionsOidcCustomizationSubPutBodyType(TypedDict): + """Actions OIDC subject customization for a repository -class ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsOrganizationSecretsGetResponse200""" + Actions OIDC subject customization for a repository + """ - total_count: int - secrets: List[ActionsSecretType] + use_default: bool + include_claim_keys: NotRequired[List[str]] -__all__ = ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type",) +__all__ = ("ReposOwnerRepoActionsOidcCustomizationSubPutBodyType",) 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 995c55459..8069668e0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0955.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0955.py @@ -12,14 +12,14 @@ from typing import List from typing_extensions import TypedDict -from .group_0186 import ActionsVariableType +from .group_0185 import ActionsSecretType -class ReposOwnerRepoActionsOrganizationVariablesGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsOrganizationVariablesGetResponse200""" +class ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsOrganizationSecretsGetResponse200""" total_count: int - variables: List[ActionsVariableType] + secrets: List[ActionsSecretType] -__all__ = ("ReposOwnerRepoActionsOrganizationVariablesGetResponse200Type",) +__all__ = ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type",) 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 a82dcbc99..995c55459 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0956.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0956.py @@ -9,15 +9,17 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict +from .group_0186 import ActionsVariableType -class ReposOwnerRepoActionsPermissionsPutBodyType(TypedDict): - """ReposOwnerRepoActionsPermissionsPutBody""" - enabled: bool - allowed_actions: NotRequired[Literal["all", "local_only", "selected"]] +class ReposOwnerRepoActionsOrganizationVariablesGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsOrganizationVariablesGetResponse200""" + total_count: int + variables: List[ActionsVariableType] -__all__ = ("ReposOwnerRepoActionsPermissionsPutBodyType",) + +__all__ = ("ReposOwnerRepoActionsOrganizationVariablesGetResponse200Type",) 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 402ca4b69..a82dcbc99 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0957.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0957.py @@ -9,17 +9,15 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import TypedDict, NotRequired -from .group_0034 import RunnerType +class ReposOwnerRepoActionsPermissionsPutBodyType(TypedDict): + """ReposOwnerRepoActionsPermissionsPutBody""" -class ReposOwnerRepoActionsRunnersGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsRunnersGetResponse200""" + enabled: bool + allowed_actions: NotRequired[Literal["all", "local_only", "selected"]] - total_count: int - runners: List[RunnerType] - -__all__ = ("ReposOwnerRepoActionsRunnersGetResponse200Type",) +__all__ = ("ReposOwnerRepoActionsPermissionsPutBodyType",) 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 97ef4a4a4..402ca4b69 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0958.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0958.py @@ -10,16 +10,16 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict +from .group_0034 import RunnerType -class ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType(TypedDict): - """ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody""" - name: str - runner_group_id: int - labels: List[str] - work_folder: NotRequired[str] +class ReposOwnerRepoActionsRunnersGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsRunnersGetResponse200""" + total_count: int + runners: List[RunnerType] -__all__ = ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType",) + +__all__ = ("ReposOwnerRepoActionsRunnersGetResponse200Type",) 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 cfeabe90a..97ef4a4a4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0959.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0959.py @@ -10,13 +10,16 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType(TypedDict): - """ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody""" +class ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType(TypedDict): + """ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody""" + name: str + runner_group_id: int labels: List[str] + work_folder: NotRequired[str] -__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType",) +__all__ = ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType",) 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 1162ab0c2..cfeabe90a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0960.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0960.py @@ -13,10 +13,10 @@ from typing_extensions import TypedDict -class ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType(TypedDict): - """ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody""" +class ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType(TypedDict): + """ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody""" labels: List[str] -__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType",) +__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType",) 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 cff2eb987..1162ab0c2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0961.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0961.py @@ -12,14 +12,11 @@ from typing import List from typing_extensions import TypedDict -from .group_0191 import WorkflowRunType +class ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType(TypedDict): + """ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody""" -class ReposOwnerRepoActionsRunsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsRunsGetResponse200""" + labels: List[str] - total_count: int - workflow_runs: List[WorkflowRunType] - -__all__ = ("ReposOwnerRepoActionsRunsGetResponse200Type",) +__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType",) 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 6f41fb3df..cff2eb987 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0962.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0962.py @@ -12,14 +12,14 @@ from typing import List from typing_extensions import TypedDict -from .group_0181 import ArtifactType +from .group_0191 import WorkflowRunType -class ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200""" +class ReposOwnerRepoActionsRunsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsRunsGetResponse200""" total_count: int - artifacts: List[ArtifactType] + workflow_runs: List[WorkflowRunType] -__all__ = ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type",) +__all__ = ("ReposOwnerRepoActionsRunsGetResponse200Type",) 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 0e284f356..6f41fb3df 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0963.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0963.py @@ -12,16 +12,14 @@ from typing import List from typing_extensions import TypedDict -from .group_0183 import JobType +from .group_0181 import ArtifactType -class ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200Type( - TypedDict -): - """ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200""" +class ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200""" total_count: int - jobs: List[JobType] + artifacts: List[ArtifactType] -__all__ = ("ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200Type",) +__all__ = ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type",) 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 54f6807d1..0e284f356 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0964.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0964.py @@ -15,11 +15,13 @@ from .group_0183 import JobType -class ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsRunsRunIdJobsGetResponse200""" +class ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200Type( + TypedDict +): + """ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200""" total_count: int jobs: List[JobType] -__all__ = ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type",) +__all__ = ("ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200Type",) 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 88fd8a6dd..54f6807d1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0965.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0965.py @@ -9,16 +9,17 @@ from __future__ import annotations -from typing import List, Literal +from typing import List from typing_extensions import TypedDict +from .group_0183 import JobType -class ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBodyType(TypedDict): - """ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody""" - environment_ids: List[int] - state: Literal["approved", "rejected"] - comment: str +class ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsRunsRunIdJobsGetResponse200""" + total_count: int + jobs: List[JobType] -__all__ = ("ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBodyType",) + +__all__ = ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type",) 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 c33d4529b..88fd8a6dd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0966.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0966.py @@ -9,13 +9,16 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing import List, Literal +from typing_extensions import TypedDict -class ReposOwnerRepoActionsRunsRunIdRerunPostBodyType(TypedDict): - """ReposOwnerRepoActionsRunsRunIdRerunPostBody""" +class ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBodyType(TypedDict): + """ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody""" - enable_debug_logging: NotRequired[bool] + environment_ids: List[int] + state: Literal["approved", "rejected"] + comment: str -__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunPostBodyType",) +__all__ = ("ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBodyType",) 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 1160daba0..c33d4529b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0967.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0967.py @@ -12,10 +12,10 @@ from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType(TypedDict): - """ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody""" +class ReposOwnerRepoActionsRunsRunIdRerunPostBodyType(TypedDict): + """ReposOwnerRepoActionsRunsRunIdRerunPostBody""" enable_debug_logging: NotRequired[bool] -__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType",) +__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunPostBodyType",) 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 45a987ba8..1160daba0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0968.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0968.py @@ -9,17 +9,13 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0185 import ActionsSecretType +class ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType(TypedDict): + """ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody""" -class ReposOwnerRepoActionsSecretsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsSecretsGetResponse200""" + enable_debug_logging: NotRequired[bool] - total_count: int - secrets: List[ActionsSecretType] - -__all__ = ("ReposOwnerRepoActionsSecretsGetResponse200Type",) +__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType",) 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 c1ad71389..45a987ba8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0969.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0969.py @@ -9,14 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict +from .group_0185 import ActionsSecretType -class ReposOwnerRepoActionsSecretsSecretNamePutBodyType(TypedDict): - """ReposOwnerRepoActionsSecretsSecretNamePutBody""" - encrypted_value: NotRequired[str] - key_id: NotRequired[str] +class ReposOwnerRepoActionsSecretsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsSecretsGetResponse200""" + total_count: int + secrets: List[ActionsSecretType] -__all__ = ("ReposOwnerRepoActionsSecretsSecretNamePutBodyType",) + +__all__ = ("ReposOwnerRepoActionsSecretsGetResponse200Type",) 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 2dcd4a8e0..c1ad71389 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0970.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0970.py @@ -9,17 +9,14 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0186 import ActionsVariableType +class ReposOwnerRepoActionsSecretsSecretNamePutBodyType(TypedDict): + """ReposOwnerRepoActionsSecretsSecretNamePutBody""" -class ReposOwnerRepoActionsVariablesGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsVariablesGetResponse200""" + encrypted_value: NotRequired[str] + key_id: NotRequired[str] - total_count: int - variables: List[ActionsVariableType] - -__all__ = ("ReposOwnerRepoActionsVariablesGetResponse200Type",) +__all__ = ("ReposOwnerRepoActionsSecretsSecretNamePutBodyType",) 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 a5b1bcda1..2dcd4a8e0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0971.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0971.py @@ -9,14 +9,17 @@ from __future__ import annotations +from typing import List from typing_extensions import TypedDict +from .group_0186 import ActionsVariableType -class ReposOwnerRepoActionsVariablesPostBodyType(TypedDict): - """ReposOwnerRepoActionsVariablesPostBody""" - name: str - value: str +class ReposOwnerRepoActionsVariablesGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsVariablesGetResponse200""" + total_count: int + variables: List[ActionsVariableType] -__all__ = ("ReposOwnerRepoActionsVariablesPostBodyType",) + +__all__ = ("ReposOwnerRepoActionsVariablesGetResponse200Type",) 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 ad7d7d522..a5b1bcda1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0972.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0972.py @@ -9,14 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ReposOwnerRepoActionsVariablesNamePatchBodyType(TypedDict): - """ReposOwnerRepoActionsVariablesNamePatchBody""" +class ReposOwnerRepoActionsVariablesPostBodyType(TypedDict): + """ReposOwnerRepoActionsVariablesPostBody""" - name: NotRequired[str] - value: NotRequired[str] + name: str + value: str -__all__ = ("ReposOwnerRepoActionsVariablesNamePatchBodyType",) +__all__ = ("ReposOwnerRepoActionsVariablesPostBodyType",) 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 20e7c3509..ad7d7d522 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0973.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0973.py @@ -9,40 +9,14 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoActionsWorkflowsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsWorkflowsGetResponse200""" +class ReposOwnerRepoActionsVariablesNamePatchBodyType(TypedDict): + """ReposOwnerRepoActionsVariablesNamePatchBody""" - total_count: int - workflows: List[WorkflowType] + name: NotRequired[str] + value: NotRequired[str] -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", -) +__all__ = ("ReposOwnerRepoActionsVariablesNamePatchBodyType",) 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 08a15748d..20e7c3509 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0974.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0974.py @@ -9,30 +9,40 @@ from __future__ import annotations +from datetime import datetime +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyType(TypedDict): - """ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody""" +class ReposOwnerRepoActionsWorkflowsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsWorkflowsGetResponse200""" - ref: str - inputs: NotRequired[ - ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType - ] + total_count: int + workflows: List[WorkflowType] -class ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType( - TypedDict -): - """ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs +class WorkflowType(TypedDict): + """Workflow - 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. + 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__ = ( - "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyType", - "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType", + "ReposOwnerRepoActionsWorkflowsGetResponse200Type", + "WorkflowType", ) 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 d05bc64e3..08a15748d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0975.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0975.py @@ -9,17 +9,30 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0191 import WorkflowRunType +class ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyType(TypedDict): + """ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody""" -class ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200""" + ref: str + inputs: NotRequired[ + ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType + ] - total_count: int - workflow_runs: List[WorkflowRunType] +class ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType( + TypedDict +): + """ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs -__all__ = ("ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200Type",) + 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__ = ( + "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyType", + "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType", +) 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 12bc802f9..d05bc64e3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0976.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0976.py @@ -9,46 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict +from .group_0191 import WorkflowRunType -class ReposOwnerRepoAttestationsPostBodyType(TypedDict): - """ReposOwnerRepoAttestationsPostBody""" - bundle: ReposOwnerRepoAttestationsPostBodyPropBundleType +class ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200""" + total_count: int + workflow_runs: List[WorkflowRunType] -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 - ] - - -class ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterialType( - TypedDict -): - """ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial""" - - -class ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelopeType(TypedDict): - """ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope""" - - -__all__ = ( - "ReposOwnerRepoAttestationsPostBodyType", - "ReposOwnerRepoAttestationsPostBodyPropBundleType", - "ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterialType", - "ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelopeType", -) +__all__ = ("ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200Type",) 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 65a2e6e51..12bc802f9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0977.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0977.py @@ -12,10 +12,43 @@ from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoAttestationsPostResponse201Type(TypedDict): - """ReposOwnerRepoAttestationsPostResponse201""" +class ReposOwnerRepoAttestationsPostBodyType(TypedDict): + """ReposOwnerRepoAttestationsPostBody""" - id: NotRequired[int] + bundle: ReposOwnerRepoAttestationsPostBodyPropBundleType -__all__ = ("ReposOwnerRepoAttestationsPostResponse201Type",) +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 + ] + + +class ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterialType( + TypedDict +): + """ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial""" + + +class ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelopeType(TypedDict): + """ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope""" + + +__all__ = ( + "ReposOwnerRepoAttestationsPostBodyType", + "ReposOwnerRepoAttestationsPostBodyPropBundleType", + "ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterialType", + "ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelopeType", +) 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 dcefb1572..65a2e6e51 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0978.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0978.py @@ -9,72 +9,13 @@ from __future__ import annotations -from typing import List from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoAttestationsSubjectDigestGetResponse200Type(TypedDict): - """ReposOwnerRepoAttestationsSubjectDigestGetResponse200""" +class ReposOwnerRepoAttestationsPostResponse201Type(TypedDict): + """ReposOwnerRepoAttestationsPostResponse201""" - attestations: NotRequired[ - List[ - ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsType - ] - ] + id: NotRequired[int] -class ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsType( - TypedDict -): - """ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems""" - - bundle: NotRequired[ - ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType - ] - repository_id: NotRequired[int] - - -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 - ] - - -class ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType( - TypedDict -): - """ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBu - ndlePropVerificationMaterial - """ - - -class ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType( - TypedDict -): - """ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBu - ndlePropDsseEnvelope - """ - - -__all__ = ( - "ReposOwnerRepoAttestationsSubjectDigestGetResponse200Type", - "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsType", - "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType", - "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType", - "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType", -) +__all__ = ("ReposOwnerRepoAttestationsPostResponse201Type",) 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 a77eacf3e..dcefb1572 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0979.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0979.py @@ -9,15 +9,72 @@ from __future__ import annotations +from typing import List from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoAutolinksPostBodyType(TypedDict): - """ReposOwnerRepoAutolinksPostBody""" +class ReposOwnerRepoAttestationsSubjectDigestGetResponse200Type(TypedDict): + """ReposOwnerRepoAttestationsSubjectDigestGetResponse200""" - key_prefix: str - url_template: str - is_alphanumeric: NotRequired[bool] + attestations: NotRequired[ + List[ + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsType + ] + ] -__all__ = ("ReposOwnerRepoAutolinksPostBodyType",) +class ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsType( + TypedDict +): + """ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems""" + + bundle: NotRequired[ + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType + ] + repository_id: NotRequired[int] + + +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 + ] + + +class ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType( + TypedDict +): + """ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBu + ndlePropVerificationMaterial + """ + + +class ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType( + TypedDict +): + """ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBu + ndlePropDsseEnvelope + """ + + +__all__ = ( + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200Type", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsType", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType", +) 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 5daf56489..a77eacf3e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0980.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0980.py @@ -9,132 +9,15 @@ from __future__ import annotations -from typing import List, Union from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoBranchesBranchProtectionPutBodyType(TypedDict): - """ReposOwnerRepoBranchesBranchProtectionPutBody""" +class ReposOwnerRepoAutolinksPostBodyType(TypedDict): + """ReposOwnerRepoAutolinksPostBody""" - 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] + key_prefix: str + url_template: str + is_alphanumeric: 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 -): - """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__ = ( - "ReposOwnerRepoBranchesBranchProtectionPutBodyType", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksType", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItemsType", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsType", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictionsType", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictionsType", -) +__all__ = ("ReposOwnerRepoAutolinksPostBodyType",) 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 d51a66b7c..5daf56489 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0981.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0981.py @@ -9,32 +9,87 @@ from __future__ import annotations -from typing import List +from typing import List, Union from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyType( +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 ): - """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody""" + """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[ - ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType + 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[ - ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType ] -class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType( +class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictionsType( TypedDict ): - """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDis - missalRestrictions + """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropD + ismissalRestrictions Specify which users, teams, and apps can dismiss pull request reviews. Pass an empty `dismissal_restrictions` object to disable. User and team @@ -47,11 +102,11 @@ class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyP apps: NotRequired[List[str]] -class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType( +class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType( TypedDict ): - """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropByp - assPullRequestAllowances + """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropB + ypassPullRequestAllowances Allow specific users, teams, or apps to bypass pull request requirements. """ @@ -61,8 +116,25 @@ class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyP 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__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyType", - "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType", - "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType", + "ReposOwnerRepoBranchesBranchProtectionPutBodyType", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksType", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItemsType", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsType", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictionsType", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictionsType", ) 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 39cfa7c56..d51a66b7c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0982.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0982.py @@ -13,32 +13,56 @@ from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyType( +class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyType( TypedDict ): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody""" - - strict: NotRequired[bool] - contexts: NotRequired[List[str]] - checks: NotRequired[ - List[ - ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType - ] + """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody""" + + 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 ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType( +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 ): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksIte - ms + """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropByp + assPullRequestAllowances + + Allow specific users, teams, or apps to bypass pull request requirements. """ - context: str - app_id: NotRequired[int] + users: NotRequired[List[str]] + teams: NotRequired[List[str]] + apps: NotRequired[List[str]] __all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyType", - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType", + "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyType", + "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType", + "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType", ) 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 f36c7fdb0..39cfa7c56 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0983.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0983.py @@ -10,21 +10,35 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type( +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyType( TypedDict ): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody""" - Examples: - {'contexts': ['contexts']} + strict: NotRequired[bool] + contexts: NotRequired[List[str]] + checks: NotRequired[ + List[ + ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType + ] + ] + + +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksIte + ms """ - contexts: List[str] + context: str + app_id: NotRequired[int] __all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type", + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyType", + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType", ) 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 b350535de..f36c7fdb0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0984.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0984.py @@ -13,10 +13,10 @@ from typing_extensions import TypedDict -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0Type( +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type( TypedDict ): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0 + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 Examples: {'contexts': ['contexts']} @@ -26,5 +26,5 @@ class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBody __all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0Type", + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type", ) 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 2d802b1fa..b350535de 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0985.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0985.py @@ -13,11 +13,10 @@ from typing_extensions import TypedDict -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0Type( +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0Type( TypedDict ): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneo - f0 + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0 Examples: {'contexts': ['contexts']} @@ -27,5 +26,5 @@ class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBo __all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0Type", + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0Type", ) 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 ad870a329..2d802b1fa 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0986.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0986.py @@ -13,16 +13,19 @@ from typing_extensions import TypedDict -class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0Type( +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0Type( TypedDict ): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0 + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneo + f0 Examples: - {'apps': ['my-app']} + {'contexts': ['contexts']} """ - apps: List[str] + contexts: List[str] -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0Type",) +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0Type", +) 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 633ffe55f..ad870a329 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0987.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0987.py @@ -13,10 +13,10 @@ from typing_extensions import TypedDict -class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0Type( +class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0Type( TypedDict ): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0 + """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0 Examples: {'apps': ['my-app']} @@ -25,4 +25,4 @@ class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0Type( apps: List[str] -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0Type",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0Type",) 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 0e54dbe56..633ffe55f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0988.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0988.py @@ -13,10 +13,10 @@ from typing_extensions import TypedDict -class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0Type( +class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0Type( TypedDict ): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0 + """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0 Examples: {'apps': ['my-app']} @@ -25,6 +25,4 @@ class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0Type apps: List[str] -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0Type", -) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0Type",) 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 c8d87b3e2..0e54dbe56 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0989.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0989.py @@ -13,16 +13,18 @@ from typing_extensions import TypedDict -class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0Type( +class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0Type( TypedDict ): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0 + """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0 Examples: - {'teams': ['justice-league']} + {'apps': ['my-app']} """ - teams: List[str] + apps: List[str] -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0Type",) +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0Type", +) 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 8ec4d5ff7..c8d87b3e2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0990.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0990.py @@ -13,16 +13,16 @@ from typing_extensions import TypedDict -class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type( +class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0Type( TypedDict ): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0 + """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0 Examples: - {'teams': ['my-team']} + {'teams': ['justice-league']} """ teams: List[str] -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0Type",) 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 4c0d1741f..8ec4d5ff7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0991.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0991.py @@ -13,10 +13,10 @@ from typing_extensions import TypedDict -class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Type( +class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type( TypedDict ): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0 + """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0 Examples: {'teams': ['my-team']} @@ -25,6 +25,4 @@ class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Typ teams: List[str] -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Type", -) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type",) 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 d1f4b8ce2..4c0d1741f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0992.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0992.py @@ -13,16 +13,18 @@ from typing_extensions import TypedDict -class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0Type( +class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Type( TypedDict ): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0 + """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0 Examples: - {'users': ['mona']} + {'teams': ['my-team']} """ - users: List[str] + teams: List[str] -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0Type",) +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Type", +) 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 26651df87..d1f4b8ce2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0993.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0993.py @@ -13,10 +13,10 @@ from typing_extensions import TypedDict -class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0Type( +class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0Type( TypedDict ): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0 + """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0 Examples: {'users': ['mona']} @@ -25,4 +25,4 @@ class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0Type( users: List[str] -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0Type",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0Type",) 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 20edcde18..26651df87 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0994.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0994.py @@ -13,10 +13,10 @@ from typing_extensions import TypedDict -class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0Type( +class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0Type( TypedDict ): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0 + """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0 Examples: {'users': ['mona']} @@ -25,6 +25,4 @@ class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0Typ users: List[str] -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0Type", -) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0Type",) 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 b46802659..20edcde18 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0995.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0995.py @@ -9,13 +9,22 @@ from __future__ import annotations +from typing import List from typing_extensions import TypedDict -class ReposOwnerRepoBranchesBranchRenamePostBodyType(TypedDict): - """ReposOwnerRepoBranchesBranchRenamePostBody""" +class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0Type( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0 - new_name: str + Examples: + {'users': ['mona']} + """ + users: List[str] -__all__ = ("ReposOwnerRepoBranchesBranchRenamePostBodyType",) + +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0Type", +) 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 78164b5f0..b46802659 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0996.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0996.py @@ -9,62 +9,13 @@ from __future__ import annotations -from typing import List, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ReposOwnerRepoCheckRunsPostBodyPropOutputType(TypedDict): - """ReposOwnerRepoCheckRunsPostBodyPropOutput +class ReposOwnerRepoBranchesBranchRenamePostBodyType(TypedDict): + """ReposOwnerRepoBranchesBranchRenamePostBody""" - 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. - """ + new_name: str - title: str - summary: str - text: NotRequired[str] - annotations: NotRequired[ - List[ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType] - ] - images: NotRequired[ - List[ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType] - ] - -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__ = ( - "ReposOwnerRepoCheckRunsPostBodyPropOutputType", - "ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType", - "ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType", - "ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType", -) +__all__ = ("ReposOwnerRepoBranchesBranchRenamePostBodyType",) 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 999f9bc99..78164b5f0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0997.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0997.py @@ -9,38 +9,62 @@ from __future__ import annotations -from datetime import datetime from typing import List, Literal from typing_extensions import TypedDict, NotRequired -from .group_0996 import ( - ReposOwnerRepoCheckRunsPostBodyPropOutputType, - ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType, -) +class ReposOwnerRepoCheckRunsPostBodyPropOutputType(TypedDict): + """ReposOwnerRepoCheckRunsPostBodyPropOutput + + 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. + """ -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", + title: str + summary: str + text: NotRequired[str] + annotations: NotRequired[ + List[ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType] ] - completed_at: NotRequired[datetime] - output: NotRequired[ReposOwnerRepoCheckRunsPostBodyPropOutputType] - actions: NotRequired[List[ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType]] + images: NotRequired[ + List[ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType] + ] + + +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""" -__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof0Type",) + alt: str + image_url: str + caption: NotRequired[str] + + +class ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType(TypedDict): + """ReposOwnerRepoCheckRunsPostBodyPropActionsItems""" + + label: str + description: str + identifier: str + + +__all__ = ( + "ReposOwnerRepoCheckRunsPostBodyPropOutputType", + "ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType", + "ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType", + "ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType", +) 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 1e7fa356e..ce7e7aac8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0998.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0998.py @@ -13,36 +13,34 @@ from typing import List, Literal from typing_extensions import TypedDict, NotRequired -from .group_0996 import ( +from .group_0997 import ( ReposOwnerRepoCheckRunsPostBodyPropOutputType, ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType, ) -class ReposOwnerRepoCheckRunsPostBodyOneof1Type(TypedDict): - """ReposOwnerRepoCheckRunsPostBodyOneof1""" +class ReposOwnerRepoCheckRunsPostBodyOneof0Type(TypedDict): + """ReposOwnerRepoCheckRunsPostBodyOneof0""" name: str head_sha: str details_url: NotRequired[str] external_id: NotRequired[str] - status: NotRequired[Literal["queued", "in_progress"]] + status: Literal["completed"] started_at: NotRequired[datetime] - conclusion: NotRequired[ - Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "success", - "skipped", - "stale", - "timed_out", - ] + conclusion: Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "success", + "skipped", + "stale", + "timed_out", ] completed_at: NotRequired[datetime] output: NotRequired[ReposOwnerRepoCheckRunsPostBodyPropOutputType] actions: NotRequired[List[ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType]] -__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof1Type",) +__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof0Type",) 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 f4f9ec07a..6b7440808 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0999.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0999.py @@ -9,68 +9,40 @@ from __future__ import annotations +from datetime import datetime from typing import List, Literal from typing_extensions import TypedDict, NotRequired +from .group_0997 import ( + ReposOwnerRepoCheckRunsPostBodyPropOutputType, + ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType, +) -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 +class ReposOwnerRepoCheckRunsPostBodyOneof1Type(TypedDict): + """ReposOwnerRepoCheckRunsPostBodyOneof1""" + + name: str + head_sha: str + details_url: NotRequired[str] + external_id: NotRequired[str] + status: NotRequired[Literal["queued", "in_progress"]] + started_at: NotRequired[datetime] + conclusion: NotRequired[ + Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "success", + "skipped", + "stale", + "timed_out", ] ] - images: NotRequired[ - List[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType] - ] - - -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] - + completed_at: NotRequired[datetime] + output: NotRequired[ReposOwnerRepoCheckRunsPostBodyPropOutputType] + actions: NotRequired[List[ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType]] -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType( - TypedDict -): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems""" - alt: str - image_url: str - caption: NotRequired[str] - - -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType(TypedDict): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems""" - - label: str - description: str - identifier: str - - -__all__ = ( - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType", - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType", - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType", - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType", -) +__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof1Type",) 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 640b3987f..f4f9ec07a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1000.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1000.py @@ -9,39 +9,68 @@ from __future__ import annotations -from datetime import datetime from typing import List, Literal from typing_extensions import TypedDict, NotRequired -from .group_0999 import ( - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType, - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType, -) +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. + """ -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", + title: NotRequired[str] + summary: str + text: NotRequired[str] + annotations: NotRequired[ + List[ + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType + ] ] - completed_at: NotRequired[datetime] - output: NotRequired[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType] - actions: NotRequired[ - List[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType] + images: NotRequired[ + List[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType] ] -__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type",) +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__ = ( + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType", + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType", + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType", + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType", +) 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 980b2fec0..7a48b44f4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1001.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1001.py @@ -13,31 +13,29 @@ from typing import List, Literal from typing_extensions import TypedDict, NotRequired -from .group_0999 import ( +from .group_1000 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType, ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType, ) -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type(TypedDict): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1""" +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type(TypedDict): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0""" 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", - ] + status: NotRequired[Literal["completed"]] + conclusion: Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "success", + "skipped", + "stale", + "timed_out", ] completed_at: NotRequired[datetime] output: NotRequired[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType] @@ -46,4 +44,4 @@ class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type(TypedDict): ] -__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type",) +__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type",) 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 5d8ac49c1..5e7a11994 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1002.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1002.py @@ -9,13 +9,41 @@ from __future__ import annotations -from typing_extensions import TypedDict - - -class ReposOwnerRepoCheckSuitesPostBodyType(TypedDict): - """ReposOwnerRepoCheckSuitesPostBody""" - - head_sha: str - - -__all__ = ("ReposOwnerRepoCheckSuitesPostBodyType",) +from datetime import datetime +from typing import List, Literal +from typing_extensions import TypedDict, NotRequired + +from .group_1000 import ( + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType, + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType, +) + + +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_1003.py b/githubkit/versions/ghec_v2022_11_28/types/group_1003.py index ef98987e3..5d8ac49c1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1003.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1003.py @@ -9,30 +9,13 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ReposOwnerRepoCheckSuitesPreferencesPatchBodyType(TypedDict): - """ReposOwnerRepoCheckSuitesPreferencesPatchBody""" +class ReposOwnerRepoCheckSuitesPostBodyType(TypedDict): + """ReposOwnerRepoCheckSuitesPostBody""" - auto_trigger_checks: NotRequired[ - List[ - ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType - ] - ] + head_sha: str -class ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType( - TypedDict -): - """ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems""" - - app_id: int - setting: bool - - -__all__ = ( - "ReposOwnerRepoCheckSuitesPreferencesPatchBodyType", - "ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType", -) +__all__ = ("ReposOwnerRepoCheckSuitesPostBodyType",) 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 735828db4..ef98987e3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1004.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1004.py @@ -10,16 +10,29 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0217 import CheckRunType +class ReposOwnerRepoCheckSuitesPreferencesPatchBodyType(TypedDict): + """ReposOwnerRepoCheckSuitesPreferencesPatchBody""" -class ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type(TypedDict): - """ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200""" + auto_trigger_checks: NotRequired[ + List[ + ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType + ] + ] - total_count: int - check_runs: List[CheckRunType] +class ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType( + TypedDict +): + """ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems""" -__all__ = ("ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type",) + app_id: int + setting: bool + + +__all__ = ( + "ReposOwnerRepoCheckSuitesPreferencesPatchBodyType", + "ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType", +) 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 aa6436005..735828db4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1005.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1005.py @@ -9,18 +9,17 @@ from __future__ import annotations -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict +from .group_0217 import CheckRunType -class ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType(TypedDict): - """ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody""" - state: Literal["open", "dismissed"] - dismissed_reason: NotRequired[ - Union[None, Literal["false positive", "won't fix", "used in tests"]] - ] - dismissed_comment: NotRequired[Union[str, None]] +class ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type(TypedDict): + """ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200""" + total_count: int + check_runs: List[CheckRunType] -__all__ = ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType",) + +__all__ = ("ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type",) 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 aae1919ec..aa6436005 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1006.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1006.py @@ -9,20 +9,18 @@ from __future__ import annotations -from typing import List, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0Type(TypedDict): - """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0""" +class ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType(TypedDict): + """ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody""" - language: Literal[ - "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "swift" + state: Literal["open", "dismissed"] + dismissed_reason: NotRequired[ + Union[None, Literal["false positive", "won't fix", "used in tests"]] ] - query_pack: str - repositories: List[str] - repository_lists: NotRequired[List[str]] - repository_owners: NotRequired[List[str]] + dismissed_comment: NotRequired[Union[str, None]] -__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0Type",) +__all__ = ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType",) 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 9793471ab..aae1919ec 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1007.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1007.py @@ -13,16 +13,16 @@ from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1Type(TypedDict): - """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1""" +class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0Type(TypedDict): + """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0""" language: Literal[ "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "swift" ] query_pack: str - repositories: NotRequired[List[str]] - repository_lists: List[str] + repositories: List[str] + repository_lists: NotRequired[List[str]] repository_owners: NotRequired[List[str]] -__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1Type",) +__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0Type",) 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 bea5490c7..9793471ab 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1008.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1008.py @@ -13,16 +13,16 @@ from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2Type(TypedDict): - """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2""" +class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1Type(TypedDict): + """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1""" language: Literal[ "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "swift" ] query_pack: str repositories: NotRequired[List[str]] - repository_lists: NotRequired[List[str]] - repository_owners: List[str] + repository_lists: List[str] + repository_owners: NotRequired[List[str]] -__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2Type",) +__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1Type",) 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 5cd0c722e..bea5490c7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1009.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1009.py @@ -9,20 +9,20 @@ from __future__ import annotations -from datetime import datetime +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoCodeScanningSarifsPostBodyType(TypedDict): - """ReposOwnerRepoCodeScanningSarifsPostBody""" +class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2Type(TypedDict): + """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2""" - commit_sha: str - ref: str - sarif: str - checkout_uri: NotRequired[str] - started_at: NotRequired[datetime] - tool_name: NotRequired[str] - validate_: NotRequired[bool] + language: Literal[ + "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "swift" + ] + query_pack: str + repositories: NotRequired[List[str]] + repository_lists: NotRequired[List[str]] + repository_owners: List[str] -__all__ = ("ReposOwnerRepoCodeScanningSarifsPostBodyType",) +__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2Type",) 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 50a255805..5cd0c722e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1010.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1010.py @@ -9,17 +9,20 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from datetime import datetime +from typing_extensions import TypedDict, NotRequired -from .group_0094 import CodespaceType +class ReposOwnerRepoCodeScanningSarifsPostBodyType(TypedDict): + """ReposOwnerRepoCodeScanningSarifsPostBody""" -class ReposOwnerRepoCodespacesGetResponse200Type(TypedDict): - """ReposOwnerRepoCodespacesGetResponse200""" + commit_sha: str + ref: str + sarif: str + checkout_uri: NotRequired[str] + started_at: NotRequired[datetime] + tool_name: NotRequired[str] + validate_: NotRequired[bool] - total_count: int - codespaces: List[CodespaceType] - -__all__ = ("ReposOwnerRepoCodespacesGetResponse200Type",) +__all__ = ("ReposOwnerRepoCodeScanningSarifsPostBodyType",) 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 ded7468cd..50a255805 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1011.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1011.py @@ -9,24 +9,17 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict +from .group_0094 import CodespaceType -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] +class ReposOwnerRepoCodespacesGetResponse200Type(TypedDict): + """ReposOwnerRepoCodespacesGetResponse200""" + total_count: int + codespaces: List[CodespaceType] -__all__ = ("ReposOwnerRepoCodespacesPostBodyType",) + +__all__ = ("ReposOwnerRepoCodespacesGetResponse200Type",) 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 aae507935..ded7468cd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1012.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1012.py @@ -9,30 +9,24 @@ from __future__ import annotations -from typing import List +from typing import Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoCodespacesDevcontainersGetResponse200Type(TypedDict): - """ReposOwnerRepoCodespacesDevcontainersGetResponse200""" +class ReposOwnerRepoCodespacesPostBodyType(TypedDict): + """ReposOwnerRepoCodespacesPostBody""" - total_count: int - devcontainers: List[ - ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType - ] - - -class ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType( - TypedDict -): - """ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems""" - - path: str - name: NotRequired[str] + 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__ = ( - "ReposOwnerRepoCodespacesDevcontainersGetResponse200Type", - "ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType", -) +__all__ = ("ReposOwnerRepoCodespacesPostBodyType",) 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 27508a27a..aae507935 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1013.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1013.py @@ -10,16 +10,29 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0093 import CodespaceMachineType - -class ReposOwnerRepoCodespacesMachinesGetResponse200Type(TypedDict): - """ReposOwnerRepoCodespacesMachinesGetResponse200""" +class ReposOwnerRepoCodespacesDevcontainersGetResponse200Type(TypedDict): + """ReposOwnerRepoCodespacesDevcontainersGetResponse200""" total_count: int - machines: List[CodespaceMachineType] + devcontainers: List[ + ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType + ] + + +class ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType( + TypedDict +): + """ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems""" + + path: str + name: NotRequired[str] + display_name: NotRequired[str] -__all__ = ("ReposOwnerRepoCodespacesMachinesGetResponse200Type",) +__all__ = ( + "ReposOwnerRepoCodespacesDevcontainersGetResponse200Type", + "ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType", +) 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 a33cbd9bf..27508a27a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1014.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1014.py @@ -9,27 +9,17 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -from .group_0001 import SimpleUserType +from .group_0093 import CodespaceMachineType -class ReposOwnerRepoCodespacesNewGetResponse200Type(TypedDict): - """ReposOwnerRepoCodespacesNewGetResponse200""" +class ReposOwnerRepoCodespacesMachinesGetResponse200Type(TypedDict): + """ReposOwnerRepoCodespacesMachinesGetResponse200""" - billable_owner: NotRequired[SimpleUserType] - defaults: NotRequired[ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType] + total_count: int + machines: List[CodespaceMachineType] -class ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType(TypedDict): - """ReposOwnerRepoCodespacesNewGetResponse200PropDefaults""" - - location: str - devcontainer_path: Union[str, None] - - -__all__ = ( - "ReposOwnerRepoCodespacesNewGetResponse200Type", - "ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType", -) +__all__ = ("ReposOwnerRepoCodespacesMachinesGetResponse200Type",) 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 4c82ea53d..a33cbd9bf 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1015.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1015.py @@ -9,30 +9,27 @@ from __future__ import annotations -from typing import List -from datetime import datetime -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import TypedDict, NotRequired +from .group_0001 import SimpleUserType -class ReposOwnerRepoCodespacesSecretsGetResponse200Type(TypedDict): - """ReposOwnerRepoCodespacesSecretsGetResponse200""" - total_count: int - secrets: List[RepoCodespacesSecretType] +class ReposOwnerRepoCodespacesNewGetResponse200Type(TypedDict): + """ReposOwnerRepoCodespacesNewGetResponse200""" + billable_owner: NotRequired[SimpleUserType] + defaults: NotRequired[ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType] -class RepoCodespacesSecretType(TypedDict): - """Codespaces Secret - Set repository secrets for GitHub Codespaces. - """ +class ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType(TypedDict): + """ReposOwnerRepoCodespacesNewGetResponse200PropDefaults""" - name: str - created_at: datetime - updated_at: datetime + location: str + devcontainer_path: Union[str, None] __all__ = ( - "ReposOwnerRepoCodespacesSecretsGetResponse200Type", - "RepoCodespacesSecretType", + "ReposOwnerRepoCodespacesNewGetResponse200Type", + "ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType", ) 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 127388d30..4c82ea53d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1016.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1016.py @@ -9,14 +9,30 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing import List +from datetime import datetime +from typing_extensions import TypedDict -class ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType(TypedDict): - """ReposOwnerRepoCodespacesSecretsSecretNamePutBody""" +class ReposOwnerRepoCodespacesSecretsGetResponse200Type(TypedDict): + """ReposOwnerRepoCodespacesSecretsGetResponse200""" - encrypted_value: NotRequired[str] - key_id: NotRequired[str] + total_count: int + secrets: List[RepoCodespacesSecretType] -__all__ = ("ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType",) +class RepoCodespacesSecretType(TypedDict): + """Codespaces Secret + + Set repository secrets for GitHub Codespaces. + """ + + name: str + created_at: datetime + updated_at: datetime + + +__all__ = ( + "ReposOwnerRepoCodespacesSecretsGetResponse200Type", + "RepoCodespacesSecretType", +) 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 3048a3c3a..127388d30 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,11 @@ from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoCollaboratorsUsernamePutBodyType(TypedDict): - """ReposOwnerRepoCollaboratorsUsernamePutBody""" +class ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType(TypedDict): + """ReposOwnerRepoCodespacesSecretsSecretNamePutBody""" - permission: NotRequired[str] + encrypted_value: NotRequired[str] + key_id: NotRequired[str] -__all__ = ("ReposOwnerRepoCollaboratorsUsernamePutBodyType",) +__all__ = ("ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType",) 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 25f26d78b..3048a3c3a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1018.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1018.py @@ -9,13 +9,13 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoCommentsCommentIdPatchBodyType(TypedDict): - """ReposOwnerRepoCommentsCommentIdPatchBody""" +class ReposOwnerRepoCollaboratorsUsernamePutBodyType(TypedDict): + """ReposOwnerRepoCollaboratorsUsernamePutBody""" - body: str + permission: NotRequired[str] -__all__ = ("ReposOwnerRepoCommentsCommentIdPatchBodyType",) +__all__ = ("ReposOwnerRepoCollaboratorsUsernamePutBodyType",) 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 ce91eec32..25f26d78b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1019.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1019.py @@ -9,16 +9,13 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict -class ReposOwnerRepoCommentsCommentIdReactionsPostBodyType(TypedDict): - """ReposOwnerRepoCommentsCommentIdReactionsPostBody""" +class ReposOwnerRepoCommentsCommentIdPatchBodyType(TypedDict): + """ReposOwnerRepoCommentsCommentIdPatchBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] + body: str -__all__ = ("ReposOwnerRepoCommentsCommentIdReactionsPostBodyType",) +__all__ = ("ReposOwnerRepoCommentsCommentIdPatchBodyType",) 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 64def9673..ce91eec32 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1020.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1020.py @@ -9,16 +9,16 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing import Literal +from typing_extensions import TypedDict -class ReposOwnerRepoCommitsCommitShaCommentsPostBodyType(TypedDict): - """ReposOwnerRepoCommitsCommitShaCommentsPostBody""" +class ReposOwnerRepoCommentsCommentIdReactionsPostBodyType(TypedDict): + """ReposOwnerRepoCommentsCommentIdReactionsPostBody""" - body: str - path: NotRequired[str] - position: NotRequired[int] - line: NotRequired[int] + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] -__all__ = ("ReposOwnerRepoCommitsCommitShaCommentsPostBodyType",) +__all__ = ("ReposOwnerRepoCommentsCommentIdReactionsPostBodyType",) 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 b722c7057..64def9673 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1021.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1021.py @@ -9,17 +9,16 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0217 import CheckRunType +class ReposOwnerRepoCommitsCommitShaCommentsPostBodyType(TypedDict): + """ReposOwnerRepoCommitsCommitShaCommentsPostBody""" -class ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type(TypedDict): - """ReposOwnerRepoCommitsRefCheckRunsGetResponse200""" + body: str + path: NotRequired[str] + position: NotRequired[int] + line: NotRequired[int] - total_count: int - check_runs: List[CheckRunType] - -__all__ = ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type",) +__all__ = ("ReposOwnerRepoCommitsCommitShaCommentsPostBodyType",) 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 2242ad973..b722c7057 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1022.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1022.py @@ -9,45 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict +from .group_0217 import CheckRunType -class ReposOwnerRepoContentsPathPutBodyType(TypedDict): - """ReposOwnerRepoContentsPathPutBody""" - message: str - content: str - sha: NotRequired[str] - branch: NotRequired[str] - committer: NotRequired[ReposOwnerRepoContentsPathPutBodyPropCommitterType] - author: NotRequired[ReposOwnerRepoContentsPathPutBodyPropAuthorType] +class ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type(TypedDict): + """ReposOwnerRepoCommitsRefCheckRunsGetResponse200""" + total_count: int + check_runs: List[CheckRunType] -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__ = ( - "ReposOwnerRepoContentsPathPutBodyType", - "ReposOwnerRepoContentsPathPutBodyPropCommitterType", - "ReposOwnerRepoContentsPathPutBodyPropAuthorType", -) +__all__ = ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type",) 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 952a58aa5..2242ad973 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1023.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1023.py @@ -12,38 +12,42 @@ from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoContentsPathDeleteBodyType(TypedDict): - """ReposOwnerRepoContentsPathDeleteBody""" +class ReposOwnerRepoContentsPathPutBodyType(TypedDict): + """ReposOwnerRepoContentsPathPutBody""" message: str - sha: str + content: str + sha: NotRequired[str] branch: NotRequired[str] - committer: NotRequired[ReposOwnerRepoContentsPathDeleteBodyPropCommitterType] - author: NotRequired[ReposOwnerRepoContentsPathDeleteBodyPropAuthorType] + committer: NotRequired[ReposOwnerRepoContentsPathPutBodyPropCommitterType] + author: NotRequired[ReposOwnerRepoContentsPathPutBodyPropAuthorType] -class ReposOwnerRepoContentsPathDeleteBodyPropCommitterType(TypedDict): - """ReposOwnerRepoContentsPathDeleteBodyPropCommitter +class ReposOwnerRepoContentsPathPutBodyPropCommitterType(TypedDict): + """ReposOwnerRepoContentsPathPutBodyPropCommitter - object containing information about the committer. + The person that committed the file. Default: the authenticated user. """ - name: NotRequired[str] - email: NotRequired[str] + name: str + email: str + date: NotRequired[str] -class ReposOwnerRepoContentsPathDeleteBodyPropAuthorType(TypedDict): - """ReposOwnerRepoContentsPathDeleteBodyPropAuthor +class ReposOwnerRepoContentsPathPutBodyPropAuthorType(TypedDict): + """ReposOwnerRepoContentsPathPutBodyPropAuthor - object containing information about the author. + The author of the file. Default: The `committer` or the authenticated user if + you omit `committer`. """ - name: NotRequired[str] - email: NotRequired[str] + name: str + email: str + date: NotRequired[str] __all__ = ( - "ReposOwnerRepoContentsPathDeleteBodyType", - "ReposOwnerRepoContentsPathDeleteBodyPropCommitterType", - "ReposOwnerRepoContentsPathDeleteBodyPropAuthorType", + "ReposOwnerRepoContentsPathPutBodyType", + "ReposOwnerRepoContentsPathPutBodyPropCommitterType", + "ReposOwnerRepoContentsPathPutBodyPropAuthorType", ) 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 e6000744d..952a58aa5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1024.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1024.py @@ -9,20 +9,41 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType(TypedDict): - """ReposOwnerRepoDependabotAlertsAlertNumberPatchBody""" +class ReposOwnerRepoContentsPathDeleteBodyType(TypedDict): + """ReposOwnerRepoContentsPathDeleteBody""" - state: Literal["dismissed", "open"] - dismissed_reason: NotRequired[ - Literal[ - "fix_started", "inaccurate", "no_bandwidth", "not_used", "tolerable_risk" - ] - ] - dismissed_comment: NotRequired[str] + message: str + sha: str + branch: NotRequired[str] + committer: NotRequired[ReposOwnerRepoContentsPathDeleteBodyPropCommitterType] + author: NotRequired[ReposOwnerRepoContentsPathDeleteBodyPropAuthorType] -__all__ = ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType",) +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__ = ( + "ReposOwnerRepoContentsPathDeleteBodyType", + "ReposOwnerRepoContentsPathDeleteBodyPropCommitterType", + "ReposOwnerRepoContentsPathDeleteBodyPropAuthorType", +) 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 b01790e23..e6000744d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1025.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1025.py @@ -9,30 +9,20 @@ from __future__ import annotations -from typing import List -from datetime import datetime -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoDependabotSecretsGetResponse200Type(TypedDict): - """ReposOwnerRepoDependabotSecretsGetResponse200""" +class ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType(TypedDict): + """ReposOwnerRepoDependabotAlertsAlertNumberPatchBody""" - total_count: int - secrets: List[DependabotSecretType] + state: Literal["dismissed", "open"] + dismissed_reason: NotRequired[ + Literal[ + "fix_started", "inaccurate", "no_bandwidth", "not_used", "tolerable_risk" + ] + ] + dismissed_comment: NotRequired[str] -class DependabotSecretType(TypedDict): - """Dependabot Secret - - Set secrets for Dependabot. - """ - - name: str - created_at: datetime - updated_at: datetime - - -__all__ = ( - "ReposOwnerRepoDependabotSecretsGetResponse200Type", - "DependabotSecretType", -) +__all__ = ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType",) 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 b77f06192..b01790e23 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1026.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1026.py @@ -9,14 +9,30 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing import List +from datetime import datetime +from typing_extensions import TypedDict -class ReposOwnerRepoDependabotSecretsSecretNamePutBodyType(TypedDict): - """ReposOwnerRepoDependabotSecretsSecretNamePutBody""" +class ReposOwnerRepoDependabotSecretsGetResponse200Type(TypedDict): + """ReposOwnerRepoDependabotSecretsGetResponse200""" - encrypted_value: NotRequired[str] - key_id: NotRequired[str] + total_count: int + secrets: List[DependabotSecretType] -__all__ = ("ReposOwnerRepoDependabotSecretsSecretNamePutBodyType",) +class DependabotSecretType(TypedDict): + """Dependabot Secret + + Set secrets for Dependabot. + """ + + name: str + created_at: datetime + updated_at: datetime + + +__all__ = ( + "ReposOwnerRepoDependabotSecretsGetResponse200Type", + "DependabotSecretType", +) 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 6e9243ec2..b77f06192 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1027.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1027.py @@ -9,16 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type(TypedDict): - """ReposOwnerRepoDependencyGraphSnapshotsPostResponse201""" +class ReposOwnerRepoDependabotSecretsSecretNamePutBodyType(TypedDict): + """ReposOwnerRepoDependabotSecretsSecretNamePutBody""" - id: int - created_at: str - result: str - message: str + encrypted_value: NotRequired[str] + key_id: NotRequired[str] -__all__ = ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type",) +__all__ = ("ReposOwnerRepoDependabotSecretsSecretNamePutBodyType",) 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 614766fa1..6e9243ec2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1028.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1028.py @@ -9,31 +9,16 @@ from __future__ import annotations -from typing import List, Union -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ReposOwnerRepoDeploymentsPostBodyType(TypedDict): - """ReposOwnerRepoDeploymentsPostBody""" +class ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type(TypedDict): + """ReposOwnerRepoDependencyGraphSnapshotsPostResponse201""" - 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] + id: int + created_at: str + result: str + message: str -class ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type(TypedDict): - """ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0""" - - -__all__ = ( - "ReposOwnerRepoDeploymentsPostBodyType", - "ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type", -) +__all__ = ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type",) 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 31c81fc99..614766fa1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1029.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1029.py @@ -9,13 +9,31 @@ from __future__ import annotations +from typing import List, Union from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoDeploymentsPostResponse202Type(TypedDict): - """ReposOwnerRepoDeploymentsPostResponse202""" +class ReposOwnerRepoDeploymentsPostBodyType(TypedDict): + """ReposOwnerRepoDeploymentsPostBody""" - message: NotRequired[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__ = ("ReposOwnerRepoDeploymentsPostResponse202Type",) +class ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type(TypedDict): + """ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0""" + + +__all__ = ( + "ReposOwnerRepoDeploymentsPostBodyType", + "ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type", +) 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 bf2c3b692..31c81fc99 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1030.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1030.py @@ -9,22 +9,13 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType(TypedDict): - """ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody""" +class ReposOwnerRepoDeploymentsPostResponse202Type(TypedDict): + """ReposOwnerRepoDeploymentsPostResponse202""" - 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] + message: NotRequired[str] -__all__ = ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType",) +__all__ = ("ReposOwnerRepoDeploymentsPostResponse202Type",) 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 28590d115..bf2c3b692 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1031.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1031.py @@ -9,25 +9,22 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoDispatchesPostBodyType(TypedDict): - """ReposOwnerRepoDispatchesPostBody""" +class ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType(TypedDict): + """ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody""" - event_type: str - client_payload: NotRequired[ReposOwnerRepoDispatchesPostBodyPropClientPayloadType] + 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 ReposOwnerRepoDispatchesPostBodyPropClientPayloadType(TypedDict): - """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. - """ - - -__all__ = ( - "ReposOwnerRepoDispatchesPostBodyType", - "ReposOwnerRepoDispatchesPostBodyPropClientPayloadType", -) +__all__ = ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType",) 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 0a7623cfd..28590d115 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1032.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1032.py @@ -9,38 +9,25 @@ from __future__ import annotations -from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0268 import DeploymentBranchPolicySettingsType +class ReposOwnerRepoDispatchesPostBodyType(TypedDict): + """ReposOwnerRepoDispatchesPostBody""" -class ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyType(TypedDict): - """ReposOwnerRepoEnvironmentsEnvironmentNamePutBody""" + event_type: str + client_payload: NotRequired[ReposOwnerRepoDispatchesPostBodyPropClientPayloadType] - wait_timer: NotRequired[int] - prevent_self_review: NotRequired[bool] - reviewers: NotRequired[ - Union[ - List[ - ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType - ], - None, - ] - ] - deployment_branch_policy: NotRequired[ - Union[DeploymentBranchPolicySettingsType, None] - ] +class ReposOwnerRepoDispatchesPostBodyPropClientPayloadType(TypedDict): + """ReposOwnerRepoDispatchesPostBodyPropClientPayload -class ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType(TypedDict): - """ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems""" - - type: NotRequired[Literal["User", "Team"]] - id: NotRequired[int] + 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. + """ __all__ = ( - "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyType", - "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType", + "ReposOwnerRepoDispatchesPostBodyType", + "ReposOwnerRepoDispatchesPostBodyPropClientPayloadType", ) 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 b65e8765b..0a7623cfd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1033.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1033.py @@ -9,32 +9,38 @@ from __future__ import annotations -from typing import List, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0268 import DeploymentBranchPolicySettingsType -class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type( - TypedDict -): - """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200""" - total_count: int - branch_policies: List[DeploymentBranchPolicyType] +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] + ] -class DeploymentBranchPolicyType(TypedDict): - """Deployment branch policy - Details of a deployment branch or tag policy. - """ +class ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType(TypedDict): + """ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems""" + type: NotRequired[Literal["User", "Team"]] id: NotRequired[int] - node_id: NotRequired[str] - name: NotRequired[str] - type: NotRequired[Literal["branch", "tag"]] __all__ = ( - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type", - "DeploymentBranchPolicyType", + "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyType", + "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType", ) 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 aa86463eb..b65e8765b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1034.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1034.py @@ -9,17 +9,32 @@ from __future__ import annotations +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType( +class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type( TypedDict ): - """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody""" + """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200""" - integration_id: NotRequired[int] + total_count: int + branch_policies: List[DeploymentBranchPolicyType] + + +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__ = ( - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType", + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type", + "DeploymentBranchPolicyType", ) 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 7195feb8e..aa86463eb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1035.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1035.py @@ -9,25 +9,17 @@ from __future__ import annotations -from typing import List from typing_extensions import TypedDict, NotRequired -from .group_0274 import CustomDeploymentRuleAppType - -class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type( +class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType( TypedDict ): - """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetRespons - e200 - """ + """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody""" - total_count: NotRequired[int] - available_custom_deployment_protection_rule_integrations: NotRequired[ - List[CustomDeploymentRuleAppType] - ] + integration_id: NotRequired[int] __all__ = ( - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type", + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType", ) 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 e362bd877..7195feb8e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1036.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1036.py @@ -10,16 +10,24 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0185 import ActionsSecretType +from .group_0274 import CustomDeploymentRuleAppType -class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200Type(TypedDict): - """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200""" +class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type( + TypedDict +): + """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetRespons + e200 + """ - total_count: int - secrets: List[ActionsSecretType] + total_count: NotRequired[int] + available_custom_deployment_protection_rule_integrations: NotRequired[ + List[CustomDeploymentRuleAppType] + ] -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200Type",) +__all__ = ( + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type", +) 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 3ec440fb1..e362bd877 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1037.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1037.py @@ -9,14 +9,17 @@ from __future__ import annotations +from typing import List from typing_extensions import TypedDict +from .group_0185 import ActionsSecretType -class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBodyType(TypedDict): - """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody""" - encrypted_value: str - key_id: str +class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200Type(TypedDict): + """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200""" + total_count: int + secrets: List[ActionsSecretType] -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBodyType",) + +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200Type",) 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 70693b5c5..3ec440fb1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1038.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1038.py @@ -9,17 +9,14 @@ from __future__ import annotations -from typing import List from typing_extensions import TypedDict -from .group_0186 import ActionsVariableType +class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBodyType(TypedDict): + """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody""" -class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200Type(TypedDict): - """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200""" + encrypted_value: str + key_id: str - total_count: int - variables: List[ActionsVariableType] - -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200Type",) +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBodyType",) 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 f3a29926f..70693b5c5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1039.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1039.py @@ -9,14 +9,17 @@ from __future__ import annotations +from typing import List from typing_extensions import TypedDict +from .group_0186 import ActionsVariableType -class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBodyType(TypedDict): - """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody""" - name: str - value: str +class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200Type(TypedDict): + """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200""" + total_count: int + variables: List[ActionsVariableType] -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBodyType",) + +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200Type",) 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 c1fff1a36..f3a29926f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1040.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1040.py @@ -9,14 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType(TypedDict): - """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody""" +class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBodyType(TypedDict): + """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody""" - name: NotRequired[str] - value: NotRequired[str] + name: str + value: str -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType",) +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBodyType",) 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 8bba2acbd..c1fff1a36 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1041.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1041.py @@ -12,12 +12,11 @@ from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoForksPostBodyType(TypedDict): - """ReposOwnerRepoForksPostBody""" +class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType(TypedDict): + """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody""" - organization: NotRequired[str] name: NotRequired[str] - default_branch_only: NotRequired[bool] + value: NotRequired[str] -__all__ = ("ReposOwnerRepoForksPostBodyType",) +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType",) 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 dcd2ec0cb..8bba2acbd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1042.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1042.py @@ -12,11 +12,12 @@ from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoGitBlobsPostBodyType(TypedDict): - """ReposOwnerRepoGitBlobsPostBody""" +class ReposOwnerRepoForksPostBodyType(TypedDict): + """ReposOwnerRepoForksPostBody""" - content: str - encoding: NotRequired[str] + organization: NotRequired[str] + name: NotRequired[str] + default_branch_only: NotRequired[bool] -__all__ = ("ReposOwnerRepoGitBlobsPostBodyType",) +__all__ = ("ReposOwnerRepoForksPostBodyType",) 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 166b3b1b7..dcd2ec0cb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1043.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1043.py @@ -9,50 +9,14 @@ from __future__ import annotations -from typing import List -from datetime import datetime from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoGitCommitsPostBodyType(TypedDict): - """ReposOwnerRepoGitCommitsPostBody""" +class ReposOwnerRepoGitBlobsPostBodyType(TypedDict): + """ReposOwnerRepoGitBlobsPostBody""" - message: str - tree: str - parents: NotRequired[List[str]] - author: NotRequired[ReposOwnerRepoGitCommitsPostBodyPropAuthorType] - committer: NotRequired[ReposOwnerRepoGitCommitsPostBodyPropCommitterType] - signature: NotRequired[str] + content: str + encoding: 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] - - -__all__ = ( - "ReposOwnerRepoGitCommitsPostBodyType", - "ReposOwnerRepoGitCommitsPostBodyPropAuthorType", - "ReposOwnerRepoGitCommitsPostBodyPropCommitterType", -) +__all__ = ("ReposOwnerRepoGitBlobsPostBodyType",) 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 aa4d83aff..166b3b1b7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1044.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1044.py @@ -9,14 +9,50 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import List +from datetime import datetime +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoGitRefsPostBodyType(TypedDict): - """ReposOwnerRepoGitRefsPostBody""" +class ReposOwnerRepoGitCommitsPostBodyType(TypedDict): + """ReposOwnerRepoGitCommitsPostBody""" - ref: str - sha: str + message: str + tree: str + parents: NotRequired[List[str]] + author: NotRequired[ReposOwnerRepoGitCommitsPostBodyPropAuthorType] + committer: NotRequired[ReposOwnerRepoGitCommitsPostBodyPropCommitterType] + signature: NotRequired[str] -__all__ = ("ReposOwnerRepoGitRefsPostBodyType",) +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__ = ( + "ReposOwnerRepoGitCommitsPostBodyType", + "ReposOwnerRepoGitCommitsPostBodyPropAuthorType", + "ReposOwnerRepoGitCommitsPostBodyPropCommitterType", +) 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 c7aa1330c..aa4d83aff 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1045.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1045.py @@ -9,14 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ReposOwnerRepoGitRefsRefPatchBodyType(TypedDict): - """ReposOwnerRepoGitRefsRefPatchBody""" +class ReposOwnerRepoGitRefsPostBodyType(TypedDict): + """ReposOwnerRepoGitRefsPostBody""" + ref: str sha: str - force: NotRequired[bool] -__all__ = ("ReposOwnerRepoGitRefsRefPatchBodyType",) +__all__ = ("ReposOwnerRepoGitRefsPostBodyType",) 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 fe54aa32e..c7aa1330c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1046.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1046.py @@ -9,33 +9,14 @@ from __future__ import annotations -from typing import Literal -from datetime import datetime from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoGitTagsPostBodyType(TypedDict): - """ReposOwnerRepoGitTagsPostBody""" +class ReposOwnerRepoGitRefsRefPatchBodyType(TypedDict): + """ReposOwnerRepoGitRefsRefPatchBody""" - tag: str - message: str - object_: str - type: Literal["commit", "tree", "blob"] - tagger: NotRequired[ReposOwnerRepoGitTagsPostBodyPropTaggerType] + sha: str + force: NotRequired[bool] -class ReposOwnerRepoGitTagsPostBodyPropTaggerType(TypedDict): - """ReposOwnerRepoGitTagsPostBodyPropTagger - - An object with information about the individual creating the tag. - """ - - name: str - email: str - date: NotRequired[datetime] - - -__all__ = ( - "ReposOwnerRepoGitTagsPostBodyType", - "ReposOwnerRepoGitTagsPostBodyPropTaggerType", -) +__all__ = ("ReposOwnerRepoGitRefsRefPatchBodyType",) 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 a8fe4c648..fe54aa32e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1047.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1047.py @@ -9,28 +9,33 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal +from datetime import datetime from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoGitTreesPostBodyType(TypedDict): - """ReposOwnerRepoGitTreesPostBody""" +class ReposOwnerRepoGitTagsPostBodyType(TypedDict): + """ReposOwnerRepoGitTagsPostBody""" - tree: List[ReposOwnerRepoGitTreesPostBodyPropTreeItemsType] - base_tree: NotRequired[str] + tag: str + message: str + object_: str + type: Literal["commit", "tree", "blob"] + tagger: NotRequired[ReposOwnerRepoGitTagsPostBodyPropTaggerType] -class ReposOwnerRepoGitTreesPostBodyPropTreeItemsType(TypedDict): - """ReposOwnerRepoGitTreesPostBodyPropTreeItems""" +class ReposOwnerRepoGitTagsPostBodyPropTaggerType(TypedDict): + """ReposOwnerRepoGitTagsPostBodyPropTagger - 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] + An object with information about the individual creating the tag. + """ + + name: str + email: str + date: NotRequired[datetime] __all__ = ( - "ReposOwnerRepoGitTreesPostBodyType", - "ReposOwnerRepoGitTreesPostBodyPropTreeItemsType", + "ReposOwnerRepoGitTagsPostBodyType", + "ReposOwnerRepoGitTagsPostBodyPropTaggerType", ) 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 3f4bc96d4..a8fe4c648 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1048.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1048.py @@ -9,32 +9,28 @@ from __future__ import annotations -from typing import List, Union +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoHooksPostBodyType(TypedDict): - """ReposOwnerRepoHooksPostBody""" +class ReposOwnerRepoGitTreesPostBodyType(TypedDict): + """ReposOwnerRepoGitTreesPostBody""" - name: NotRequired[str] - config: NotRequired[ReposOwnerRepoHooksPostBodyPropConfigType] - events: NotRequired[List[str]] - active: NotRequired[bool] + tree: List[ReposOwnerRepoGitTreesPostBodyPropTreeItemsType] + base_tree: NotRequired[str] -class ReposOwnerRepoHooksPostBodyPropConfigType(TypedDict): - """ReposOwnerRepoHooksPostBodyPropConfig +class ReposOwnerRepoGitTreesPostBodyPropTreeItemsType(TypedDict): + """ReposOwnerRepoGitTreesPostBodyPropTreeItems""" - 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]] + 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__ = ( - "ReposOwnerRepoHooksPostBodyType", - "ReposOwnerRepoHooksPostBodyPropConfigType", + "ReposOwnerRepoGitTreesPostBodyType", + "ReposOwnerRepoGitTreesPostBodyPropTreeItemsType", ) 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 a7b95ac0e..3f4bc96d4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1049.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1049.py @@ -9,20 +9,32 @@ from __future__ import annotations -from typing import List +from typing import List, Union from typing_extensions import TypedDict, NotRequired -from .group_0007 import WebhookConfigType +class ReposOwnerRepoHooksPostBodyType(TypedDict): + """ReposOwnerRepoHooksPostBody""" -class ReposOwnerRepoHooksHookIdPatchBodyType(TypedDict): - """ReposOwnerRepoHooksHookIdPatchBody""" - - config: NotRequired[WebhookConfigType] + name: NotRequired[str] + config: NotRequired[ReposOwnerRepoHooksPostBodyPropConfigType] events: NotRequired[List[str]] - add_events: NotRequired[List[str]] - remove_events: NotRequired[List[str]] active: NotRequired[bool] -__all__ = ("ReposOwnerRepoHooksHookIdPatchBodyType",) +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__ = ( + "ReposOwnerRepoHooksPostBodyType", + "ReposOwnerRepoHooksPostBodyPropConfigType", +) 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 8c044b8a1..a7b95ac0e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1050.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1050.py @@ -9,17 +9,20 @@ from __future__ import annotations -from typing import Union +from typing import List from typing_extensions import TypedDict, NotRequired +from .group_0007 import WebhookConfigType -class ReposOwnerRepoHooksHookIdConfigPatchBodyType(TypedDict): - """ReposOwnerRepoHooksHookIdConfigPatchBody""" - url: NotRequired[str] - content_type: NotRequired[str] - secret: NotRequired[str] - insecure_ssl: NotRequired[Union[str, float]] +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__ = ("ReposOwnerRepoHooksHookIdConfigPatchBodyType",) + +__all__ = ("ReposOwnerRepoHooksHookIdPatchBodyType",) 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 40367efa2..8c044b8a1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1051.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1051.py @@ -9,18 +9,17 @@ from __future__ import annotations -from typing import Literal +from typing import Union from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoImportPutBodyType(TypedDict): - """ReposOwnerRepoImportPutBody""" +class ReposOwnerRepoHooksHookIdConfigPatchBodyType(TypedDict): + """ReposOwnerRepoHooksHookIdConfigPatchBody""" - vcs_url: str - vcs: NotRequired[Literal["subversion", "git", "mercurial", "tfvc"]] - vcs_username: NotRequired[str] - vcs_password: NotRequired[str] - tfvc_project: NotRequired[str] + url: NotRequired[str] + content_type: NotRequired[str] + secret: NotRequired[str] + insecure_ssl: NotRequired[Union[str, float]] -__all__ = ("ReposOwnerRepoImportPutBodyType",) +__all__ = ("ReposOwnerRepoHooksHookIdConfigPatchBodyType",) 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 ea3f1020c..40367efa2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1052.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1052.py @@ -13,13 +13,14 @@ from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoImportPatchBodyType(TypedDict): - """ReposOwnerRepoImportPatchBody""" +class ReposOwnerRepoImportPutBodyType(TypedDict): + """ReposOwnerRepoImportPutBody""" + vcs_url: str + vcs: NotRequired[Literal["subversion", "git", "mercurial", "tfvc"]] vcs_username: NotRequired[str] vcs_password: NotRequired[str] - vcs: NotRequired[Literal["subversion", "tfvc", "git", "mercurial"]] tfvc_project: NotRequired[str] -__all__ = ("ReposOwnerRepoImportPatchBodyType",) +__all__ = ("ReposOwnerRepoImportPutBodyType",) 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 f3821d41d..ea3f1020c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1053.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1053.py @@ -9,14 +9,17 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType(TypedDict): - """ReposOwnerRepoImportAuthorsAuthorIdPatchBody""" +class ReposOwnerRepoImportPatchBodyType(TypedDict): + """ReposOwnerRepoImportPatchBody""" - email: NotRequired[str] - name: NotRequired[str] + vcs_username: NotRequired[str] + vcs_password: NotRequired[str] + vcs: NotRequired[Literal["subversion", "tfvc", "git", "mercurial"]] + tfvc_project: NotRequired[str] -__all__ = ("ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType",) +__all__ = ("ReposOwnerRepoImportPatchBodyType",) 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 f8207f6ea..f3821d41d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1054.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1054.py @@ -9,14 +9,14 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoImportLfsPatchBodyType(TypedDict): - """ReposOwnerRepoImportLfsPatchBody""" +class ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType(TypedDict): + """ReposOwnerRepoImportAuthorsAuthorIdPatchBody""" - use_lfs: Literal["opt_in", "opt_out"] + email: NotRequired[str] + name: NotRequired[str] -__all__ = ("ReposOwnerRepoImportLfsPatchBodyType",) +__all__ = ("ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType",) 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 ca60a7364..f8207f6ea 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1055.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1055.py @@ -9,11 +9,14 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict -class ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type(TypedDict): - """ReposOwnerRepoInteractionLimitsGetResponse200Anyof1""" +class ReposOwnerRepoImportLfsPatchBodyType(TypedDict): + """ReposOwnerRepoImportLfsPatchBody""" + use_lfs: Literal["opt_in", "opt_out"] -__all__ = ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type",) + +__all__ = ("ReposOwnerRepoImportLfsPatchBodyType",) 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 de920e175..ca60a7364 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1056.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1056.py @@ -9,14 +9,11 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ReposOwnerRepoInvitationsInvitationIdPatchBodyType(TypedDict): - """ReposOwnerRepoInvitationsInvitationIdPatchBody""" +class ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type(TypedDict): + """ReposOwnerRepoInteractionLimitsGetResponse200Anyof1""" - permissions: NotRequired[Literal["read", "write", "maintain", "triage", "admin"]] - -__all__ = ("ReposOwnerRepoInvitationsInvitationIdPatchBodyType",) +__all__ = ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type",) 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 5fcbc4ed3..de920e175 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1057.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1057.py @@ -9,33 +9,14 @@ from __future__ import annotations -from typing import List, Union +from typing import Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoIssuesPostBodyType(TypedDict): - """ReposOwnerRepoIssuesPostBody""" +class ReposOwnerRepoInvitationsInvitationIdPatchBodyType(TypedDict): + """ReposOwnerRepoInvitationsInvitationIdPatchBody""" - 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]] + permissions: NotRequired[Literal["read", "write", "maintain", "triage", "admin"]] -class ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type(TypedDict): - """ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1""" - - id: NotRequired[int] - name: NotRequired[str] - description: NotRequired[Union[str, None]] - color: NotRequired[Union[str, None]] - - -__all__ = ( - "ReposOwnerRepoIssuesPostBodyType", - "ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type", -) +__all__ = ("ReposOwnerRepoInvitationsInvitationIdPatchBodyType",) 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 4b0c546c3..5fcbc4ed3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1058.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1058.py @@ -9,13 +9,33 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import List, Union +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType(TypedDict): - """ReposOwnerRepoIssuesCommentsCommentIdPatchBody""" +class ReposOwnerRepoIssuesPostBodyType(TypedDict): + """ReposOwnerRepoIssuesPostBody""" - body: 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]] -__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType",) +class ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type(TypedDict): + """ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1""" + + id: NotRequired[int] + name: NotRequired[str] + description: NotRequired[Union[str, None]] + color: NotRequired[Union[str, None]] + + +__all__ = ( + "ReposOwnerRepoIssuesPostBodyType", + "ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type", +) 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 77f77960c..4b0c546c3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1059.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1059.py @@ -9,16 +9,13 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict -class ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType(TypedDict): - """ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody""" +class ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType(TypedDict): + """ReposOwnerRepoIssuesCommentsCommentIdPatchBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] + body: str -__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType",) +__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType",) 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 38ef471b7..77f77960c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1060.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1060.py @@ -9,41 +9,16 @@ from __future__ import annotations -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import Literal +from typing_extensions import TypedDict -class ReposOwnerRepoIssuesIssueNumberPatchBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberPatchBody""" +class ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType(TypedDict): + """ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody""" - 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"]] + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" ] - milestone: NotRequired[Union[str, int, None]] - labels: NotRequired[ - List[ - Union[ - str, ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type - ] - ] - ] - assignees: NotRequired[List[str]] - - -class ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type(TypedDict): - """ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1""" - - id: NotRequired[int] - name: NotRequired[str] - description: NotRequired[Union[str, None]] - color: NotRequired[Union[str, None]] -__all__ = ( - "ReposOwnerRepoIssuesIssueNumberPatchBodyType", - "ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type", -) +__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType",) 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 e318c7fed..38ef471b7 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,41 @@ from __future__ import annotations -from typing import List +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberAssigneesPostBody""" - +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]] -__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType",) +class ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type(TypedDict): + """ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1""" + + id: NotRequired[int] + name: NotRequired[str] + description: NotRequired[Union[str, None]] + color: NotRequired[Union[str, None]] + + +__all__ = ( + "ReposOwnerRepoIssuesIssueNumberPatchBodyType", + "ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type", +) 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 ef1108543..e318c7fed 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1062.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1062.py @@ -13,10 +13,10 @@ from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody""" +class ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberAssigneesPostBody""" assignees: NotRequired[List[str]] -__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType",) 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 2585a1e0c..ef1108543 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1063.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1063.py @@ -9,13 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import List +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberCommentsPostBody""" +class ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody""" - body: str + assignees: NotRequired[List[str]] -__all__ = ("ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType",) 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 79fa1e54c..2585a1e0c 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,13 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0""" +class ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberCommentsPostBody""" - labels: NotRequired[List[str]] + body: str -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType",) 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 793244215..79fa1e54c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1065.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1065.py @@ -13,21 +13,10 @@ from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2""" +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0""" - labels: NotRequired[ - List[ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType] - ] + labels: NotRequired[List[str]] -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems""" - - name: str - - -__all__ = ( - "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type", - "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType", -) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type",) 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 4b61c7722..793244215 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1066.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1066.py @@ -9,13 +9,25 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import List +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items""" +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2""" + + labels: NotRequired[ + List[ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType] + ] + + +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems""" name: str -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType",) +__all__ = ( + "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type", + "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType", +) 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 36bd0305e..4b61c7722 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1067.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1067.py @@ -9,14 +9,13 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0""" +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items""" - labels: NotRequired[List[str]] + name: str -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType",) 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 6e7f8a784..36bd0305e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1068.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1068.py @@ -13,21 +13,10 @@ from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2Type(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2""" +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0""" - labels: NotRequired[ - List[ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType] - ] + labels: NotRequired[List[str]] -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems""" - - name: str - - -__all__ = ( - "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2Type", - "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType", -) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type",) 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 6872247a2..6e7f8a784 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1069.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1069.py @@ -9,13 +9,25 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import List +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items""" +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2Type(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2""" + + labels: NotRequired[ + List[ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType] + ] + + +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems""" name: str -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType",) +__all__ = ( + "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2Type", + "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType", +) 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 a190e2d44..6872247a2 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,13 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ReposOwnerRepoIssuesIssueNumberLockPutBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLockPutBody""" +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items""" - lock_reason: NotRequired[Literal["off-topic", "too heated", "resolved", "spam"]] + name: str -__all__ = ("ReposOwnerRepoIssuesIssueNumberLockPutBodyType",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType",) 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 5d8ff2645..a190e2d44 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1071.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1071.py @@ -10,15 +10,13 @@ from __future__ import annotations from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberReactionsPostBody""" +class ReposOwnerRepoIssuesIssueNumberLockPutBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLockPutBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] + lock_reason: NotRequired[Literal["off-topic", "too heated", "resolved", "spam"]] -__all__ = ("ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLockPutBodyType",) 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 fa5cbfe49..5d8ff2645 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1072.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1072.py @@ -9,15 +9,16 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing import Literal +from typing_extensions import TypedDict -class ReposOwnerRepoKeysPostBodyType(TypedDict): - """ReposOwnerRepoKeysPostBody""" +class ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberReactionsPostBody""" - title: NotRequired[str] - key: str - read_only: NotRequired[bool] + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] -__all__ = ("ReposOwnerRepoKeysPostBodyType",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType",) 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 2ae5bd4d6..fa5cbfe49 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1073.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1073.py @@ -12,12 +12,12 @@ from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoLabelsPostBodyType(TypedDict): - """ReposOwnerRepoLabelsPostBody""" +class ReposOwnerRepoKeysPostBodyType(TypedDict): + """ReposOwnerRepoKeysPostBody""" - name: str - color: NotRequired[str] - description: NotRequired[str] + title: NotRequired[str] + key: str + read_only: NotRequired[bool] -__all__ = ("ReposOwnerRepoLabelsPostBodyType",) +__all__ = ("ReposOwnerRepoKeysPostBodyType",) 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 fe512af8d..2ae5bd4d6 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,12 @@ from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoLabelsNamePatchBodyType(TypedDict): - """ReposOwnerRepoLabelsNamePatchBody""" +class ReposOwnerRepoLabelsPostBodyType(TypedDict): + """ReposOwnerRepoLabelsPostBody""" - new_name: NotRequired[str] + name: str color: NotRequired[str] description: NotRequired[str] -__all__ = ("ReposOwnerRepoLabelsNamePatchBodyType",) +__all__ = ("ReposOwnerRepoLabelsPostBodyType",) 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 ac724c353..fe512af8d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1075.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1075.py @@ -9,13 +9,15 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoMergeUpstreamPostBodyType(TypedDict): - """ReposOwnerRepoMergeUpstreamPostBody""" +class ReposOwnerRepoLabelsNamePatchBodyType(TypedDict): + """ReposOwnerRepoLabelsNamePatchBody""" - branch: str + new_name: NotRequired[str] + color: NotRequired[str] + description: NotRequired[str] -__all__ = ("ReposOwnerRepoMergeUpstreamPostBodyType",) +__all__ = ("ReposOwnerRepoLabelsNamePatchBodyType",) 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 68b37cb55..ac724c353 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1076.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1076.py @@ -9,15 +9,13 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ReposOwnerRepoMergesPostBodyType(TypedDict): - """ReposOwnerRepoMergesPostBody""" +class ReposOwnerRepoMergeUpstreamPostBodyType(TypedDict): + """ReposOwnerRepoMergeUpstreamPostBody""" - base: str - head: str - commit_message: NotRequired[str] + branch: str -__all__ = ("ReposOwnerRepoMergesPostBodyType",) +__all__ = ("ReposOwnerRepoMergeUpstreamPostBodyType",) 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 7dd5af8e7..68b37cb55 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1077.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1077.py @@ -9,18 +9,15 @@ from __future__ import annotations -from typing import Literal -from datetime import datetime from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoMilestonesPostBodyType(TypedDict): - """ReposOwnerRepoMilestonesPostBody""" +class ReposOwnerRepoMergesPostBodyType(TypedDict): + """ReposOwnerRepoMergesPostBody""" - title: str - state: NotRequired[Literal["open", "closed"]] - description: NotRequired[str] - due_on: NotRequired[datetime] + base: str + head: str + commit_message: NotRequired[str] -__all__ = ("ReposOwnerRepoMilestonesPostBodyType",) +__all__ = ("ReposOwnerRepoMergesPostBodyType",) 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 d926c03f7..7dd5af8e7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1078.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1078.py @@ -14,13 +14,13 @@ from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType(TypedDict): - """ReposOwnerRepoMilestonesMilestoneNumberPatchBody""" +class ReposOwnerRepoMilestonesPostBodyType(TypedDict): + """ReposOwnerRepoMilestonesPostBody""" - title: NotRequired[str] + title: str state: NotRequired[Literal["open", "closed"]] description: NotRequired[str] due_on: NotRequired[datetime] -__all__ = ("ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType",) +__all__ = ("ReposOwnerRepoMilestonesPostBodyType",) 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 7c0be85f3..d926c03f7 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,18 @@ from __future__ import annotations +from typing import Literal from datetime import datetime from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoNotificationsPutBodyType(TypedDict): - """ReposOwnerRepoNotificationsPutBody""" +class ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType(TypedDict): + """ReposOwnerRepoMilestonesMilestoneNumberPatchBody""" - last_read_at: NotRequired[datetime] + title: NotRequired[str] + state: NotRequired[Literal["open", "closed"]] + description: NotRequired[str] + due_on: NotRequired[datetime] -__all__ = ("ReposOwnerRepoNotificationsPutBodyType",) +__all__ = ("ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType",) 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 153effb7c..7c0be85f3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1080.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1080.py @@ -9,14 +9,14 @@ from __future__ import annotations +from datetime import datetime from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoNotificationsPutResponse202Type(TypedDict): - """ReposOwnerRepoNotificationsPutResponse202""" +class ReposOwnerRepoNotificationsPutBodyType(TypedDict): + """ReposOwnerRepoNotificationsPutBody""" - message: NotRequired[str] - url: NotRequired[str] + last_read_at: NotRequired[datetime] -__all__ = ("ReposOwnerRepoNotificationsPutResponse202Type",) +__all__ = ("ReposOwnerRepoNotificationsPutBodyType",) 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 cd3deab02..153effb7c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1081.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1081.py @@ -9,18 +9,14 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type(TypedDict): - """ReposOwnerRepoPagesPutBodyPropSourceAnyof1 +class ReposOwnerRepoNotificationsPutResponse202Type(TypedDict): + """ReposOwnerRepoNotificationsPutResponse202""" - Update the source for the repository. Must include the branch name and path. - """ + message: NotRequired[str] + url: NotRequired[str] - branch: str - path: Literal["/", "/docs"] - -__all__ = ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type",) +__all__ = ("ReposOwnerRepoNotificationsPutResponse202Type",) 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 1236f472d..cd3deab02 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1082.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1082.py @@ -9,25 +9,18 @@ from __future__ import annotations -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import Literal +from typing_extensions import TypedDict -from .group_1081 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type +class ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type(TypedDict): + """ReposOwnerRepoPagesPutBodyPropSourceAnyof1 -class ReposOwnerRepoPagesPutBodyAnyof0Type(TypedDict): - """ReposOwnerRepoPagesPutBodyAnyof0""" + Update the source for the repository. Must include the branch name and path. + """ - 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] + branch: str + path: Literal["/", "/docs"] -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof0Type",) +__all__ = ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type",) 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 e5603e55f..cb6d59c8e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1083.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1083.py @@ -12,20 +12,22 @@ from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_1081 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type +from .group_1082 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type -class ReposOwnerRepoPagesPutBodyAnyof1Type(TypedDict): - """ReposOwnerRepoPagesPutBodyAnyof1""" +class ReposOwnerRepoPagesPutBodyAnyof0Type(TypedDict): + """ReposOwnerRepoPagesPutBodyAnyof0""" cname: NotRequired[Union[str, None]] https_enforced: NotRequired[bool] - build_type: NotRequired[Literal["legacy", "workflow"]] - source: Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, + build_type: Literal["legacy", "workflow"] + source: NotRequired[ + Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, + ] ] public: NotRequired[bool] -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof1Type",) +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof0Type",) 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 1c5516357..82a7e787e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1084.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1084.py @@ -12,22 +12,20 @@ from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_1081 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type +from .group_1082 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type -class ReposOwnerRepoPagesPutBodyAnyof2Type(TypedDict): - """ReposOwnerRepoPagesPutBodyAnyof2""" +class ReposOwnerRepoPagesPutBodyAnyof1Type(TypedDict): + """ReposOwnerRepoPagesPutBodyAnyof1""" - cname: Union[str, None] + 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, - ] + source: Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, ] public: NotRequired[bool] -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof2Type",) +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof1Type",) 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 d3e6415a2..b0faafd03 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1085.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1085.py @@ -12,13 +12,13 @@ from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_1081 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type +from .group_1082 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type -class ReposOwnerRepoPagesPutBodyAnyof3Type(TypedDict): - """ReposOwnerRepoPagesPutBodyAnyof3""" +class ReposOwnerRepoPagesPutBodyAnyof2Type(TypedDict): + """ReposOwnerRepoPagesPutBodyAnyof2""" - cname: NotRequired[Union[str, None]] + cname: Union[str, None] https_enforced: NotRequired[bool] build_type: NotRequired[Literal["legacy", "workflow"]] source: NotRequired[ @@ -27,7 +27,7 @@ class ReposOwnerRepoPagesPutBodyAnyof3Type(TypedDict): ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, ] ] - public: bool + public: NotRequired[bool] -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof3Type",) +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof2Type",) 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 d18f89e0c..a5486bec0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1086.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1086.py @@ -12,14 +12,14 @@ from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_1081 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type +from .group_1082 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type -class ReposOwnerRepoPagesPutBodyAnyof4Type(TypedDict): - """ReposOwnerRepoPagesPutBodyAnyof4""" +class ReposOwnerRepoPagesPutBodyAnyof3Type(TypedDict): + """ReposOwnerRepoPagesPutBodyAnyof3""" cname: NotRequired[Union[str, None]] - https_enforced: bool + https_enforced: NotRequired[bool] build_type: NotRequired[Literal["legacy", "workflow"]] source: NotRequired[ Union[ @@ -27,7 +27,7 @@ class ReposOwnerRepoPagesPutBodyAnyof4Type(TypedDict): ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, ] ] - public: NotRequired[bool] + public: bool -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof4Type",) +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof3Type",) 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 76dfbb4a7..dc078e66b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1087.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1087.py @@ -9,18 +9,25 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_1082 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type -class ReposOwnerRepoPagesPostBodyPropSourceType(TypedDict): - """ReposOwnerRepoPagesPostBodyPropSource - The source branch and directory used to publish your Pages site. - """ +class ReposOwnerRepoPagesPutBodyAnyof4Type(TypedDict): + """ReposOwnerRepoPagesPutBodyAnyof4""" - branch: str - path: NotRequired[Literal["/", "/docs"]] + 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__ = ("ReposOwnerRepoPagesPostBodyPropSourceType",) +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof4Type",) 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 385de451b..76dfbb4a7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1088.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1088.py @@ -12,14 +12,15 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_1087 import ReposOwnerRepoPagesPostBodyPropSourceType +class ReposOwnerRepoPagesPostBodyPropSourceType(TypedDict): + """ReposOwnerRepoPagesPostBodyPropSource -class ReposOwnerRepoPagesPostBodyAnyof0Type(TypedDict): - """ReposOwnerRepoPagesPostBodyAnyof0""" + The source branch and directory used to publish your Pages site. + """ - build_type: NotRequired[Literal["legacy", "workflow"]] - source: ReposOwnerRepoPagesPostBodyPropSourceType + branch: str + path: NotRequired[Literal["/", "/docs"]] -__all__ = ("ReposOwnerRepoPagesPostBodyAnyof0Type",) +__all__ = ("ReposOwnerRepoPagesPostBodyPropSourceType",) 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 21e5990ea..a7df1246b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1089.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1089.py @@ -12,14 +12,14 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_1087 import ReposOwnerRepoPagesPostBodyPropSourceType +from .group_1088 import ReposOwnerRepoPagesPostBodyPropSourceType -class ReposOwnerRepoPagesPostBodyAnyof1Type(TypedDict): - """ReposOwnerRepoPagesPostBodyAnyof1""" +class ReposOwnerRepoPagesPostBodyAnyof0Type(TypedDict): + """ReposOwnerRepoPagesPostBodyAnyof0""" - build_type: Literal["legacy", "workflow"] - source: NotRequired[ReposOwnerRepoPagesPostBodyPropSourceType] + build_type: NotRequired[Literal["legacy", "workflow"]] + source: ReposOwnerRepoPagesPostBodyPropSourceType -__all__ = ("ReposOwnerRepoPagesPostBodyAnyof1Type",) +__all__ = ("ReposOwnerRepoPagesPostBodyAnyof0Type",) 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 93491698d..d44eed967 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1090.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1090.py @@ -9,20 +9,17 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict, NotRequired +from .group_1088 import ReposOwnerRepoPagesPostBodyPropSourceType -class ReposOwnerRepoPagesDeploymentsPostBodyType(TypedDict): - """ReposOwnerRepoPagesDeploymentsPostBody - The object used to create GitHub Pages deployment - """ +class ReposOwnerRepoPagesPostBodyAnyof1Type(TypedDict): + """ReposOwnerRepoPagesPostBodyAnyof1""" - artifact_id: NotRequired[float] - artifact_url: NotRequired[str] - environment: NotRequired[str] - pages_build_version: str - oidc_token: str + build_type: Literal["legacy", "workflow"] + source: NotRequired[ReposOwnerRepoPagesPostBodyPropSourceType] -__all__ = ("ReposOwnerRepoPagesDeploymentsPostBodyType",) +__all__ = ("ReposOwnerRepoPagesPostBodyAnyof1Type",) 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 c22c267f3..93491698d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1091.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1091.py @@ -9,13 +9,20 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200Type(TypedDict): - """ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200""" +class ReposOwnerRepoPagesDeploymentsPostBodyType(TypedDict): + """ReposOwnerRepoPagesDeploymentsPostBody - enabled: bool + 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__ = ("ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200Type",) + +__all__ = ("ReposOwnerRepoPagesDeploymentsPostBodyType",) 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 36b3e70e4..c22c267f3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1092.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1092.py @@ -9,14 +9,13 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ReposOwnerRepoProjectsPostBodyType(TypedDict): - """ReposOwnerRepoProjectsPostBody""" +class ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200Type(TypedDict): + """ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200""" - name: str - body: NotRequired[str] + enabled: bool -__all__ = ("ReposOwnerRepoProjectsPostBodyType",) +__all__ = ("ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200Type",) 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 e23475f68..36b3e70e4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1093.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1093.py @@ -9,16 +9,14 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0120 import CustomPropertyValueType +class ReposOwnerRepoProjectsPostBodyType(TypedDict): + """ReposOwnerRepoProjectsPostBody""" -class ReposOwnerRepoPropertiesValuesPatchBodyType(TypedDict): - """ReposOwnerRepoPropertiesValuesPatchBody""" + name: str + body: NotRequired[str] - properties: List[CustomPropertyValueType] - -__all__ = ("ReposOwnerRepoPropertiesValuesPatchBodyType",) +__all__ = ("ReposOwnerRepoProjectsPostBodyType",) 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 e4301f5c1..e23475f68 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1094.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1094.py @@ -9,20 +9,16 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict +from .group_0120 import CustomPropertyValueType -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 ReposOwnerRepoPropertiesValuesPatchBodyType(TypedDict): + """ReposOwnerRepoPropertiesValuesPatchBody""" + properties: List[CustomPropertyValueType] -__all__ = ("ReposOwnerRepoPullsPostBodyType",) + +__all__ = ("ReposOwnerRepoPropertiesValuesPatchBodyType",) 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 160987b13..e4301f5c1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1095.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1095.py @@ -9,13 +9,20 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoPullsCommentsCommentIdPatchBodyType(TypedDict): - """ReposOwnerRepoPullsCommentsCommentIdPatchBody""" +class ReposOwnerRepoPullsPostBodyType(TypedDict): + """ReposOwnerRepoPullsPostBody""" - body: 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__ = ("ReposOwnerRepoPullsCommentsCommentIdPatchBodyType",) +__all__ = ("ReposOwnerRepoPullsPostBodyType",) 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 4dc9e5008..160987b13 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1096.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1096.py @@ -9,16 +9,13 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict -class ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType(TypedDict): - """ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody""" +class ReposOwnerRepoPullsCommentsCommentIdPatchBodyType(TypedDict): + """ReposOwnerRepoPullsCommentsCommentIdPatchBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] + body: str -__all__ = ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType",) +__all__ = ("ReposOwnerRepoPullsCommentsCommentIdPatchBodyType",) 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 a7f3437b1..4dc9e5008 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1097.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1097.py @@ -10,17 +10,15 @@ from __future__ import annotations from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ReposOwnerRepoPullsPullNumberPatchBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberPatchBody""" +class ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType(TypedDict): + """ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody""" - title: NotRequired[str] - body: NotRequired[str] - state: NotRequired[Literal["open", "closed"]] - base: NotRequired[str] - maintainer_can_modify: NotRequired[bool] + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] -__all__ = ("ReposOwnerRepoPullsPullNumberPatchBodyType",) +__all__ = ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType",) 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 2bc8bc97e..a7f3437b1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1098.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1098.py @@ -13,19 +13,14 @@ from typing_extensions import TypedDict, NotRequired -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",) +class ReposOwnerRepoPullsPullNumberPatchBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberPatchBody""" + + title: NotRequired[str] + body: NotRequired[str] + state: NotRequired[Literal["open", "closed"]] + base: NotRequired[str] + maintainer_can_modify: NotRequired[bool] + + +__all__ = ("ReposOwnerRepoPullsPullNumberPatchBodyType",) 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 3a373298b..2bc8bc97e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1099.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1099.py @@ -13,19 +13,19 @@ from typing_extensions import TypedDict, NotRequired -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",) +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/ghec_v2022_11_28/types/group_1100.py b/githubkit/versions/ghec_v2022_11_28/types/group_1100.py index fdc9c5a0e..3a373298b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1100.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1100.py @@ -9,13 +9,23 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody""" +class ReposOwnerRepoPullsPullNumberCommentsPostBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberCommentsPostBody""" body: str - - -__all__ = ("ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBodyType",) + 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_1101.py b/githubkit/versions/ghec_v2022_11_28/types/group_1101.py index f027d8849..fdc9c5a0e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1101.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1101.py @@ -9,17 +9,13 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ReposOwnerRepoPullsPullNumberMergePutBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberMergePutBody""" +class ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody""" - commit_title: NotRequired[str] - commit_message: NotRequired[str] - sha: NotRequired[str] - merge_method: NotRequired[Literal["merge", "squash", "rebase"]] + body: str -__all__ = ("ReposOwnerRepoPullsPullNumberMergePutBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBodyType",) 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 430b6639e..f027d8849 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,17 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoPullsPullNumberMergePutResponse405Type(TypedDict): - """ReposOwnerRepoPullsPullNumberMergePutResponse405""" +class ReposOwnerRepoPullsPullNumberMergePutBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberMergePutBody""" - message: NotRequired[str] - documentation_url: NotRequired[str] + commit_title: NotRequired[str] + commit_message: NotRequired[str] + sha: NotRequired[str] + merge_method: NotRequired[Literal["merge", "squash", "rebase"]] -__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse405Type",) +__all__ = ("ReposOwnerRepoPullsPullNumberMergePutBodyType",) 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 12d07d173..430b6639e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1103.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1103.py @@ -12,11 +12,11 @@ from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoPullsPullNumberMergePutResponse409Type(TypedDict): - """ReposOwnerRepoPullsPullNumberMergePutResponse409""" +class ReposOwnerRepoPullsPullNumberMergePutResponse405Type(TypedDict): + """ReposOwnerRepoPullsPullNumberMergePutResponse405""" message: NotRequired[str] documentation_url: NotRequired[str] -__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse409Type",) +__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse405Type",) 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 a84cf2d89..12d07d173 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1104.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1104.py @@ -9,15 +9,14 @@ from __future__ import annotations -from typing import List from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0Type(TypedDict): - """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0""" +class ReposOwnerRepoPullsPullNumberMergePutResponse409Type(TypedDict): + """ReposOwnerRepoPullsPullNumberMergePutResponse409""" - reviewers: List[str] - team_reviewers: NotRequired[List[str]] + message: NotRequired[str] + documentation_url: NotRequired[str] -__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0Type",) +__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse409Type",) 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 1d45bd83c..a84cf2d89 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1105.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1105.py @@ -13,11 +13,11 @@ from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1Type(TypedDict): - """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1""" +class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0Type(TypedDict): + """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0""" - reviewers: NotRequired[List[str]] - team_reviewers: List[str] + reviewers: List[str] + team_reviewers: NotRequired[List[str]] -__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1Type",) +__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0Type",) 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 020f5596d..1d45bd83c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1106.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1106.py @@ -13,11 +13,11 @@ from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody""" +class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1Type(TypedDict): + """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1""" - reviewers: List[str] - team_reviewers: NotRequired[List[str]] + reviewers: NotRequired[List[str]] + team_reviewers: List[str] -__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1Type",) 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 1046c3f1e..020f5596d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1107.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1107.py @@ -9,34 +9,15 @@ from __future__ import annotations -from typing import List, Literal +from typing import List from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoPullsPullNumberReviewsPostBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberReviewsPostBody""" +class ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody""" - commit_id: NotRequired[str] - body: NotRequired[str] - event: NotRequired[Literal["APPROVE", "REQUEST_CHANGES", "COMMENT"]] - comments: NotRequired[ - List[ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType] - ] + reviewers: List[str] + team_reviewers: NotRequired[List[str]] -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__ = ( - "ReposOwnerRepoPullsPullNumberReviewsPostBodyType", - "ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType", -) +__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBodyType",) 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 05cccf0c0..1046c3f1e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1108.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1108.py @@ -9,13 +9,34 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import List, Literal +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody""" +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__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType",) +__all__ = ( + "ReposOwnerRepoPullsPullNumberReviewsPostBodyType", + "ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType", +) 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 6b49304a1..05cccf0c0 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,13 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody""" +class ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody""" - message: str - event: NotRequired[Literal["DISMISS"]] + body: str -__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType",) 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 db429f41c..6b49304a1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1110.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1110.py @@ -13,11 +13,11 @@ from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody""" +class ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody""" - body: NotRequired[str] - event: Literal["APPROVE", "REQUEST_CHANGES", "COMMENT"] + message: str + event: NotRequired[Literal["DISMISS"]] -__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBodyType",) 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 20f8615d9..db429f41c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1111.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1111.py @@ -9,13 +9,15 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberUpdateBranchPutBody""" +class ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody""" - expected_head_sha: NotRequired[str] + body: NotRequired[str] + event: Literal["APPROVE", "REQUEST_CHANGES", "COMMENT"] -__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBodyType",) 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 6be5b5e11..20f8615d9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1112.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1112.py @@ -12,11 +12,10 @@ from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type(TypedDict): - """ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202""" +class ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberUpdateBranchPutBody""" - message: NotRequired[str] - url: NotRequired[str] + expected_head_sha: NotRequired[str] -__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type",) +__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType",) 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 ad449b3dd..6be5b5e11 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1113.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1113.py @@ -9,22 +9,14 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoReleasesPostBodyType(TypedDict): - """ReposOwnerRepoReleasesPostBody""" +class ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type(TypedDict): + """ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202""" - 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] + url: NotRequired[str] -__all__ = ("ReposOwnerRepoReleasesPostBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type",) 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 14ed366af..ad449b3dd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1114.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1114.py @@ -9,15 +9,22 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType(TypedDict): - """ReposOwnerRepoReleasesAssetsAssetIdPatchBody""" +class ReposOwnerRepoReleasesPostBodyType(TypedDict): + """ReposOwnerRepoReleasesPostBody""" + tag_name: str + target_commitish: NotRequired[str] name: NotRequired[str] - label: NotRequired[str] - state: 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__ = ("ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType",) +__all__ = ("ReposOwnerRepoReleasesPostBodyType",) 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 951aca8ca..14ed366af 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1115.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1115.py @@ -12,13 +12,12 @@ from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoReleasesGenerateNotesPostBodyType(TypedDict): - """ReposOwnerRepoReleasesGenerateNotesPostBody""" +class ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType(TypedDict): + """ReposOwnerRepoReleasesAssetsAssetIdPatchBody""" - tag_name: str - target_commitish: NotRequired[str] - previous_tag_name: NotRequired[str] - configuration_file_path: NotRequired[str] + name: NotRequired[str] + label: NotRequired[str] + state: NotRequired[str] -__all__ = ("ReposOwnerRepoReleasesGenerateNotesPostBodyType",) +__all__ = ("ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType",) 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 fc4fe244b..951aca8ca 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1116.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1116.py @@ -9,21 +9,16 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoReleasesReleaseIdPatchBodyType(TypedDict): - """ReposOwnerRepoReleasesReleaseIdPatchBody""" +class ReposOwnerRepoReleasesGenerateNotesPostBodyType(TypedDict): + """ReposOwnerRepoReleasesGenerateNotesPostBody""" - tag_name: NotRequired[str] + tag_name: 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] + previous_tag_name: NotRequired[str] + configuration_file_path: NotRequired[str] -__all__ = ("ReposOwnerRepoReleasesReleaseIdPatchBodyType",) +__all__ = ("ReposOwnerRepoReleasesGenerateNotesPostBodyType",) 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 d85bf8d37..fc4fe244b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1117.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1117.py @@ -10,13 +10,20 @@ from __future__ import annotations from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType(TypedDict): - """ReposOwnerRepoReleasesReleaseIdReactionsPostBody""" +class ReposOwnerRepoReleasesReleaseIdPatchBodyType(TypedDict): + """ReposOwnerRepoReleasesReleaseIdPatchBody""" - content: Literal["+1", "laugh", "heart", "hooray", "rocket", "eyes"] + 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__ = ("ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType",) +__all__ = ("ReposOwnerRepoReleasesReleaseIdPatchBodyType",) 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 f980c32ad..d85bf8d37 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1118.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1118.py @@ -9,71 +9,14 @@ from __future__ import annotations -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import Literal +from typing_extensions import TypedDict -from .group_0137 import RepositoryRuleUpdateType -from .group_0161 import RepositoryRuleOneof17Type -from .group_0157 import RepositoryRuleWorkflowsType -from .group_0142 import RepositoryRulePullRequestType -from .group_0159 import RepositoryRuleCodeScanningType -from .group_0125 import RepositoryRulesetConditionsType -from .group_0124 import RepositoryRulesetBypassActorType -from .group_0154 import RepositoryRuleTagNamePatternType -from .group_0152 import RepositoryRuleBranchNamePatternType -from .group_0140 import RepositoryRuleRequiredDeploymentsType -from .group_0144 import RepositoryRuleRequiredStatusChecksType -from .group_0146 import RepositoryRuleCommitMessagePatternType -from .group_0150 import RepositoryRuleCommitterEmailPatternType -from .group_0148 import RepositoryRuleCommitAuthorEmailPatternType -from .group_0139 import ( - RepositoryRuleOneof15Type, - RepositoryRuleRequiredLinearHistoryType, -) -from .group_0136 import ( - RepositoryRuleOneof14Type, - RepositoryRuleOneof16Type, - RepositoryRuleCreationType, - RepositoryRuleDeletionType, - RepositoryRuleNonFastForwardType, - RepositoryRuleRequiredSignaturesType, -) +class ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType(TypedDict): + """ReposOwnerRepoReleasesReleaseIdReactionsPostBody""" -class ReposOwnerRepoRulesetsPostBodyType(TypedDict): - """ReposOwnerRepoRulesetsPostBody""" + content: Literal["+1", "laugh", "heart", "hooray", "rocket", "eyes"] - 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, - RepositoryRuleRequiredDeploymentsType, - RepositoryRuleRequiredSignaturesType, - RepositoryRulePullRequestType, - RepositoryRuleRequiredStatusChecksType, - RepositoryRuleNonFastForwardType, - RepositoryRuleCommitMessagePatternType, - RepositoryRuleCommitAuthorEmailPatternType, - RepositoryRuleCommitterEmailPatternType, - RepositoryRuleBranchNamePatternType, - RepositoryRuleTagNamePatternType, - RepositoryRuleOneof14Type, - RepositoryRuleOneof15Type, - RepositoryRuleOneof16Type, - RepositoryRuleOneof17Type, - RepositoryRuleWorkflowsType, - RepositoryRuleCodeScanningType, - ] - ] - ] - -__all__ = ("ReposOwnerRepoRulesetsPostBodyType",) +__all__ = ("ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType",) 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 ea5855ed9..f980c32ad 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1119.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1119.py @@ -40,12 +40,12 @@ ) -class ReposOwnerRepoRulesetsRulesetIdPutBodyType(TypedDict): - """ReposOwnerRepoRulesetsRulesetIdPutBody""" +class ReposOwnerRepoRulesetsPostBodyType(TypedDict): + """ReposOwnerRepoRulesetsPostBody""" - name: NotRequired[str] + name: str target: NotRequired[Literal["branch", "tag", "push"]] - enforcement: NotRequired[Literal["disabled", "active", "evaluate"]] + enforcement: Literal["disabled", "active", "evaluate"] bypass_actors: NotRequired[List[RepositoryRulesetBypassActorType]] conditions: NotRequired[RepositoryRulesetConditionsType] rules: NotRequired[ @@ -76,4 +76,4 @@ class ReposOwnerRepoRulesetsRulesetIdPutBodyType(TypedDict): ] -__all__ = ("ReposOwnerRepoRulesetsRulesetIdPutBodyType",) +__all__ = ("ReposOwnerRepoRulesetsPostBodyType",) 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 6dd2f6735..ea5855ed9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1120.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1120.py @@ -9,18 +9,71 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0137 import RepositoryRuleUpdateType +from .group_0161 import RepositoryRuleOneof17Type +from .group_0157 import RepositoryRuleWorkflowsType +from .group_0142 import RepositoryRulePullRequestType +from .group_0159 import RepositoryRuleCodeScanningType +from .group_0125 import RepositoryRulesetConditionsType +from .group_0124 import RepositoryRulesetBypassActorType +from .group_0154 import RepositoryRuleTagNamePatternType +from .group_0152 import RepositoryRuleBranchNamePatternType +from .group_0140 import RepositoryRuleRequiredDeploymentsType +from .group_0144 import RepositoryRuleRequiredStatusChecksType +from .group_0146 import RepositoryRuleCommitMessagePatternType +from .group_0150 import RepositoryRuleCommitterEmailPatternType +from .group_0148 import RepositoryRuleCommitAuthorEmailPatternType +from .group_0139 import ( + RepositoryRuleOneof15Type, + RepositoryRuleRequiredLinearHistoryType, +) +from .group_0136 import ( + RepositoryRuleOneof14Type, + RepositoryRuleOneof16Type, + RepositoryRuleCreationType, + RepositoryRuleDeletionType, + RepositoryRuleNonFastForwardType, + RepositoryRuleRequiredSignaturesType, +) -class ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType(TypedDict): - """ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody""" - state: Literal["open", "resolved"] - resolution: NotRequired[ - Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] +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, + RepositoryRuleRequiredDeploymentsType, + RepositoryRuleRequiredSignaturesType, + RepositoryRulePullRequestType, + RepositoryRuleRequiredStatusChecksType, + RepositoryRuleNonFastForwardType, + RepositoryRuleCommitMessagePatternType, + RepositoryRuleCommitAuthorEmailPatternType, + RepositoryRuleCommitterEmailPatternType, + RepositoryRuleBranchNamePatternType, + RepositoryRuleTagNamePatternType, + RepositoryRuleOneof14Type, + RepositoryRuleOneof15Type, + RepositoryRuleOneof16Type, + RepositoryRuleOneof17Type, + RepositoryRuleWorkflowsType, + RepositoryRuleCodeScanningType, + ] + ] ] - resolution_comment: NotRequired[Union[str, None]] -__all__ = ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType",) +__all__ = ("ReposOwnerRepoRulesetsRulesetIdPutBodyType",) 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 48f7d82ce..6dd2f6735 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1121.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1121.py @@ -13,13 +13,14 @@ from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoStatusesShaPostBodyType(TypedDict): - """ReposOwnerRepoStatusesShaPostBody""" +class ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType(TypedDict): + """ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody""" - state: Literal["error", "failure", "pending", "success"] - target_url: NotRequired[Union[str, None]] - description: NotRequired[Union[str, None]] - context: NotRequired[str] + state: Literal["open", "resolved"] + resolution: NotRequired[ + Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] + ] + resolution_comment: NotRequired[Union[str, None]] -__all__ = ("ReposOwnerRepoStatusesShaPostBodyType",) +__all__ = ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType",) 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 9e6d26d8a..48f7d82ce 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1122.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1122.py @@ -9,14 +9,17 @@ from __future__ import annotations +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoSubscriptionPutBodyType(TypedDict): - """ReposOwnerRepoSubscriptionPutBody""" +class ReposOwnerRepoStatusesShaPostBodyType(TypedDict): + """ReposOwnerRepoStatusesShaPostBody""" - subscribed: NotRequired[bool] - ignored: NotRequired[bool] + state: Literal["error", "failure", "pending", "success"] + target_url: NotRequired[Union[str, None]] + description: NotRequired[Union[str, None]] + context: NotRequired[str] -__all__ = ("ReposOwnerRepoSubscriptionPutBodyType",) +__all__ = ("ReposOwnerRepoStatusesShaPostBodyType",) 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 492fdc91e..9e6d26d8a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1123.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1123.py @@ -9,13 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoTagsProtectionPostBodyType(TypedDict): - """ReposOwnerRepoTagsProtectionPostBody""" +class ReposOwnerRepoSubscriptionPutBodyType(TypedDict): + """ReposOwnerRepoSubscriptionPutBody""" - pattern: str + subscribed: NotRequired[bool] + ignored: NotRequired[bool] -__all__ = ("ReposOwnerRepoTagsProtectionPostBodyType",) +__all__ = ("ReposOwnerRepoSubscriptionPutBodyType",) 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 681ccb3a7..492fdc91e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1124.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1124.py @@ -9,14 +9,13 @@ from __future__ import annotations -from typing import List from typing_extensions import TypedDict -class ReposOwnerRepoTopicsPutBodyType(TypedDict): - """ReposOwnerRepoTopicsPutBody""" +class ReposOwnerRepoTagsProtectionPostBodyType(TypedDict): + """ReposOwnerRepoTagsProtectionPostBody""" - names: List[str] + pattern: str -__all__ = ("ReposOwnerRepoTopicsPutBodyType",) +__all__ = ("ReposOwnerRepoTagsProtectionPostBodyType",) 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 75339e545..681ccb3a7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1125.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1125.py @@ -10,15 +10,13 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ReposOwnerRepoTransferPostBodyType(TypedDict): - """ReposOwnerRepoTransferPostBody""" +class ReposOwnerRepoTopicsPutBodyType(TypedDict): + """ReposOwnerRepoTopicsPutBody""" - new_owner: str - new_name: NotRequired[str] - team_ids: NotRequired[List[int]] + names: List[str] -__all__ = ("ReposOwnerRepoTransferPostBodyType",) +__all__ = ("ReposOwnerRepoTopicsPutBodyType",) 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 0b51fb534..75339e545 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1126.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1126.py @@ -9,17 +9,16 @@ from __future__ import annotations +from typing import List from typing_extensions import TypedDict, NotRequired -class ReposTemplateOwnerTemplateRepoGeneratePostBodyType(TypedDict): - """ReposTemplateOwnerTemplateRepoGeneratePostBody""" +class ReposOwnerRepoTransferPostBodyType(TypedDict): + """ReposOwnerRepoTransferPostBody""" - owner: NotRequired[str] - name: str - description: NotRequired[str] - include_all_branches: NotRequired[bool] - private: NotRequired[bool] + new_owner: str + new_name: NotRequired[str] + team_ids: NotRequired[List[int]] -__all__ = ("ReposTemplateOwnerTemplateRepoGeneratePostBodyType",) +__all__ = ("ReposOwnerRepoTransferPostBodyType",) 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 b4e292586..0b51fb534 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1127.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1127.py @@ -9,45 +9,17 @@ from __future__ import annotations -from typing import List from typing_extensions import TypedDict, NotRequired -class ScimV2OrganizationsOrgUsersPostBodyType(TypedDict): - """ScimV2OrganizationsOrgUsersPostBody""" +class ReposTemplateOwnerTemplateRepoGeneratePostBodyType(TypedDict): + """ReposTemplateOwnerTemplateRepoGeneratePostBody""" - 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] + owner: NotRequired[str] + name: str + description: NotRequired[str] + include_all_branches: NotRequired[bool] + private: 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__ = ( - "ScimV2OrganizationsOrgUsersPostBodyType", - "ScimV2OrganizationsOrgUsersPostBodyPropNameType", - "ScimV2OrganizationsOrgUsersPostBodyPropEmailsItemsType", -) +__all__ = ("ReposTemplateOwnerTemplateRepoGeneratePostBodyType",) 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 c39deeb1d..b4e292586 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1128.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1128.py @@ -13,21 +13,21 @@ from typing_extensions import TypedDict, NotRequired -class ScimV2OrganizationsOrgUsersScimUserIdPutBodyType(TypedDict): - """ScimV2OrganizationsOrgUsersScimUserIdPutBody""" +class ScimV2OrganizationsOrgUsersPostBodyType(TypedDict): + """ScimV2OrganizationsOrgUsersPostBody""" - schemas: NotRequired[List[str]] + 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] - user_name: str - name: ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropNameType - emails: List[ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItemsType] -class ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropNameType(TypedDict): - """ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName +class ScimV2OrganizationsOrgUsersPostBodyPropNameType(TypedDict): + """ScimV2OrganizationsOrgUsersPostBodyPropName Examples: {'givenName': 'Jane', 'familyName': 'User'} @@ -38,16 +38,16 @@ class ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropNameType(TypedDict): formatted: NotRequired[str] -class ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItemsType(TypedDict): - """ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems""" +class ScimV2OrganizationsOrgUsersPostBodyPropEmailsItemsType(TypedDict): + """ScimV2OrganizationsOrgUsersPostBodyPropEmailsItems""" - type: NotRequired[str] value: str primary: NotRequired[bool] + type: NotRequired[str] __all__ = ( - "ScimV2OrganizationsOrgUsersScimUserIdPutBodyType", - "ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropNameType", - "ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItemsType", + "ScimV2OrganizationsOrgUsersPostBodyType", + "ScimV2OrganizationsOrgUsersPostBodyPropNameType", + "ScimV2OrganizationsOrgUsersPostBodyPropEmailsItemsType", ) 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 8ca10d594..c39deeb1d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1129.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1129.py @@ -9,61 +9,45 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import List from typing_extensions import TypedDict, NotRequired -class ScimV2OrganizationsOrgUsersScimUserIdPatchBodyType(TypedDict): - """ScimV2OrganizationsOrgUsersScimUserIdPatchBody""" +class ScimV2OrganizationsOrgUsersScimUserIdPutBodyType(TypedDict): + """ScimV2OrganizationsOrgUsersScimUserIdPutBody""" schemas: NotRequired[List[str]] - operations: List[ - ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsType - ] - - -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 + 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'} """ - value: NotRequired[str] + given_name: str + family_name: str + formatted: NotRequired[str] + + +class ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItemsType(TypedDict): + """ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems""" + + type: NotRequired[str] + value: str primary: NotRequired[bool] __all__ = ( - "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyType", - "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsType", - "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0Type", - "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1ItemsType", + "ScimV2OrganizationsOrgUsersScimUserIdPutBodyType", + "ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropNameType", + "ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItemsType", ) 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 b589c2a6a..8ca10d594 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1130.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1130.py @@ -9,21 +9,61 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -class TeamsTeamIdPatchBodyType(TypedDict): - """TeamsTeamIdPatchBody""" +class ScimV2OrganizationsOrgUsersScimUserIdPatchBodyType(TypedDict): + """ScimV2OrganizationsOrgUsersScimUserIdPatchBody""" - name: str - description: NotRequired[str] - privacy: NotRequired[Literal["secret", "closed"]] - notification_setting: NotRequired[ - Literal["notifications_enabled", "notifications_disabled"] + schemas: NotRequired[List[str]] + operations: List[ + ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsType ] - permission: NotRequired[Literal["pull", "push", "admin"]] - parent_team_id: NotRequired[Union[int, None]] -__all__ = ("TeamsTeamIdPatchBodyType",) +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__ = ( + "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyType", + "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsType", + "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0Type", + "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1ItemsType", +) 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 46f00fe63..b589c2a6a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1131.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1131.py @@ -9,15 +9,21 @@ from __future__ import annotations +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -class TeamsTeamIdDiscussionsPostBodyType(TypedDict): - """TeamsTeamIdDiscussionsPostBody""" +class TeamsTeamIdPatchBodyType(TypedDict): + """TeamsTeamIdPatchBody""" - title: str - body: str - private: NotRequired[bool] + 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__ = ("TeamsTeamIdDiscussionsPostBodyType",) +__all__ = ("TeamsTeamIdPatchBodyType",) 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 2797e0af9..46f00fe63 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1132.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1132.py @@ -12,11 +12,12 @@ from typing_extensions import TypedDict, NotRequired -class TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType(TypedDict): - """TeamsTeamIdDiscussionsDiscussionNumberPatchBody""" +class TeamsTeamIdDiscussionsPostBodyType(TypedDict): + """TeamsTeamIdDiscussionsPostBody""" - title: NotRequired[str] - body: NotRequired[str] + title: str + body: str + private: NotRequired[bool] -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType",) +__all__ = ("TeamsTeamIdDiscussionsPostBodyType",) 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 49b6126e3..2797e0af9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1133.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1133.py @@ -9,13 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType(TypedDict): - """TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody""" +class TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType(TypedDict): + """TeamsTeamIdDiscussionsDiscussionNumberPatchBody""" - body: str + title: NotRequired[str] + body: NotRequired[str] -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType",) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType",) 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 aba26488a..49b6126e3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1134.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1134.py @@ -12,12 +12,10 @@ from typing_extensions import TypedDict -class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType( - TypedDict -): - """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" +class TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType(TypedDict): + """TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody""" body: str -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType",) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType",) 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 ea06c9bbf..aba26488a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1135.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1135.py @@ -9,20 +9,15 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict -class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType( +class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType( TypedDict ): - """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody""" + """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] + body: str -__all__ = ( - "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType", -) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType",) 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 02edb1cc8..ea06c9bbf 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1136.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1136.py @@ -13,12 +13,16 @@ from typing_extensions import TypedDict -class TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType(TypedDict): - """TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody""" +class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType( + TypedDict +): + """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody""" content: Literal[ "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" ] -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType",) +__all__ = ( + "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType", +) 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 8ac2e4896..02edb1cc8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1137.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1137.py @@ -10,13 +10,15 @@ from __future__ import annotations from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class TeamsTeamIdMembershipsUsernamePutBodyType(TypedDict): - """TeamsTeamIdMembershipsUsernamePutBody""" +class TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType(TypedDict): + """TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody""" - role: NotRequired[Literal["member", "maintainer"]] + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] -__all__ = ("TeamsTeamIdMembershipsUsernamePutBodyType",) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType",) 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 206f6e4e5..8ac2e4896 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1138.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1138.py @@ -13,10 +13,10 @@ from typing_extensions import TypedDict, NotRequired -class TeamsTeamIdProjectsProjectIdPutBodyType(TypedDict): - """TeamsTeamIdProjectsProjectIdPutBody""" +class TeamsTeamIdMembershipsUsernamePutBodyType(TypedDict): + """TeamsTeamIdMembershipsUsernamePutBody""" - permission: NotRequired[Literal["read", "write", "admin"]] + role: NotRequired[Literal["member", "maintainer"]] -__all__ = ("TeamsTeamIdProjectsProjectIdPutBodyType",) +__all__ = ("TeamsTeamIdMembershipsUsernamePutBodyType",) 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 fd87b040e..206f6e4e5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1139.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1139.py @@ -9,14 +9,14 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict, NotRequired -class TeamsTeamIdProjectsProjectIdPutResponse403Type(TypedDict): - """TeamsTeamIdProjectsProjectIdPutResponse403""" +class TeamsTeamIdProjectsProjectIdPutBodyType(TypedDict): + """TeamsTeamIdProjectsProjectIdPutBody""" - message: NotRequired[str] - documentation_url: NotRequired[str] + permission: NotRequired[Literal["read", "write", "admin"]] -__all__ = ("TeamsTeamIdProjectsProjectIdPutResponse403Type",) +__all__ = ("TeamsTeamIdProjectsProjectIdPutBodyType",) 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 5f68e3fc2..fd87b040e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1140.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1140.py @@ -9,14 +9,14 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict, NotRequired -class TeamsTeamIdReposOwnerRepoPutBodyType(TypedDict): - """TeamsTeamIdReposOwnerRepoPutBody""" +class TeamsTeamIdProjectsProjectIdPutResponse403Type(TypedDict): + """TeamsTeamIdProjectsProjectIdPutResponse403""" - permission: NotRequired[Literal["pull", "push", "admin"]] + message: NotRequired[str] + documentation_url: NotRequired[str] -__all__ = ("TeamsTeamIdReposOwnerRepoPutBodyType",) +__all__ = ("TeamsTeamIdProjectsProjectIdPutResponse403Type",) 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 2b78f607c..5f68e3fc2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1141.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1141.py @@ -9,29 +9,14 @@ from __future__ import annotations -from typing import List +from typing import Literal from typing_extensions import TypedDict, NotRequired -class TeamsTeamIdTeamSyncGroupMappingsPatchBodyType(TypedDict): - """TeamsTeamIdTeamSyncGroupMappingsPatchBody""" +class TeamsTeamIdReposOwnerRepoPutBodyType(TypedDict): + """TeamsTeamIdReposOwnerRepoPutBody""" - groups: List[TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItemsType] - synced_at: NotRequired[str] + permission: NotRequired[Literal["pull", "push", "admin"]] -class TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItemsType(TypedDict): - """TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItems""" - - group_id: str - group_name: str - group_description: str - id: NotRequired[str] - name: NotRequired[str] - description: NotRequired[str] - - -__all__ = ( - "TeamsTeamIdTeamSyncGroupMappingsPatchBodyType", - "TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItemsType", -) +__all__ = ("TeamsTeamIdReposOwnerRepoPutBodyType",) 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 a5b98bc3c..2b78f607c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1142.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1142.py @@ -9,21 +9,29 @@ from __future__ import annotations -from typing import Union +from typing import List from typing_extensions import TypedDict, NotRequired -class UserPatchBodyType(TypedDict): - """UserPatchBody""" +class TeamsTeamIdTeamSyncGroupMappingsPatchBodyType(TypedDict): + """TeamsTeamIdTeamSyncGroupMappingsPatchBody""" + groups: List[TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItemsType] + synced_at: NotRequired[str] + + +class TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItemsType(TypedDict): + """TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItems""" + + group_id: str + group_name: str + group_description: str + id: NotRequired[str] 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] + description: NotRequired[str] -__all__ = ("UserPatchBodyType",) +__all__ = ( + "TeamsTeamIdTeamSyncGroupMappingsPatchBodyType", + "TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItemsType", +) 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 79d277415..a5b98bc3c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1143.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1143.py @@ -9,17 +9,21 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import TypedDict, NotRequired -from .group_0094 import CodespaceType +class UserPatchBodyType(TypedDict): + """UserPatchBody""" -class UserCodespacesGetResponse200Type(TypedDict): - """UserCodespacesGetResponse200""" + 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 - codespaces: List[CodespaceType] - -__all__ = ("UserCodespacesGetResponse200Type",) +__all__ = ("UserPatchBodyType",) 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 dc342bf35..79d277415 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1144.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1144.py @@ -9,25 +9,17 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict +from .group_0094 import CodespaceType -class UserCodespacesPostBodyOneof0Type(TypedDict): - """UserCodespacesPostBodyOneof0""" - 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] +class UserCodespacesGetResponse200Type(TypedDict): + """UserCodespacesGetResponse200""" + total_count: int + codespaces: List[CodespaceType] -__all__ = ("UserCodespacesPostBodyOneof0Type",) + +__all__ = ("UserCodespacesGetResponse200Type",) 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 cf235f497..dc342bf35 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1145.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1145.py @@ -13,29 +13,21 @@ from typing_extensions import TypedDict, NotRequired -class UserCodespacesPostBodyOneof1Type(TypedDict): - """UserCodespacesPostBodyOneof1""" +class UserCodespacesPostBodyOneof0Type(TypedDict): + """UserCodespacesPostBodyOneof0""" - pull_request: UserCodespacesPostBodyOneof1PropPullRequestType + 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] -class UserCodespacesPostBodyOneof1PropPullRequestType(TypedDict): - """UserCodespacesPostBodyOneof1PropPullRequest - - Pull request number for this codespace - """ - - pull_request_number: int - repository_id: int - - -__all__ = ( - "UserCodespacesPostBodyOneof1Type", - "UserCodespacesPostBodyOneof1PropPullRequestType", -) +__all__ = ("UserCodespacesPostBodyOneof0Type",) 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 6c62a2d33..cf235f497 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1146.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1146.py @@ -9,32 +9,33 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import TypedDict, NotRequired -class UserCodespacesSecretsGetResponse200Type(TypedDict): - """UserCodespacesSecretsGetResponse200""" +class UserCodespacesPostBodyOneof1Type(TypedDict): + """UserCodespacesPostBodyOneof1""" - total_count: int - secrets: List[CodespacesSecretType] + 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 CodespacesSecretType(TypedDict): - """Codespaces Secret +class UserCodespacesPostBodyOneof1PropPullRequestType(TypedDict): + """UserCodespacesPostBodyOneof1PropPullRequest - Secrets for a GitHub Codespace. + Pull request number for this codespace """ - name: str - created_at: datetime - updated_at: datetime - visibility: Literal["all", "private", "selected"] - selected_repositories_url: str + pull_request_number: int + repository_id: int __all__ = ( - "UserCodespacesSecretsGetResponse200Type", - "CodespacesSecretType", + "UserCodespacesPostBodyOneof1Type", + "UserCodespacesPostBodyOneof1PropPullRequestType", ) 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 f7e1dab5d..6c62a2d33 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1147.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1147.py @@ -9,16 +9,32 @@ from __future__ import annotations -from typing import List, Union -from typing_extensions import TypedDict, NotRequired +from datetime import datetime +from typing import List, Literal +from typing_extensions import TypedDict -class UserCodespacesSecretsSecretNamePutBodyType(TypedDict): - """UserCodespacesSecretsSecretNamePutBody""" +class UserCodespacesSecretsGetResponse200Type(TypedDict): + """UserCodespacesSecretsGetResponse200""" - encrypted_value: NotRequired[str] - key_id: str - selected_repository_ids: NotRequired[List[Union[int, str]]] + total_count: int + secrets: List[CodespacesSecretType] -__all__ = ("UserCodespacesSecretsSecretNamePutBodyType",) +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__ = ( + "UserCodespacesSecretsGetResponse200Type", + "CodespacesSecretType", +) 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 3f591b858..f7e1dab5d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1148.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1148.py @@ -9,17 +9,16 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import List, Union +from typing_extensions import TypedDict, NotRequired -from .group_0082 import MinimalRepositoryType +class UserCodespacesSecretsSecretNamePutBodyType(TypedDict): + """UserCodespacesSecretsSecretNamePutBody""" -class UserCodespacesSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): - """UserCodespacesSecretsSecretNameRepositoriesGetResponse200""" + encrypted_value: NotRequired[str] + key_id: str + selected_repository_ids: NotRequired[List[Union[int, str]]] - total_count: int - repositories: List[MinimalRepositoryType] - -__all__ = ("UserCodespacesSecretsSecretNameRepositoriesGetResponse200Type",) +__all__ = ("UserCodespacesSecretsSecretNamePutBodyType",) 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 623f6ef5e..3f591b858 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1149.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1149.py @@ -12,11 +12,14 @@ from typing import List from typing_extensions import TypedDict +from .group_0082 import MinimalRepositoryType -class UserCodespacesSecretsSecretNameRepositoriesPutBodyType(TypedDict): - """UserCodespacesSecretsSecretNameRepositoriesPutBody""" - selected_repository_ids: List[int] +class UserCodespacesSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): + """UserCodespacesSecretsSecretNameRepositoriesGetResponse200""" + total_count: int + repositories: List[MinimalRepositoryType] -__all__ = ("UserCodespacesSecretsSecretNameRepositoriesPutBodyType",) + +__all__ = ("UserCodespacesSecretsSecretNameRepositoriesGetResponse200Type",) 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 b46628249..623f6ef5e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1150.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1150.py @@ -10,15 +10,13 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class UserCodespacesCodespaceNamePatchBodyType(TypedDict): - """UserCodespacesCodespaceNamePatchBody""" +class UserCodespacesSecretsSecretNameRepositoriesPutBodyType(TypedDict): + """UserCodespacesSecretsSecretNameRepositoriesPutBody""" - machine: NotRequired[str] - display_name: NotRequired[str] - recent_folders: NotRequired[List[str]] + selected_repository_ids: List[int] -__all__ = ("UserCodespacesCodespaceNamePatchBodyType",) +__all__ = ("UserCodespacesSecretsSecretNameRepositoriesPutBodyType",) 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 cc08641e8..b46628249 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1151.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1151.py @@ -10,16 +10,15 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0093 import CodespaceMachineType +class UserCodespacesCodespaceNamePatchBodyType(TypedDict): + """UserCodespacesCodespaceNamePatchBody""" -class UserCodespacesCodespaceNameMachinesGetResponse200Type(TypedDict): - """UserCodespacesCodespaceNameMachinesGetResponse200""" + machine: NotRequired[str] + display_name: NotRequired[str] + recent_folders: NotRequired[List[str]] - total_count: int - machines: List[CodespaceMachineType] - -__all__ = ("UserCodespacesCodespaceNameMachinesGetResponse200Type",) +__all__ = ("UserCodespacesCodespaceNamePatchBodyType",) 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 adf5558f2..cc08641e8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1152.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1152.py @@ -9,14 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict +from .group_0093 import CodespaceMachineType -class UserCodespacesCodespaceNamePublishPostBodyType(TypedDict): - """UserCodespacesCodespaceNamePublishPostBody""" - name: NotRequired[str] - private: NotRequired[bool] +class UserCodespacesCodespaceNameMachinesGetResponse200Type(TypedDict): + """UserCodespacesCodespaceNameMachinesGetResponse200""" + total_count: int + machines: List[CodespaceMachineType] -__all__ = ("UserCodespacesCodespaceNamePublishPostBodyType",) + +__all__ = ("UserCodespacesCodespaceNameMachinesGetResponse200Type",) 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 741f85377..adf5558f2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1153.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1153.py @@ -9,14 +9,14 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class UserEmailVisibilityPatchBodyType(TypedDict): - """UserEmailVisibilityPatchBody""" +class UserCodespacesCodespaceNamePublishPostBodyType(TypedDict): + """UserCodespacesCodespaceNamePublishPostBody""" - visibility: Literal["public", "private"] + name: NotRequired[str] + private: NotRequired[bool] -__all__ = ("UserEmailVisibilityPatchBodyType",) +__all__ = ("UserCodespacesCodespaceNamePublishPostBodyType",) 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 76706bdf0..741f85377 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1154.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1154.py @@ -9,18 +9,14 @@ from __future__ import annotations -from typing import List +from typing import Literal from typing_extensions import TypedDict -class UserEmailsPostBodyOneof0Type(TypedDict): - """UserEmailsPostBodyOneof0 +class UserEmailVisibilityPatchBodyType(TypedDict): + """UserEmailVisibilityPatchBody""" - Examples: - {'emails': ['octocat@github.com', 'mona@github.com']} - """ + visibility: Literal["public", "private"] - emails: List[str] - -__all__ = ("UserEmailsPostBodyOneof0Type",) +__all__ = ("UserEmailVisibilityPatchBodyType",) 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 a7b448531..76706bdf0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1155.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1155.py @@ -13,13 +13,8 @@ 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. +class UserEmailsPostBodyOneof0Type(TypedDict): + """UserEmailsPostBodyOneof0 Examples: {'emails': ['octocat@github.com', 'mona@github.com']} @@ -28,4 +23,4 @@ class UserEmailsDeleteBodyOneof0Type(TypedDict): emails: List[str] -__all__ = ("UserEmailsDeleteBodyOneof0Type",) +__all__ = ("UserEmailsPostBodyOneof0Type",) 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 c3eff10ec..a7b448531 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1156.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1156.py @@ -9,14 +9,23 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -class UserGpgKeysPostBodyType(TypedDict): - """UserGpgKeysPostBody""" +class UserEmailsDeleteBodyOneof0Type(TypedDict): + """UserEmailsDeleteBodyOneof0 - name: NotRequired[str] - armored_public_key: str + 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']} + """ -__all__ = ("UserGpgKeysPostBodyType",) + emails: List[str] + + +__all__ = ("UserEmailsDeleteBodyOneof0Type",) 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 64abc4546..c3eff10ec 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1157.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1157.py @@ -9,17 +9,14 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0015 import InstallationType +class UserGpgKeysPostBodyType(TypedDict): + """UserGpgKeysPostBody""" -class UserInstallationsGetResponse200Type(TypedDict): - """UserInstallationsGetResponse200""" + name: NotRequired[str] + armored_public_key: str - total_count: int - installations: List[InstallationType] - -__all__ = ("UserInstallationsGetResponse200Type",) +__all__ = ("UserGpgKeysPostBodyType",) 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 a8c57fcc3..64abc4546 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1158.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1158.py @@ -10,17 +10,16 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0017 import RepositoryType +from .group_0015 import InstallationType -class UserInstallationsInstallationIdRepositoriesGetResponse200Type(TypedDict): - """UserInstallationsInstallationIdRepositoriesGetResponse200""" +class UserInstallationsGetResponse200Type(TypedDict): + """UserInstallationsGetResponse200""" total_count: int - repository_selection: NotRequired[str] - repositories: List[RepositoryType] + installations: List[InstallationType] -__all__ = ("UserInstallationsInstallationIdRepositoriesGetResponse200Type",) +__all__ = ("UserInstallationsGetResponse200Type",) 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 9f9dd053b..a8c57fcc3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1159.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1159.py @@ -9,11 +9,18 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import List +from typing_extensions import TypedDict, NotRequired +from .group_0017 import RepositoryType -class UserInteractionLimitsGetResponse200Anyof1Type(TypedDict): - """UserInteractionLimitsGetResponse200Anyof1""" +class UserInstallationsInstallationIdRepositoriesGetResponse200Type(TypedDict): + """UserInstallationsInstallationIdRepositoriesGetResponse200""" -__all__ = ("UserInteractionLimitsGetResponse200Anyof1Type",) + total_count: int + repository_selection: NotRequired[str] + repositories: List[RepositoryType] + + +__all__ = ("UserInstallationsInstallationIdRepositoriesGetResponse200Type",) 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 01b3a0e4d..9f9dd053b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1160.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1160.py @@ -9,14 +9,11 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class UserKeysPostBodyType(TypedDict): - """UserKeysPostBody""" +class UserInteractionLimitsGetResponse200Anyof1Type(TypedDict): + """UserInteractionLimitsGetResponse200Anyof1""" - title: NotRequired[str] - key: str - -__all__ = ("UserKeysPostBodyType",) +__all__ = ("UserInteractionLimitsGetResponse200Anyof1Type",) 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 718052573..01b3a0e4d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1161.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1161.py @@ -9,14 +9,14 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class UserMembershipsOrgsOrgPatchBodyType(TypedDict): - """UserMembershipsOrgsOrgPatchBody""" +class UserKeysPostBodyType(TypedDict): + """UserKeysPostBody""" - state: Literal["active"] + title: NotRequired[str] + key: str -__all__ = ("UserMembershipsOrgsOrgPatchBodyType",) +__all__ = ("UserKeysPostBodyType",) 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 4d601de18..718052573 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,14 @@ from __future__ import annotations -from typing import List, Literal -from typing_extensions import TypedDict, NotRequired +from typing import Literal +from typing_extensions import TypedDict -class UserMigrationsPostBodyType(TypedDict): - """UserMigrationsPostBody""" +class UserMembershipsOrgsOrgPatchBodyType(TypedDict): + """UserMembershipsOrgsOrgPatchBody""" - 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] + state: Literal["active"] -__all__ = ("UserMigrationsPostBodyType",) +__all__ = ("UserMembershipsOrgsOrgPatchBodyType",) 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 788630d15..4d601de18 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,22 @@ from __future__ import annotations -from typing import Union +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -class UserProjectsPostBodyType(TypedDict): - """UserProjectsPostBody""" +class UserMigrationsPostBodyType(TypedDict): + """UserMigrationsPostBody""" - name: str - body: NotRequired[Union[str, None]] + 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__ = ("UserProjectsPostBodyType",) +__all__ = ("UserMigrationsPostBodyType",) 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 7b85c56d3..788630d15 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1164.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1164.py @@ -9,38 +9,15 @@ from __future__ import annotations -from typing import Literal +from typing import Union from typing_extensions import TypedDict, NotRequired -class UserReposPostBodyType(TypedDict): - """UserReposPostBody""" +class UserProjectsPostBodyType(TypedDict): + """UserProjectsPostBody""" 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",) + body: NotRequired[Union[str, None]] + + +__all__ = ("UserProjectsPostBodyType",) 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 e15229eae..7b85c56d3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1165.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1165.py @@ -9,19 +9,38 @@ from __future__ import annotations -from typing import List -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",) +from typing import Literal +from typing_extensions import TypedDict, NotRequired + + +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_1166.py b/githubkit/versions/ghec_v2022_11_28/types/group_1166.py index ee2d5aa51..e15229eae 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1166.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1166.py @@ -13,8 +13,8 @@ from typing_extensions import TypedDict -class UserSocialAccountsDeleteBodyType(TypedDict): - """UserSocialAccountsDeleteBody +class UserSocialAccountsPostBodyType(TypedDict): + """UserSocialAccountsPostBody Examples: {'account_urls': ['https://www.linkedin.com/company/github/', @@ -24,4 +24,4 @@ class UserSocialAccountsDeleteBodyType(TypedDict): account_urls: List[str] -__all__ = ("UserSocialAccountsDeleteBodyType",) +__all__ = ("UserSocialAccountsPostBodyType",) 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 4e43f5e67..ee2d5aa51 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1167.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1167.py @@ -9,14 +9,19 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -class UserSshSigningKeysPostBodyType(TypedDict): - """UserSshSigningKeysPostBody""" +class UserSocialAccountsDeleteBodyType(TypedDict): + """UserSocialAccountsDeleteBody - title: NotRequired[str] - key: str + Examples: + {'account_urls': ['https://www.linkedin.com/company/github/', + 'https://twitter.com/github']} + """ + account_urls: List[str] -__all__ = ("UserSshSigningKeysPostBodyType",) + +__all__ = ("UserSocialAccountsDeleteBodyType",) 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 293532f7a..4e43f5e67 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1168.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1168.py @@ -9,143 +9,14 @@ from __future__ import annotations -from typing import List, Union from typing_extensions import TypedDict, NotRequired -class UsersUsernameAttestationsSubjectDigestGetResponse200Type(TypedDict): - """UsersUsernameAttestationsSubjectDigestGetResponse200""" +class UserSshSigningKeysPostBodyType(TypedDict): + """UserSshSigningKeysPostBody""" - attestations: NotRequired[ - List[ - UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType - ] - ] + title: NotRequired[str] + key: str -class UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType( - TypedDict -): - """UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems""" - - bundle: NotRequired[SigstoreBundle0Type] - repository_id: NotRequired[int] - - -class SigstoreBundle0Type(TypedDict): - """Sigstore Bundle v0.1 - - Sigstore Bundle v0.1 - """ - - media_type: NotRequired[str] - verification_material: NotRequired[SigstoreBundle0PropVerificationMaterialType] - dsse_envelope: NotRequired[SigstoreBundle0PropDsseEnvelopeType] - - -class SigstoreBundle0PropDsseEnvelopeType(TypedDict): - """SigstoreBundle0PropDsseEnvelope""" - - payload: NotRequired[str] - payload_type: NotRequired[str] - signatures: NotRequired[ - List[SigstoreBundle0PropDsseEnvelopePropSignaturesItemsType] - ] - - -class SigstoreBundle0PropDsseEnvelopePropSignaturesItemsType(TypedDict): - """SigstoreBundle0PropDsseEnvelopePropSignaturesItems""" - - sig: NotRequired[str] - keyid: NotRequired[str] - - -class SigstoreBundle0PropVerificationMaterialType(TypedDict): - """SigstoreBundle0PropVerificationMaterial""" - - x_509_certificate_chain: NotRequired[ - SigstoreBundle0PropVerificationMaterialPropX509CertificateChainType - ] - tlog_entries: NotRequired[ - List[SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsType] - ] - timestamp_verification_data: NotRequired[Union[str, None]] - - -class SigstoreBundle0PropVerificationMaterialPropX509CertificateChainType(TypedDict): - """SigstoreBundle0PropVerificationMaterialPropX509CertificateChain""" - - certificates: NotRequired[ - List[ - SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItemsType - ] - ] - - -class SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItemsType( - TypedDict -): - """SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesI - tems - """ - - raw_bytes: NotRequired[str] - - -class SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsType(TypedDict): - """SigstoreBundle0PropVerificationMaterialPropTlogEntriesItems""" - - log_index: NotRequired[str] - log_id: NotRequired[ - SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogIdType - ] - kind_version: NotRequired[ - SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersionType - ] - integrated_time: NotRequired[str] - inclusion_promise: NotRequired[ - SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromiseType - ] - inclusion_proof: NotRequired[Union[str, None]] - canonicalized_body: NotRequired[str] - - -class SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogIdType( - TypedDict -): - """SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogId""" - - key_id: NotRequired[str] - - -class SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersionType( - TypedDict -): - """SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersion""" - - kind: NotRequired[str] - version: NotRequired[str] - - -class SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromiseType( - TypedDict -): - """SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromise""" - - signed_entry_timestamp: NotRequired[str] - - -__all__ = ( - "UsersUsernameAttestationsSubjectDigestGetResponse200Type", - "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType", - "SigstoreBundle0Type", - "SigstoreBundle0PropDsseEnvelopeType", - "SigstoreBundle0PropDsseEnvelopePropSignaturesItemsType", - "SigstoreBundle0PropVerificationMaterialType", - "SigstoreBundle0PropVerificationMaterialPropX509CertificateChainType", - "SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItemsType", - "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsType", - "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogIdType", - "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersionType", - "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromiseType", -) +__all__ = ("UserSshSigningKeysPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1169.py b/githubkit/versions/ghec_v2022_11_28/types/group_1169.py new file mode 100644 index 000000000..293532f7a --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1169.py @@ -0,0 +1,151 @@ +"""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 List, Union +from typing_extensions import TypedDict, NotRequired + + +class UsersUsernameAttestationsSubjectDigestGetResponse200Type(TypedDict): + """UsersUsernameAttestationsSubjectDigestGetResponse200""" + + attestations: NotRequired[ + List[ + UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType + ] + ] + + +class UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType( + TypedDict +): + """UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems""" + + bundle: NotRequired[SigstoreBundle0Type] + repository_id: NotRequired[int] + + +class SigstoreBundle0Type(TypedDict): + """Sigstore Bundle v0.1 + + Sigstore Bundle v0.1 + """ + + media_type: NotRequired[str] + verification_material: NotRequired[SigstoreBundle0PropVerificationMaterialType] + dsse_envelope: NotRequired[SigstoreBundle0PropDsseEnvelopeType] + + +class SigstoreBundle0PropDsseEnvelopeType(TypedDict): + """SigstoreBundle0PropDsseEnvelope""" + + payload: NotRequired[str] + payload_type: NotRequired[str] + signatures: NotRequired[ + List[SigstoreBundle0PropDsseEnvelopePropSignaturesItemsType] + ] + + +class SigstoreBundle0PropDsseEnvelopePropSignaturesItemsType(TypedDict): + """SigstoreBundle0PropDsseEnvelopePropSignaturesItems""" + + sig: NotRequired[str] + keyid: NotRequired[str] + + +class SigstoreBundle0PropVerificationMaterialType(TypedDict): + """SigstoreBundle0PropVerificationMaterial""" + + x_509_certificate_chain: NotRequired[ + SigstoreBundle0PropVerificationMaterialPropX509CertificateChainType + ] + tlog_entries: NotRequired[ + List[SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsType] + ] + timestamp_verification_data: NotRequired[Union[str, None]] + + +class SigstoreBundle0PropVerificationMaterialPropX509CertificateChainType(TypedDict): + """SigstoreBundle0PropVerificationMaterialPropX509CertificateChain""" + + certificates: NotRequired[ + List[ + SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItemsType + ] + ] + + +class SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItemsType( + TypedDict +): + """SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesI + tems + """ + + raw_bytes: NotRequired[str] + + +class SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsType(TypedDict): + """SigstoreBundle0PropVerificationMaterialPropTlogEntriesItems""" + + log_index: NotRequired[str] + log_id: NotRequired[ + SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogIdType + ] + kind_version: NotRequired[ + SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersionType + ] + integrated_time: NotRequired[str] + inclusion_promise: NotRequired[ + SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromiseType + ] + inclusion_proof: NotRequired[Union[str, None]] + canonicalized_body: NotRequired[str] + + +class SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogIdType( + TypedDict +): + """SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogId""" + + key_id: NotRequired[str] + + +class SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersionType( + TypedDict +): + """SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersion""" + + kind: NotRequired[str] + version: NotRequired[str] + + +class SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromiseType( + TypedDict +): + """SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromise""" + + signed_entry_timestamp: NotRequired[str] + + +__all__ = ( + "UsersUsernameAttestationsSubjectDigestGetResponse200Type", + "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType", + "SigstoreBundle0Type", + "SigstoreBundle0PropDsseEnvelopeType", + "SigstoreBundle0PropDsseEnvelopePropSignaturesItemsType", + "SigstoreBundle0PropVerificationMaterialType", + "SigstoreBundle0PropVerificationMaterialPropX509CertificateChainType", + "SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItemsType", + "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsType", + "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogIdType", + "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersionType", + "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromiseType", +) diff --git a/githubkit/versions/latest/models.py b/githubkit/versions/latest/models.py index ed6e19930..1fe6c5bc6 100644 --- a/githubkit/versions/latest/models.py +++ b/githubkit/versions/latest/models.py @@ -4586,6 +4586,9 @@ from githubkit.versions.v2022_11_28.models import ( OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200 as OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200, ) + from githubkit.versions.v2022_11_28.models import ( + OrgsOrgCodeSecurityConfigurationsDetachDeleteBody as OrgsOrgCodeSecurityConfigurationsDetachDeleteBody, + ) from githubkit.versions.v2022_11_28.models import ( OrgsOrgCopilotBillingSelectedTeamsPostResponse201 as OrgsOrgCopilotBillingSelectedTeamsPostResponse201, ) @@ -12218,6 +12221,7 @@ "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial", "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope", "OrgsOrgCodeSecurityConfigurationsPostBody", + "OrgsOrgCodeSecurityConfigurationsDetachDeleteBody", "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody", "OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody", "OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody", diff --git a/githubkit/versions/latest/types.py b/githubkit/versions/latest/types.py index 8109fd9a2..6f0adc5df 100644 --- a/githubkit/versions/latest/types.py +++ b/githubkit/versions/latest/types.py @@ -4754,6 +4754,9 @@ from githubkit.versions.v2022_11_28.types import ( OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200Type as OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200Type, ) + from githubkit.versions.v2022_11_28.types import ( + OrgsOrgCodeSecurityConfigurationsDetachDeleteBodyType as OrgsOrgCodeSecurityConfigurationsDetachDeleteBodyType, + ) from githubkit.versions.v2022_11_28.types import ( OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type as OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type, ) @@ -12386,6 +12389,7 @@ "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType", "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType", "OrgsOrgCodeSecurityConfigurationsPostBodyType", + "OrgsOrgCodeSecurityConfigurationsDetachDeleteBodyType", "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyType", "OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBodyType", "OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType", diff --git a/githubkit/versions/v2022_11_28/models/__init__.py b/githubkit/versions/v2022_11_28/models/__init__.py index 016a578b5..60442d1f4 100644 --- a/githubkit/versions/v2022_11_28/models/__init__.py +++ b/githubkit/versions/v2022_11_28/models/__init__.py @@ -53,7 +53,7 @@ from .group_0245 import Manifest as Manifest from .group_0246 import Snapshot as Snapshot from .group_0294 import Language as Language - from .group_0902 import Workflow as Workflow + from .group_0903 import Workflow as Workflow from .group_0009 import ScimError as ScimError from .group_0022 import Classroom as Classroom from .group_0037 import Milestone as Milestone @@ -150,7 +150,7 @@ from .group_0636 import WebhookPublic as WebhookPublic from .group_0727 import WebhookStatus as WebhookStatus from .group_0764 import GistsPostBody as GistsPostBody - from .group_1067 import UserPatchBody as UserPatchBody + from .group_1068 import UserPatchBody as UserPatchBody from .group_0002 import GlobalAdvisory as GlobalAdvisory from .group_0014 import AppPermissions as AppPermissions from .group_0028 import EnterpriseTeam as EnterpriseTeam @@ -190,7 +190,7 @@ from .group_0392 import WebhooksChanges as WebhooksChanges from .group_0405 import WebhooksProject as WebhooksProject from .group_0416 import WebhooksRelease as WebhooksRelease - from .group_1093 import SigstoreBundle0 as SigstoreBundle0 + from .group_1094 import SigstoreBundle0 as SigstoreBundle0 from .group_0008 import HookDeliveryItem as HookDeliveryItem from .group_0033 import SimpleRepository as SimpleRepository from .group_0041 import EventPropPayload as EventPropPayload @@ -225,9 +225,9 @@ from .group_0597 import WebhookPageBuild as WebhookPageBuild from .group_0771 import MarkdownPostBody as MarkdownPostBody from .group_0775 import OrgsOrgPatchBody as OrgsOrgPatchBody - from .group_0954 import DependabotSecret as DependabotSecret - from .group_1071 import CodespacesSecret as CodespacesSecret - from .group_1085 import UserKeysPostBody as UserKeysPostBody + from .group_0955 import DependabotSecret as DependabotSecret + from .group_1072 import CodespacesSecret as CodespacesSecret + from .group_1086 import UserKeysPostBody as UserKeysPostBody from .group_0018 import InstallationToken as InstallationToken from .group_0043 import BaseGistPropFiles as BaseGistPropFiles from .group_0048 import GitignoreTemplate as GitignoreTemplate @@ -252,7 +252,7 @@ from .group_0380 import WebhooksDeployKey as WebhooksDeployKey from .group_0394 import WebhooksMilestone as WebhooksMilestone from .group_0736 import WebhookTeamEdited as WebhookTeamEdited - from .group_1089 import UserReposPostBody as UserReposPostBody + from .group_1090 import UserReposPostBody as UserReposPostBody from .group_0019 import ScopedInstallation as ScopedInstallation from .group_0027 import OrganizationSimple as OrganizationSimple from .group_0028 import CopilotSeatDetails as CopilotSeatDetails @@ -319,8 +319,8 @@ from .group_0571 import WebhookMemberEdited as WebhookMemberEdited from .group_0603 import WebhookPingPropHook as WebhookPingPropHook from .group_0738 import WebhookWatchStarted as WebhookWatchStarted - from .group_0806 import CodespacesOrgSecret as CodespacesOrgSecret - from .group_1081 import UserGpgKeysPostBody as UserGpgKeysPostBody + from .group_0807 import CodespacesOrgSecret as CodespacesOrgSecret + from .group_1082 import UserGpgKeysPostBody as UserGpgKeysPostBody from .group_0020 import AuthorizationPropApp as AuthorizationPropApp from .group_0028 import OrganizationPropPlan as OrganizationPropPlan from .group_0039 import IssuePropPullRequest as IssuePropPullRequest @@ -359,12 +359,12 @@ from .group_0761 import EmojisGetResponse200 as EmojisGetResponse200 from .group_0766 import GistsGistIdPatchBody as GistsGistIdPatchBody from .group_0772 import NotificationsPutBody as NotificationsPutBody - from .group_0823 import OrgsOrgHooksPostBody as OrgsOrgHooksPostBody - from .group_0845 import OrgsOrgReposPostBody as OrgsOrgReposPostBody - from .group_0848 import OrgsOrgTeamsPostBody as OrgsOrgTeamsPostBody - from .group_0944 import RepoCodespacesSecret as RepoCodespacesSecret - from .group_1056 import TeamsTeamIdPatchBody as TeamsTeamIdPatchBody - from .group_1088 import UserProjectsPostBody as UserProjectsPostBody + from .group_0824 import OrgsOrgHooksPostBody as OrgsOrgHooksPostBody + from .group_0846 import OrgsOrgReposPostBody as OrgsOrgReposPostBody + from .group_0849 import OrgsOrgTeamsPostBody as OrgsOrgTeamsPostBody + from .group_0945 import RepoCodespacesSecret as RepoCodespacesSecret + from .group_1057 import TeamsTeamIdPatchBody as TeamsTeamIdPatchBody + from .group_1089 import UserProjectsPostBody as UserProjectsPostBody from .group_0004 import ValidationErrorSimple as ValidationErrorSimple from .group_0114 import RepositoryRuleOneof14 as RepositoryRuleOneof14 from .group_0114 import RepositoryRuleOneof16 as RepositoryRuleOneof16 @@ -444,8 +444,8 @@ from .group_0708 import SecretScanningLocation as SecretScanningLocation from .group_0753 import AppHookConfigPatchBody as AppHookConfigPatchBody from .group_0764 import GistsPostBodyPropFiles as GistsPostBodyPropFiles - from .group_0962 import DeploymentBranchPolicy as DeploymentBranchPolicy - from .group_1087 import UserMigrationsPostBody as UserMigrationsPostBody + from .group_0963 import DeploymentBranchPolicy as DeploymentBranchPolicy + from .group_1088 import UserMigrationsPostBody as UserMigrationsPostBody from .group_0011 import HookDeliveryPropRequest as HookDeliveryPropRequest from .group_0135 import RepositoryRuleWorkflows as RepositoryRuleWorkflows from .group_0161 import ArtifactPropWorkflowRun as ArtifactPropWorkflowRun @@ -479,9 +479,9 @@ from .group_0689 import WebhookRepositoryImport as WebhookRepositoryImport from .group_0727 import WebhookStatusPropCommit as WebhookStatusPropCommit from .group_0739 import WebhookWorkflowDispatch as WebhookWorkflowDispatch - from .group_0841 import OrgsOrgProjectsPostBody as OrgsOrgProjectsPostBody - from .group_0846 import OrgsOrgRulesetsPostBody as OrgsOrgRulesetsPostBody - from .group_0879 import ReposOwnerRepoPatchBody as ReposOwnerRepoPatchBody + from .group_0842 import OrgsOrgProjectsPostBody as OrgsOrgProjectsPostBody + from .group_0847 import OrgsOrgRulesetsPostBody as OrgsOrgRulesetsPostBody + from .group_0880 import ReposOwnerRepoPatchBody as ReposOwnerRepoPatchBody from .group_0002 import VulnerabilityPropPackage as VulnerabilityPropPackage from .group_0011 import HookDeliveryPropResponse as HookDeliveryPropResponse from .group_0024 import ClassroomAssignmentGrade as ClassroomAssignmentGrade @@ -523,7 +523,7 @@ from .group_0692 import WebhookRepositoryRenamed as WebhookRepositoryRenamed from .group_0721 import WebhookSponsorshipEdited as WebhookSponsorshipEdited from .group_0746 import WebhookWorkflowJobQueued as WebhookWorkflowJobQueued - from .group_1079 import UserEmailsPostBodyOneof0 as UserEmailsPostBodyOneof0 + from .group_1080 import UserEmailsPostBodyOneof0 as UserEmailsPostBodyOneof0 from .group_0017 import RepositoryPropPermissions as RepositoryPropPermissions from .group_0021 import SimpleClassroomRepository as SimpleClassroomRepository from .group_0023 import SimpleClassroomAssignment as SimpleClassroomAssignment @@ -568,7 +568,7 @@ from .group_0747 import WebhookWorkflowJobWaiting as WebhookWorkflowJobWaiting from .group_0765 import GistsGistIdGetResponse403 as GistsGistIdGetResponse403 from .group_0787 import OrganizationActionsSecret as OrganizationActionsSecret - from .group_0831 import OrgsOrgMigrationsPostBody as OrgsOrgMigrationsPostBody + from .group_0832 import OrgsOrgMigrationsPostBody as OrgsOrgMigrationsPostBody from .group_0005 import IntegrationPropPermissions as IntegrationPropPermissions from .group_0039 import IssuePropLabelsItemsOneof1 as IssuePropLabelsItemsOneof1 from .group_0047 import GistCommitPropChangeStatus as GistCommitPropChangeStatus @@ -626,12 +626,12 @@ from .group_0651 import WebhookPullRequestReopened as WebhookPullRequestReopened from .group_0667 import WebhookPullRequestUnlocked as WebhookPullRequestUnlocked from .group_0716 import WebhookSecurityAndAnalysis as WebhookSecurityAndAnalysis - from .group_0828 import OrgsOrgInvitationsPostBody as OrgsOrgInvitationsPostBody - from .group_0874 import ProjectsProjectIdPatchBody as ProjectsProjectIdPatchBody - from .group_1001 import ReposOwnerRepoKeysPostBody as ReposOwnerRepoKeysPostBody - from .group_1080 import UserEmailsDeleteBodyOneof0 as UserEmailsDeleteBodyOneof0 - from .group_1090 import UserSocialAccountsPostBody as UserSocialAccountsPostBody - from .group_1092 import UserSshSigningKeysPostBody as UserSshSigningKeysPostBody + from .group_0829 import OrgsOrgInvitationsPostBody as OrgsOrgInvitationsPostBody + from .group_0875 import ProjectsProjectIdPatchBody as ProjectsProjectIdPatchBody + from .group_1002 import ReposOwnerRepoKeysPostBody as ReposOwnerRepoKeysPostBody + from .group_1081 import UserEmailsDeleteBodyOneof0 as UserEmailsDeleteBodyOneof0 + from .group_1091 import UserSocialAccountsPostBody as UserSocialAccountsPostBody + from .group_1093 import UserSshSigningKeysPostBody as UserSshSigningKeysPostBody from .group_0002 import GlobalAdvisoryPropCwesItems as GlobalAdvisoryPropCwesItems from .group_0022 import SimpleClassroomOrganization as SimpleClassroomOrganization from .group_0023 import ClassroomAcceptedAssignment as ClassroomAcceptedAssignment @@ -677,12 +677,12 @@ from .group_0767 import GistsGistIdCommentsPostBody as GistsGistIdCommentsPostBody from .group_0773 import NotificationsPutResponse202 as NotificationsPutResponse202 from .group_0791 import OrganizationActionsVariable as OrganizationActionsVariable - from .group_0824 import OrgsOrgHooksHookIdPatchBody as OrgsOrgHooksHookIdPatchBody - from .group_0970 import ReposOwnerRepoForksPostBody as ReposOwnerRepoForksPostBody - from .group_0977 import ReposOwnerRepoHooksPostBody as ReposOwnerRepoHooksPostBody - from .group_0980 import ReposOwnerRepoImportPutBody as ReposOwnerRepoImportPutBody - from .group_1023 import ReposOwnerRepoPullsPostBody as ReposOwnerRepoPullsPostBody - from .group_1053 import ReposOwnerRepoTopicsPutBody as ReposOwnerRepoTopicsPutBody + from .group_0825 import OrgsOrgHooksHookIdPatchBody as OrgsOrgHooksHookIdPatchBody + from .group_0971 import ReposOwnerRepoForksPostBody as ReposOwnerRepoForksPostBody + from .group_0978 import ReposOwnerRepoHooksPostBody as ReposOwnerRepoHooksPostBody + from .group_0981 import ReposOwnerRepoImportPutBody as ReposOwnerRepoImportPutBody + from .group_1024 import ReposOwnerRepoPullsPostBody as ReposOwnerRepoPullsPostBody + from .group_1054 import ReposOwnerRepoTopicsPutBody as ReposOwnerRepoTopicsPutBody from .group_0055 import MinimalRepositoryPropLicense as MinimalRepositoryPropLicense from .group_0070 import CodeScanningAlertRuleSummary as CodeScanningAlertRuleSummary from .group_0087 import OrgMembershipPropPermissions as OrgMembershipPropPermissions @@ -742,15 +742,15 @@ from .group_0736 import WebhookTeamEditedPropChanges as WebhookTeamEditedPropChanges from .group_0743 import WebhookWorkflowJobInProgress as WebhookWorkflowJobInProgress from .group_0749 import WebhookWorkflowRunInProgress as WebhookWorkflowRunInProgress - from .group_0819 import OrganizationDependabotSecret as OrganizationDependabotSecret - from .group_0986 import ReposOwnerRepoIssuesPostBody as ReposOwnerRepoIssuesPostBody - from .group_1002 import ReposOwnerRepoLabelsPostBody as ReposOwnerRepoLabelsPostBody - from .group_1005 import ReposOwnerRepoMergesPostBody as ReposOwnerRepoMergesPostBody - from .group_1068 import UserCodespacesGetResponse200 as UserCodespacesGetResponse200 - from .group_1069 import UserCodespacesPostBodyOneof0 as UserCodespacesPostBodyOneof0 - from .group_1070 import UserCodespacesPostBodyOneof1 as UserCodespacesPostBodyOneof1 - from .group_1078 import UserEmailVisibilityPatchBody as UserEmailVisibilityPatchBody - from .group_1091 import UserSocialAccountsDeleteBody as UserSocialAccountsDeleteBody + from .group_0820 import OrganizationDependabotSecret as OrganizationDependabotSecret + from .group_0987 import ReposOwnerRepoIssuesPostBody as ReposOwnerRepoIssuesPostBody + from .group_1003 import ReposOwnerRepoLabelsPostBody as ReposOwnerRepoLabelsPostBody + from .group_1006 import ReposOwnerRepoMergesPostBody as ReposOwnerRepoMergesPostBody + from .group_1069 import UserCodespacesGetResponse200 as UserCodespacesGetResponse200 + from .group_1070 import UserCodespacesPostBodyOneof0 as UserCodespacesPostBodyOneof0 + from .group_1071 import UserCodespacesPostBodyOneof1 as UserCodespacesPostBodyOneof1 + from .group_1079 import UserEmailVisibilityPatchBody as UserEmailVisibilityPatchBody + from .group_1092 import UserSocialAccountsDeleteBody as UserSocialAccountsDeleteBody from .group_0034 import ( DependabotAlertWithRepository as DependabotAlertWithRepository, ) @@ -862,16 +862,16 @@ from .group_0776 import ( ActionsCacheUsageByRepository as ActionsCacheUsageByRepository, ) - from .group_0849 import ( + from .group_0850 import ( OrgsOrgTeamsTeamSlugPatchBody as OrgsOrgTeamsTeamSlugPatchBody, ) - from .group_0973 import ( + from .group_0974 import ( ReposOwnerRepoGitRefsPostBody as ReposOwnerRepoGitRefsPostBody, ) - from .group_0975 import ( + from .group_0976 import ( ReposOwnerRepoGitTagsPostBody as ReposOwnerRepoGitTagsPostBody, ) - from .group_0981 import ( + from .group_0982 import ( ReposOwnerRepoImportPatchBody as ReposOwnerRepoImportPatchBody, ) from .group_0002 import ( @@ -1003,31 +1003,31 @@ from .group_0727 import ( WebhookStatusPropBranchesItems as WebhookStatusPropBranchesItems, ) - from .group_0803 import ( + from .group_0804 import ( OrgsOrgCodespacesAccessPutBody as OrgsOrgCodespacesAccessPutBody, ) - from .group_0823 import ( + from .group_0824 import ( OrgsOrgHooksPostBodyPropConfig as OrgsOrgHooksPostBodyPropConfig, ) - from .group_0971 import ( + from .group_0972 import ( ReposOwnerRepoGitBlobsPostBody as ReposOwnerRepoGitBlobsPostBody, ) - from .group_0976 import ( + from .group_0977 import ( ReposOwnerRepoGitTreesPostBody as ReposOwnerRepoGitTreesPostBody, ) - from .group_1021 import ( + from .group_1022 import ( ReposOwnerRepoProjectsPostBody as ReposOwnerRepoProjectsPostBody, ) - from .group_1042 import ( + from .group_1043 import ( ReposOwnerRepoReleasesPostBody as ReposOwnerRepoReleasesPostBody, ) - from .group_1047 import ( + from .group_1048 import ( ReposOwnerRepoRulesetsPostBody as ReposOwnerRepoRulesetsPostBody, ) - from .group_1054 import ( + from .group_1055 import ( ReposOwnerRepoTransferPostBody as ReposOwnerRepoTransferPostBody, ) - from .group_1057 import ( + from .group_1058 import ( TeamsTeamIdDiscussionsPostBody as TeamsTeamIdDiscussionsPostBody, ) from .group_0032 import ( @@ -1114,25 +1114,25 @@ from .group_0792 import ( OrgsOrgActionsVariablesPostBody as OrgsOrgActionsVariablesPostBody, ) - from .group_0802 import ( + from .group_0803 import ( OrgsOrgCodespacesGetResponse200 as OrgsOrgCodespacesGetResponse200, ) - from .group_0847 import ( + from .group_0848 import ( OrgsOrgRulesetsRulesetIdPutBody as OrgsOrgRulesetsRulesetIdPutBody, ) - from .group_0878 import ( + from .group_0879 import ( ReposOwnerRepoDeleteResponse403 as ReposOwnerRepoDeleteResponse403, ) - from .group_0908 import ( + from .group_0909 import ( ReposOwnerRepoAutolinksPostBody as ReposOwnerRepoAutolinksPostBody, ) - from .group_1082 import ( + from .group_1083 import ( UserInstallationsGetResponse200 as UserInstallationsGetResponse200, ) - from .group_1086 import ( + from .group_1087 import ( UserMembershipsOrgsOrgPatchBody as UserMembershipsOrgsOrgPatchBody, ) - from .group_1093 import ( + from .group_1094 import ( SigstoreBundle0PropDsseEnvelope as SigstoreBundle0PropDsseEnvelope, ) from .group_0055 import ( @@ -1255,52 +1255,52 @@ from .group_0777 import ( OrgsOrgActionsPermissionsPutBody as OrgsOrgActionsPermissionsPutBody, ) - from .group_0832 import ( + from .group_0833 import ( OrgsOrgOrganizationRolesPostBody as OrgsOrgOrganizationRolesPostBody, ) - from .group_0842 import ( + from .group_0843 import ( OrgsOrgPropertiesSchemaPatchBody as OrgsOrgPropertiesSchemaPatchBody, ) - from .group_0844 import ( + from .group_0845 import ( OrgsOrgPropertiesValuesPatchBody as OrgsOrgPropertiesValuesPatchBody, ) - from .group_0867 import ( + from .group_0868 import ( ProjectsColumnsColumnIdPatchBody as ProjectsColumnsColumnIdPatchBody, ) - from .group_0877 import ( + from .group_0878 import ( ProjectsProjectIdColumnsPostBody as ProjectsProjectIdColumnsPostBody, ) - from .group_0940 import ( + from .group_0941 import ( ReposOwnerRepoCodespacesPostBody as ReposOwnerRepoCodespacesPostBody, ) - from .group_0960 import ( + from .group_0961 import ( ReposOwnerRepoDispatchesPostBody as ReposOwnerRepoDispatchesPostBody, ) - from .group_0972 import ( + from .group_0973 import ( ReposOwnerRepoGitCommitsPostBody as ReposOwnerRepoGitCommitsPostBody, ) - from .group_0983 import ( + from .group_0984 import ( ReposOwnerRepoImportLfsPatchBody as ReposOwnerRepoImportLfsPatchBody, ) - from .group_1006 import ( + from .group_1007 import ( ReposOwnerRepoMilestonesPostBody as ReposOwnerRepoMilestonesPostBody, ) - from .group_1011 import ( + from .group_1012 import ( ReposOwnerRepoPagesPutBodyAnyof0 as ReposOwnerRepoPagesPutBodyAnyof0, ) - from .group_1012 import ( + from .group_1013 import ( ReposOwnerRepoPagesPutBodyAnyof1 as ReposOwnerRepoPagesPutBodyAnyof1, ) - from .group_1013 import ( + from .group_1014 import ( ReposOwnerRepoPagesPutBodyAnyof2 as ReposOwnerRepoPagesPutBodyAnyof2, ) - from .group_1014 import ( + from .group_1015 import ( ReposOwnerRepoPagesPutBodyAnyof3 as ReposOwnerRepoPagesPutBodyAnyof3, ) - from .group_1015 import ( + from .group_1016 import ( ReposOwnerRepoPagesPutBodyAnyof4 as ReposOwnerRepoPagesPutBodyAnyof4, ) - from .group_1066 import ( + from .group_1067 import ( TeamsTeamIdReposOwnerRepoPutBody as TeamsTeamIdReposOwnerRepoPutBody, ) from .group_0053 import ( @@ -1393,40 +1393,40 @@ from .group_0757 import ( ApplicationsClientIdTokenPostBody as ApplicationsClientIdTokenPostBody, ) - from .group_0825 import ( + from .group_0826 import ( OrgsOrgHooksHookIdConfigPatchBody as OrgsOrgHooksHookIdConfigPatchBody, ) - from .group_0830 import ( + from .group_0831 import ( OrgsOrgMembershipsUsernamePutBody as OrgsOrgMembershipsUsernamePutBody, ) - from .group_0875 import ( + from .group_0876 import ( ProjectsProjectIdPatchResponse403 as ProjectsProjectIdPatchResponse403, ) - from .group_0931 import ( + from .group_0932 import ( ReposOwnerRepoCheckSuitesPostBody as ReposOwnerRepoCheckSuitesPostBody, ) - from .group_0951 import ( + from .group_0952 import ( ReposOwnerRepoContentsPathPutBody as ReposOwnerRepoContentsPathPutBody, ) - from .group_0957 import ( + from .group_0958 import ( ReposOwnerRepoDeploymentsPostBody as ReposOwnerRepoDeploymentsPostBody, ) - from .group_0974 import ( + from .group_0975 import ( ReposOwnerRepoGitRefsRefPatchBody as ReposOwnerRepoGitRefsRefPatchBody, ) - from .group_1003 import ( + from .group_1004 import ( ReposOwnerRepoLabelsNamePatchBody as ReposOwnerRepoLabelsNamePatchBody, ) - from .group_1017 import ( + from .group_1018 import ( ReposOwnerRepoPagesPostBodyAnyof0 as ReposOwnerRepoPagesPostBodyAnyof0, ) - from .group_1018 import ( + from .group_1019 import ( ReposOwnerRepoPagesPostBodyAnyof1 as ReposOwnerRepoPagesPostBodyAnyof1, ) - from .group_1050 import ( + from .group_1051 import ( ReposOwnerRepoStatusesShaPostBody as ReposOwnerRepoStatusesShaPostBody, ) - from .group_1051 import ( + from .group_1052 import ( ReposOwnerRepoSubscriptionPutBody as ReposOwnerRepoSubscriptionPutBody, ) from .group_0002 import ( @@ -1570,19 +1570,19 @@ from .group_0765 import ( GistsGistIdGetResponse403PropBlock as GistsGistIdGetResponse403PropBlock, ) - from .group_0826 import ( + from .group_0827 import ( OrgsOrgInstallationsGetResponse200 as OrgsOrgInstallationsGetResponse200, ) - from .group_0873 import ( + from .group_0874 import ( ProjectsProjectIdDeleteResponse403 as ProjectsProjectIdDeleteResponse403, ) - from .group_0905 import ( + from .group_0906 import ( ReposOwnerRepoAttestationsPostBody as ReposOwnerRepoAttestationsPostBody, ) - from .group_0978 import ( + from .group_0979 import ( ReposOwnerRepoHooksHookIdPatchBody as ReposOwnerRepoHooksHookIdPatchBody, ) - from .group_1008 import ( + from .group_1009 import ( ReposOwnerRepoNotificationsPutBody as ReposOwnerRepoNotificationsPutBody, ) from .group_0011 import ( @@ -1711,19 +1711,19 @@ from .group_0787 import ( OrgsOrgActionsSecretsGetResponse200 as OrgsOrgActionsSecretsGetResponse200, ) - from .group_0839 import ( + from .group_0840 import ( OrgsOrgPersonalAccessTokensPostBody as OrgsOrgPersonalAccessTokensPostBody, ) - from .group_0862 import ( + from .group_0863 import ( ProjectsColumnsCardsCardIdPatchBody as ProjectsColumnsCardsCardIdPatchBody, ) - from .group_1004 import ( + from .group_1005 import ( ReposOwnerRepoMergeUpstreamPostBody as ReposOwnerRepoMergeUpstreamPostBody, ) - from .group_1064 import ( + from .group_1065 import ( TeamsTeamIdProjectsProjectIdPutBody as TeamsTeamIdProjectsProjectIdPutBody, ) - from .group_1071 import ( + from .group_1072 import ( UserCodespacesSecretsGetResponse200 as UserCodespacesSecretsGetResponse200, ) from .group_0031 import ( @@ -1843,16 +1843,16 @@ from .group_0793 import ( OrgsOrgActionsVariablesNamePatchBody as OrgsOrgActionsVariablesNamePatchBody, ) - from .group_0871 import ( + from .group_0872 import ( ProjectsColumnsColumnIdMovesPostBody as ProjectsColumnsColumnIdMovesPostBody, ) - from .group_0952 import ( + from .group_0953 import ( ReposOwnerRepoContentsPathDeleteBody as ReposOwnerRepoContentsPathDeleteBody, ) - from .group_1052 import ( + from .group_1053 import ( ReposOwnerRepoTagsProtectionPostBody as ReposOwnerRepoTagsProtectionPostBody, ) - from .group_1075 import ( + from .group_1076 import ( UserCodespacesCodespaceNamePatchBody as UserCodespacesCodespaceNamePatchBody, ) from .group_0029 import ( @@ -1951,22 +1951,22 @@ from .group_0791 import ( OrgsOrgActionsVariablesGetResponse200 as OrgsOrgActionsVariablesGetResponse200, ) - from .group_0824 import ( + from .group_0825 import ( OrgsOrgHooksHookIdPatchBodyPropConfig as OrgsOrgHooksHookIdPatchBodyPropConfig, ) - from .group_0926 import ( + from .group_0927 import ( ReposOwnerRepoCheckRunsPostBodyOneof0 as ReposOwnerRepoCheckRunsPostBodyOneof0, ) - from .group_0927 import ( + from .group_0928 import ( ReposOwnerRepoCheckRunsPostBodyOneof1 as ReposOwnerRepoCheckRunsPostBodyOneof1, ) - from .group_0977 import ( + from .group_0978 import ( ReposOwnerRepoHooksPostBodyPropConfig as ReposOwnerRepoHooksPostBodyPropConfig, ) - from .group_1016 import ( + from .group_1017 import ( ReposOwnerRepoPagesPostBodyPropSource as ReposOwnerRepoPagesPostBodyPropSource, ) - from .group_1063 import ( + from .group_1064 import ( TeamsTeamIdMembershipsUsernamePutBody as TeamsTeamIdMembershipsUsernamePutBody, ) from .group_0075 import ( @@ -2110,28 +2110,28 @@ from .group_0788 import ( OrgsOrgActionsSecretsSecretNamePutBody as OrgsOrgActionsSecretsSecretNamePutBody, ) - from .group_0806 import ( + from .group_0807 import ( OrgsOrgCodespacesSecretsGetResponse200 as OrgsOrgCodespacesSecretsGetResponse200, ) - from .group_0819 import ( + from .group_0820 import ( OrgsOrgDependabotSecretsGetResponse200 as OrgsOrgDependabotSecretsGetResponse200, ) - from .group_0900 import ( + from .group_0901 import ( ReposOwnerRepoActionsVariablesPostBody as ReposOwnerRepoActionsVariablesPostBody, ) - from .group_0939 import ( + from .group_0940 import ( ReposOwnerRepoCodespacesGetResponse200 as ReposOwnerRepoCodespacesGetResponse200, ) - from .group_1019 import ( + from .group_1020 import ( ReposOwnerRepoPagesDeploymentsPostBody as ReposOwnerRepoPagesDeploymentsPostBody, ) - from .group_1026 import ( + from .group_1027 import ( ReposOwnerRepoPullsPullNumberPatchBody as ReposOwnerRepoPullsPullNumberPatchBody, ) - from .group_1048 import ( + from .group_1049 import ( ReposOwnerRepoRulesetsRulesetIdPutBody as ReposOwnerRepoRulesetsRulesetIdPutBody, ) - from .group_1072 import ( + from .group_1073 import ( UserCodespacesSecretsSecretNamePutBody as UserCodespacesSecretsSecretNamePutBody, ) from .group_0032 import ( @@ -2212,28 +2212,28 @@ from .group_0760 import ( ApplicationsClientIdTokenScopedPostBody as ApplicationsClientIdTokenScopedPostBody, ) - from .group_0833 import ( + from .group_0834 import ( OrgsOrgOrganizationRolesRoleIdPatchBody as OrgsOrgOrganizationRolesRoleIdPatchBody, ) - from .group_0850 import ( + from .group_0851 import ( OrgsOrgTeamsTeamSlugDiscussionsPostBody as OrgsOrgTeamsTeamSlugDiscussionsPostBody, ) - from .group_0863 import ( + from .group_0864 import ( ProjectsColumnsCardsCardIdMovesPostBody as ProjectsColumnsCardsCardIdMovesPostBody, ) - from .group_0885 import ( + from .group_0886 import ( ReposOwnerRepoActionsPermissionsPutBody as ReposOwnerRepoActionsPermissionsPutBody, ) - from .group_0890 import ( + from .group_0891 import ( ReposOwnerRepoActionsRunsGetResponse200 as ReposOwnerRepoActionsRunsGetResponse200, ) - from .group_0975 import ( + from .group_0976 import ( ReposOwnerRepoGitTagsPostBodyPropTagger as ReposOwnerRepoGitTagsPostBodyPropTagger, ) - from .group_1022 import ( + from .group_1023 import ( ReposOwnerRepoPropertiesValuesPatchBody as ReposOwnerRepoPropertiesValuesPatchBody, ) - from .group_1093 import ( + from .group_1094 import ( SigstoreBundle0PropVerificationMaterial as SigstoreBundle0PropVerificationMaterial, ) from .group_0138 import ( @@ -2329,34 +2329,34 @@ from .group_0747 import ( WebhookWorkflowJobWaitingPropWorkflowJob as WebhookWorkflowJobWaitingPropWorkflowJob, ) - from .group_0810 import ( + from .group_0811 import ( OrgsOrgCopilotBillingSeatsGetResponse200 as OrgsOrgCopilotBillingSeatsGetResponse200, ) - from .group_0840 import ( + from .group_0841 import ( OrgsOrgPersonalAccessTokensPatIdPostBody as OrgsOrgPersonalAccessTokensPatIdPostBody, ) - from .group_0845 import ( + from .group_0846 import ( OrgsOrgReposPostBodyPropCustomProperties as OrgsOrgReposPostBodyPropCustomProperties, ) - from .group_0860 import ( + from .group_0861 import ( OrgsOrgSecurityProductEnablementPostBody as OrgsOrgSecurityProductEnablementPostBody, ) - from .group_0938 import ( + from .group_0939 import ( ReposOwnerRepoCodeScanningSarifsPostBody as ReposOwnerRepoCodeScanningSarifsPostBody, ) - from .group_0947 import ( + from .group_0948 import ( ReposOwnerRepoCommentsCommentIdPatchBody as ReposOwnerRepoCommentsCommentIdPatchBody, ) - from .group_0958 import ( + from .group_0959 import ( ReposOwnerRepoDeploymentsPostResponse202 as ReposOwnerRepoDeploymentsPostResponse202, ) - from .group_0979 import ( + from .group_0980 import ( ReposOwnerRepoHooksHookIdConfigPatchBody as ReposOwnerRepoHooksHookIdConfigPatchBody, ) - from .group_0989 import ( + from .group_0990 import ( ReposOwnerRepoIssuesIssueNumberPatchBody as ReposOwnerRepoIssuesIssueNumberPatchBody, ) - from .group_1045 import ( + from .group_1046 import ( ReposOwnerRepoReleasesReleaseIdPatchBody as ReposOwnerRepoReleasesReleaseIdPatchBody, ) from .group_0136 import ( @@ -2503,31 +2503,31 @@ from .group_0797 import ( OrgsOrgCodeSecurityConfigurationsPostBody as OrgsOrgCodeSecurityConfigurationsPostBody, ) - from .group_0807 import ( + from .group_0808 import ( OrgsOrgCodespacesSecretsSecretNamePutBody as OrgsOrgCodespacesSecretsSecretNamePutBody, ) - from .group_0820 import ( + from .group_0821 import ( OrgsOrgDependabotSecretsSecretNamePutBody as OrgsOrgDependabotSecretsSecretNamePutBody, ) - from .group_0859 import ( + from .group_0860 import ( OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody as OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody, ) - from .group_0906 import ( + from .group_0907 import ( ReposOwnerRepoAttestationsPostResponse201 as ReposOwnerRepoAttestationsPostResponse201, ) - from .group_0925 import ( + from .group_0926 import ( ReposOwnerRepoCheckRunsPostBodyPropOutput as ReposOwnerRepoCheckRunsPostBodyPropOutput, ) - from .group_0943 import ( + from .group_0944 import ( ReposOwnerRepoCodespacesNewGetResponse200 as ReposOwnerRepoCodespacesNewGetResponse200, ) - from .group_1009 import ( + from .group_1010 import ( ReposOwnerRepoNotificationsPutResponse202 as ReposOwnerRepoNotificationsPutResponse202, ) - from .group_1030 import ( + from .group_1031 import ( ReposOwnerRepoPullsPullNumberMergePutBody as ReposOwnerRepoPullsPullNumberMergePutBody, ) - from .group_1084 import ( + from .group_1085 import ( UserInteractionLimitsGetResponse200Anyof1 as UserInteractionLimitsGetResponse200Anyof1, ) from .group_0052 import ( @@ -2644,49 +2644,49 @@ from .group_0784 import ( OrgsOrgActionsRunnersRunnerIdLabelsPutBody as OrgsOrgActionsRunnersRunnerIdLabelsPutBody, ) - from .group_0811 import ( + from .group_0812 import ( OrgsOrgCopilotBillingSelectedTeamsPostBody as OrgsOrgCopilotBillingSelectedTeamsPostBody, ) - from .group_0815 import ( + from .group_0816 import ( OrgsOrgCopilotBillingSelectedUsersPostBody as OrgsOrgCopilotBillingSelectedUsersPostBody, ) - from .group_0834 import ( + from .group_0835 import ( OrgsOrgOutsideCollaboratorsUsernamePutBody as OrgsOrgOutsideCollaboratorsUsernamePutBody, ) - from .group_0837 import ( + from .group_0838 import ( OrgsOrgPersonalAccessTokenRequestsPostBody as OrgsOrgPersonalAccessTokenRequestsPostBody, ) - from .group_0868 import ( + from .group_0869 import ( ProjectsColumnsColumnIdCardsPostBodyOneof0 as ProjectsColumnsColumnIdCardsPostBodyOneof0, ) - from .group_0869 import ( + from .group_0870 import ( ProjectsColumnsColumnIdCardsPostBodyOneof1 as ProjectsColumnsColumnIdCardsPostBodyOneof1, ) - from .group_0886 import ( + from .group_0887 import ( ReposOwnerRepoActionsRunnersGetResponse200 as ReposOwnerRepoActionsRunnersGetResponse200, ) - from .group_0897 import ( + from .group_0898 import ( ReposOwnerRepoActionsSecretsGetResponse200 as ReposOwnerRepoActionsSecretsGetResponse200, ) - from .group_0924 import ( + from .group_0925 import ( ReposOwnerRepoBranchesBranchRenamePostBody as ReposOwnerRepoBranchesBranchRenamePostBody, ) - from .group_0946 import ( + from .group_0947 import ( ReposOwnerRepoCollaboratorsUsernamePutBody as ReposOwnerRepoCollaboratorsUsernamePutBody, ) - from .group_0972 import ( + from .group_0973 import ( ReposOwnerRepoGitCommitsPostBodyPropAuthor as ReposOwnerRepoGitCommitsPostBodyPropAuthor, ) - from .group_0999 import ( + from .group_1000 import ( ReposOwnerRepoIssuesIssueNumberLockPutBody as ReposOwnerRepoIssuesIssueNumberLockPutBody, ) - from .group_1010 import ( + from .group_1011 import ( ReposOwnerRepoPagesPutBodyPropSourceAnyof1 as ReposOwnerRepoPagesPutBodyPropSourceAnyof1, ) - from .group_1065 import ( + from .group_1066 import ( TeamsTeamIdProjectsProjectIdPutResponse403 as TeamsTeamIdProjectsProjectIdPutResponse403, ) - from .group_1077 import ( + from .group_1078 import ( UserCodespacesCodespaceNamePublishPostBody as UserCodespacesCodespaceNamePublishPostBody, ) from .group_0035 import ( @@ -2809,34 +2809,34 @@ from .group_0785 import ( OrgsOrgActionsRunnersRunnerIdLabelsPostBody as OrgsOrgActionsRunnersRunnerIdLabelsPostBody, ) - from .group_0861 import ( + from .group_0862 import ( ProjectsColumnsCardsCardIdDeleteResponse403 as ProjectsColumnsCardsCardIdDeleteResponse403, ) - from .group_0870 import ( + from .group_0871 import ( ProjectsColumnsColumnIdCardsPostResponse503 as ProjectsColumnsColumnIdCardsPostResponse503, ) - from .group_0872 import ( + from .group_0873 import ( ProjectsColumnsColumnIdMovesPostResponse201 as ProjectsColumnsColumnIdMovesPostResponse201, ) - from .group_0881 import ( + from .group_0882 import ( ReposOwnerRepoActionsJobsJobIdRerunPostBody as ReposOwnerRepoActionsJobsJobIdRerunPostBody, ) - from .group_0895 import ( + from .group_0896 import ( ReposOwnerRepoActionsRunsRunIdRerunPostBody as ReposOwnerRepoActionsRunsRunIdRerunPostBody, ) - from .group_0901 import ( + from .group_0902 import ( ReposOwnerRepoActionsVariablesNamePatchBody as ReposOwnerRepoActionsVariablesNamePatchBody, ) - from .group_0951 import ( + from .group_0952 import ( ReposOwnerRepoContentsPathPutBodyPropAuthor as ReposOwnerRepoContentsPathPutBodyPropAuthor, ) - from .group_0976 import ( + from .group_0977 import ( ReposOwnerRepoGitTreesPostBodyPropTreeItems as ReposOwnerRepoGitTreesPostBodyPropTreeItems, ) - from .group_1044 import ( + from .group_1045 import ( ReposOwnerRepoReleasesGenerateNotesPostBody as ReposOwnerRepoReleasesGenerateNotesPostBody, ) - from .group_1070 import ( + from .group_1071 import ( UserCodespacesPostBodyOneof1PropPullRequest as UserCodespacesPostBodyOneof1PropPullRequest, ) from .group_0032 import ( @@ -2926,40 +2926,40 @@ from .group_0779 import ( OrgsOrgActionsPermissionsRepositoriesPutBody as OrgsOrgActionsPermissionsRepositoriesPutBody, ) - from .group_0804 import ( + from .group_0805 import ( OrgsOrgCodespacesAccessSelectedUsersPostBody as OrgsOrgCodespacesAccessSelectedUsersPostBody, ) - from .group_0813 import ( + from .group_0814 import ( OrgsOrgCopilotBillingSelectedTeamsDeleteBody as OrgsOrgCopilotBillingSelectedTeamsDeleteBody, ) - from .group_0817 import ( + from .group_0818 import ( OrgsOrgCopilotBillingSelectedUsersDeleteBody as OrgsOrgCopilotBillingSelectedUsersDeleteBody, ) - from .group_0827 import ( + from .group_0828 import ( OrgsOrgInteractionLimitsGetResponse200Anyof1 as OrgsOrgInteractionLimitsGetResponse200Anyof1, ) - from .group_0857 import ( + from .group_0858 import ( OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody as OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody, ) - from .group_0880 import ( + from .group_0881 import ( ReposOwnerRepoActionsArtifactsGetResponse200 as ReposOwnerRepoActionsArtifactsGetResponse200, ) - from .group_0899 import ( + from .group_0900 import ( ReposOwnerRepoActionsVariablesGetResponse200 as ReposOwnerRepoActionsVariablesGetResponse200, ) - from .group_0902 import ( + from .group_0903 import ( ReposOwnerRepoActionsWorkflowsGetResponse200 as ReposOwnerRepoActionsWorkflowsGetResponse200, ) - from .group_0905 import ( + from .group_0906 import ( ReposOwnerRepoAttestationsPostBodyPropBundle as ReposOwnerRepoAttestationsPostBodyPropBundle, ) - from .group_0982 import ( + from .group_0983 import ( ReposOwnerRepoImportAuthorsAuthorIdPatchBody as ReposOwnerRepoImportAuthorsAuthorIdPatchBody, ) - from .group_1036 import ( + from .group_1037 import ( ReposOwnerRepoPullsPullNumberReviewsPostBody as ReposOwnerRepoPullsPullNumberReviewsPostBody, ) - from .group_1043 import ( + from .group_1044 import ( ReposOwnerRepoReleasesAssetsAssetIdPatchBody as ReposOwnerRepoReleasesAssetsAssetIdPatchBody, ) from .group_0107 import ( @@ -3040,31 +3040,31 @@ from .group_0718 import ( WebhookSecurityAndAnalysisPropChangesPropFrom as WebhookSecurityAndAnalysisPropChangesPropFrom, ) - from .group_0876 import ( + from .group_0877 import ( ProjectsProjectIdCollaboratorsUsernamePutBody as ProjectsProjectIdCollaboratorsUsernamePutBody, ) - from .group_0898 import ( + from .group_0899 import ( ReposOwnerRepoActionsSecretsSecretNamePutBody as ReposOwnerRepoActionsSecretsSecretNamePutBody, ) - from .group_0909 import ( + from .group_0910 import ( ReposOwnerRepoBranchesBranchProtectionPutBody as ReposOwnerRepoBranchesBranchProtectionPutBody, ) - from .group_0932 import ( + from .group_0933 import ( ReposOwnerRepoCheckSuitesPreferencesPatchBody as ReposOwnerRepoCheckSuitesPreferencesPatchBody, ) - from .group_0944 import ( + from .group_0945 import ( ReposOwnerRepoCodespacesSecretsGetResponse200 as ReposOwnerRepoCodespacesSecretsGetResponse200, ) - from .group_0954 import ( + from .group_0955 import ( ReposOwnerRepoDependabotSecretsGetResponse200 as ReposOwnerRepoDependabotSecretsGetResponse200, ) - from .group_0972 import ( + from .group_0973 import ( ReposOwnerRepoGitCommitsPostBodyPropCommitter as ReposOwnerRepoGitCommitsPostBodyPropCommitter, ) - from .group_1024 import ( + from .group_1025 import ( ReposOwnerRepoPullsCommentsCommentIdPatchBody as ReposOwnerRepoPullsCommentsCommentIdPatchBody, ) - from .group_1028 import ( + from .group_1029 import ( ReposOwnerRepoPullsPullNumberCommentsPostBody as ReposOwnerRepoPullsPullNumberCommentsPostBody, ) from .group_0398 import ( @@ -3157,46 +3157,46 @@ from .group_0796 import ( OrgsOrgAttestationsSubjectDigestGetResponse200 as OrgsOrgAttestationsSubjectDigestGetResponse200, ) - from .group_0805 import ( + from .group_0806 import ( OrgsOrgCodespacesAccessSelectedUsersDeleteBody as OrgsOrgCodespacesAccessSelectedUsersDeleteBody, ) - from .group_0829 import ( + from .group_0830 import ( OrgsOrgMembersUsernameCodespacesGetResponse200 as OrgsOrgMembersUsernameCodespacesGetResponse200, ) - from .group_0856 import ( + from .group_0857 import ( OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody as OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody, ) - from .group_0864 import ( + from .group_0865 import ( ProjectsColumnsCardsCardIdMovesPostResponse201 as ProjectsColumnsCardsCardIdMovesPostResponse201, ) - from .group_0865 import ( + from .group_0866 import ( ProjectsColumnsCardsCardIdMovesPostResponse403 as ProjectsColumnsCardsCardIdMovesPostResponse403, ) - from .group_0866 import ( + from .group_0867 import ( ProjectsColumnsCardsCardIdMovesPostResponse503 as ProjectsColumnsCardsCardIdMovesPostResponse503, ) - from .group_0879 import ( + from .group_0880 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysis as ReposOwnerRepoPatchBodyPropSecurityAndAnalysis, ) - from .group_0942 import ( + from .group_0943 import ( ReposOwnerRepoCodespacesMachinesGetResponse200 as ReposOwnerRepoCodespacesMachinesGetResponse200, ) - from .group_0949 import ( + from .group_0950 import ( ReposOwnerRepoCommitsCommitShaCommentsPostBody as ReposOwnerRepoCommitsCommitShaCommentsPostBody, ) - from .group_0951 import ( + from .group_0952 import ( ReposOwnerRepoContentsPathPutBodyPropCommitter as ReposOwnerRepoContentsPathPutBodyPropCommitter, ) - from .group_0952 import ( + from .group_0953 import ( ReposOwnerRepoContentsPathDeleteBodyPropAuthor as ReposOwnerRepoContentsPathDeleteBodyPropAuthor, ) - from .group_0985 import ( + from .group_0986 import ( ReposOwnerRepoInvitationsInvitationIdPatchBody as ReposOwnerRepoInvitationsInvitationIdPatchBody, ) - from .group_0987 import ( + from .group_0988 import ( ReposOwnerRepoIssuesCommentsCommentIdPatchBody as ReposOwnerRepoIssuesCommentsCommentIdPatchBody, ) - from .group_1055 import ( + from .group_1056 import ( ReposTemplateOwnerTemplateRepoGeneratePostBody as ReposTemplateOwnerTemplateRepoGeneratePostBody, ) from .group_0052 import ( @@ -3301,19 +3301,19 @@ from .group_0774 import ( NotificationsThreadsThreadIdSubscriptionPutBody as NotificationsThreadsThreadIdSubscriptionPutBody, ) - from .group_0925 import ( + from .group_0926 import ( ReposOwnerRepoCheckRunsPostBodyPropActionsItems as ReposOwnerRepoCheckRunsPostBodyPropActionsItems, ) - from .group_0950 import ( + from .group_0951 import ( ReposOwnerRepoCommitsRefCheckRunsGetResponse200 as ReposOwnerRepoCommitsRefCheckRunsGetResponse200, ) - from .group_0992 import ( + from .group_0993 import ( ReposOwnerRepoIssuesIssueNumberCommentsPostBody as ReposOwnerRepoIssuesIssueNumberCommentsPostBody, ) - from .group_1027 import ( + from .group_1028 import ( ReposOwnerRepoPullsPullNumberCodespacesPostBody as ReposOwnerRepoPullsPullNumberCodespacesPostBody, ) - from .group_1058 import ( + from .group_1059 import ( TeamsTeamIdDiscussionsDiscussionNumberPatchBody as TeamsTeamIdDiscussionsDiscussionNumberPatchBody, ) from .group_0054 import ( @@ -3412,52 +3412,52 @@ from .group_0752 import ( AppManifestsCodeConversionsPostResponse201Allof1 as AppManifestsCodeConversionsPostResponse201Allof1, ) - from .group_0843 import ( + from .group_0844 import ( OrgsOrgPropertiesSchemaCustomPropertyNamePutBody as OrgsOrgPropertiesSchemaCustomPropertyNamePutBody, ) - from .group_0882 import ( + from .group_0883 import ( ReposOwnerRepoActionsOidcCustomizationSubPutBody as ReposOwnerRepoActionsOidcCustomizationSubPutBody, ) - from .group_0893 import ( + from .group_0894 import ( ReposOwnerRepoActionsRunsRunIdJobsGetResponse200 as ReposOwnerRepoActionsRunsRunIdJobsGetResponse200, ) - from .group_0929 import ( + from .group_0930 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0 as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0, ) - from .group_0930 import ( + from .group_0931 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1 as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1, ) - from .group_0945 import ( + from .group_0946 import ( ReposOwnerRepoCodespacesSecretsSecretNamePutBody as ReposOwnerRepoCodespacesSecretsSecretNamePutBody, ) - from .group_0948 import ( + from .group_0949 import ( ReposOwnerRepoCommentsCommentIdReactionsPostBody as ReposOwnerRepoCommentsCommentIdReactionsPostBody, ) - from .group_0955 import ( + from .group_0956 import ( ReposOwnerRepoDependabotSecretsSecretNamePutBody as ReposOwnerRepoDependabotSecretsSecretNamePutBody, ) - from .group_0961 import ( + from .group_0962 import ( ReposOwnerRepoEnvironmentsEnvironmentNamePutBody as ReposOwnerRepoEnvironmentsEnvironmentNamePutBody, ) - from .group_0990 import ( + from .group_0991 import ( ReposOwnerRepoIssuesIssueNumberAssigneesPostBody as ReposOwnerRepoIssuesIssueNumberAssigneesPostBody, ) - from .group_1000 import ( + from .group_1001 import ( ReposOwnerRepoIssuesIssueNumberReactionsPostBody as ReposOwnerRepoIssuesIssueNumberReactionsPostBody, ) - from .group_1007 import ( + from .group_1008 import ( ReposOwnerRepoMilestonesMilestoneNumberPatchBody as ReposOwnerRepoMilestonesMilestoneNumberPatchBody, ) - from .group_1031 import ( + from .group_1032 import ( ReposOwnerRepoPullsPullNumberMergePutResponse405 as ReposOwnerRepoPullsPullNumberMergePutResponse405, ) - from .group_1032 import ( + from .group_1033 import ( ReposOwnerRepoPullsPullNumberMergePutResponse409 as ReposOwnerRepoPullsPullNumberMergePutResponse409, ) - from .group_1040 import ( + from .group_1041 import ( ReposOwnerRepoPullsPullNumberUpdateBranchPutBody as ReposOwnerRepoPullsPullNumberUpdateBranchPutBody, ) - from .group_1046 import ( + from .group_1047 import ( ReposOwnerRepoReleasesReleaseIdReactionsPostBody as ReposOwnerRepoReleasesReleaseIdReactionsPostBody, ) from .group_0110 import ( @@ -3619,28 +3619,31 @@ from .group_0783 import ( OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200 as OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200, ) - from .group_0812 import ( + from .group_0798 import ( + OrgsOrgCodeSecurityConfigurationsDetachDeleteBody as OrgsOrgCodeSecurityConfigurationsDetachDeleteBody, + ) + from .group_0813 import ( OrgsOrgCopilotBillingSelectedTeamsPostResponse201 as OrgsOrgCopilotBillingSelectedTeamsPostResponse201, ) - from .group_0816 import ( + from .group_0817 import ( OrgsOrgCopilotBillingSelectedUsersPostResponse201 as OrgsOrgCopilotBillingSelectedUsersPostResponse201, ) - from .group_0835 import ( + from .group_0836 import ( OrgsOrgOutsideCollaboratorsUsernamePutResponse202 as OrgsOrgOutsideCollaboratorsUsernamePutResponse202, ) - from .group_0888 import ( + from .group_0889 import ( ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody as ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody, ) - from .group_0952 import ( + from .group_0953 import ( ReposOwnerRepoContentsPathDeleteBodyPropCommitter as ReposOwnerRepoContentsPathDeleteBodyPropCommitter, ) - from .group_0960 import ( + from .group_0961 import ( ReposOwnerRepoDispatchesPostBodyPropClientPayload as ReposOwnerRepoDispatchesPostBodyPropClientPayload, ) - from .group_0986 import ( + from .group_0987 import ( ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1 as ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1, ) - from .group_1076 import ( + from .group_1077 import ( UserCodespacesCodespaceNameMachinesGetResponse200 as UserCodespacesCodespaceNameMachinesGetResponse200, ) from .group_0032 import ( @@ -3748,28 +3751,28 @@ from .group_0790 import ( OrgsOrgActionsSecretsSecretNameRepositoriesPutBody as OrgsOrgActionsSecretsSecretNameRepositoriesPutBody, ) - from .group_0889 import ( + from .group_0890 import ( ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody as ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody, ) - from .group_0953 import ( + from .group_0954 import ( ReposOwnerRepoDependabotAlertsAlertNumberPatchBody as ReposOwnerRepoDependabotAlertsAlertNumberPatchBody, ) - from .group_0957 import ( + from .group_0958 import ( ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0 as ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0, ) - from .group_0991 import ( + from .group_0992 import ( ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody as ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody, ) - from .group_0993 import ( + from .group_0994 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0 as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0, ) - from .group_0994 import ( + from .group_0995 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2 as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2, ) - from .group_1074 import ( + from .group_1075 import ( UserCodespacesSecretsSecretNameRepositoriesPutBody as UserCodespacesSecretsSecretNameRepositoriesPutBody, ) - from .group_1093 import ( + from .group_1094 import ( SigstoreBundle0PropDsseEnvelopePropSignaturesItems as SigstoreBundle0PropDsseEnvelopePropSignaturesItems, ) from .group_0032 import ( @@ -3859,28 +3862,28 @@ from .group_0778 import ( OrgsOrgActionsPermissionsRepositoriesGetResponse200 as OrgsOrgActionsPermissionsRepositoriesGetResponse200, ) - from .group_0814 import ( + from .group_0815 import ( OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200 as OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200, ) - from .group_0818 import ( + from .group_0819 import ( OrgsOrgCopilotBillingSelectedUsersDeleteResponse200 as OrgsOrgCopilotBillingSelectedUsersDeleteResponse200, ) - from .group_0858 import ( + from .group_0859 import ( OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403 as OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403, ) - from .group_0941 import ( + from .group_0942 import ( ReposOwnerRepoCodespacesDevcontainersGetResponse200 as ReposOwnerRepoCodespacesDevcontainersGetResponse200, ) - from .group_0984 import ( + from .group_0985 import ( ReposOwnerRepoInteractionLimitsGetResponse200Anyof1 as ReposOwnerRepoInteractionLimitsGetResponse200Anyof1, ) - from .group_0996 import ( + from .group_0997 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0 as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0, ) - from .group_0997 import ( + from .group_0998 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2 as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2, ) - from .group_1037 import ( + from .group_1038 import ( ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody as ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody, ) from .group_0127 import ( @@ -3976,16 +3979,16 @@ from .group_0786 import ( OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200 as OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200, ) - from .group_0836 import ( + from .group_0837 import ( OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422 as OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422, ) - from .group_0928 import ( + from .group_0929 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput, ) - from .group_0934 import ( + from .group_0935 import ( ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody as ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody, ) - from .group_1093 import ( + from .group_1094 import ( UsersUsernameAttestationsSubjectDigestGetResponse200 as UsersUsernameAttestationsSubjectDigestGetResponse200, ) from .group_0177 import ( @@ -4120,34 +4123,34 @@ from .group_0794 import ( OrgsOrgActionsVariablesNameRepositoriesGetResponse200 as OrgsOrgActionsVariablesNameRepositoriesGetResponse200, ) - from .group_0809 import ( + from .group_0810 import ( OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody as OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody, ) - from .group_0822 import ( + from .group_0823 import ( OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody as OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody, ) - from .group_0887 import ( + from .group_0888 import ( ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody as ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody, ) - from .group_0891 import ( + from .group_0892 import ( ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200 as ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200, ) - from .group_0896 import ( + from .group_0897 import ( ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody as ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody, ) - from .group_0907 import ( + from .group_0908 import ( ReposOwnerRepoAttestationsSubjectDigestGetResponse200 as ReposOwnerRepoAttestationsSubjectDigestGetResponse200, ) - from .group_0943 import ( + from .group_0944 import ( ReposOwnerRepoCodespacesNewGetResponse200PropDefaults as ReposOwnerRepoCodespacesNewGetResponse200PropDefaults, ) - from .group_0956 import ( + from .group_0957 import ( ReposOwnerRepoDependencyGraphSnapshotsPostResponse201 as ReposOwnerRepoDependencyGraphSnapshotsPostResponse201, ) - from .group_0959 import ( + from .group_0960 import ( ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody as ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody, ) - from .group_1025 import ( + from .group_1026 import ( ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody as ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody, ) from .group_0177 import ( @@ -4264,19 +4267,19 @@ from .group_0762 import ( EnterprisesEnterpriseCopilotBillingSeatsGetResponse200 as EnterprisesEnterpriseCopilotBillingSeatsGetResponse200, ) - from .group_0838 import ( + from .group_0839 import ( OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody as OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody, ) - from .group_0883 import ( + from .group_0884 import ( ReposOwnerRepoActionsOrganizationSecretsGetResponse200 as ReposOwnerRepoActionsOrganizationSecretsGetResponse200, ) - from .group_0988 import ( + from .group_0989 import ( ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody as ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody, ) - from .group_1049 import ( + from .group_1050 import ( ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody as ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody, ) - from .group_1059 import ( + from .group_1060 import ( TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody as TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody, ) from .group_0177 import ( @@ -4390,13 +4393,13 @@ from .group_0763 import ( EnterprisesEnterpriseSecretScanningAlertsGetResponse503 as EnterprisesEnterpriseSecretScanningAlertsGetResponse503, ) - from .group_0995 import ( + from .group_0996 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items, ) - from .group_1041 import ( + from .group_1042 import ( ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202 as ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202, ) - from .group_1062 import ( + from .group_1063 import ( TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody as TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody, ) from .group_0054 import ( @@ -4537,19 +4540,19 @@ from .group_0750 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropRepository as WebhookWorkflowRunRequestedPropWorkflowRunPropRepository, ) - from .group_0851 import ( + from .group_0852 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody, ) - from .group_0884 import ( + from .group_0885 import ( ReposOwnerRepoActionsOrganizationVariablesGetResponse200 as ReposOwnerRepoActionsOrganizationVariablesGetResponse200, ) - from .group_0894 import ( + from .group_0895 import ( ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody as ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody, ) - from .group_0925 import ( + from .group_0926 import ( ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems as ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems, ) - from .group_0998 import ( + from .group_0999 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items, ) from .group_0094 import ( @@ -4693,19 +4696,19 @@ from .group_0789 import ( OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200 as OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200, ) - from .group_0798 import ( + from .group_0799 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody as OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody, ) - from .group_1020 import ( + from .group_1021 import ( ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200 as ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200, ) - from .group_1035 import ( + from .group_1036 import ( ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody as ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody, ) - from .group_1073 import ( + from .group_1074 import ( UserCodespacesSecretsSecretNameRepositoriesGetResponse200 as UserCodespacesSecretsSecretNameRepositoriesGetResponse200, ) - from .group_1083 import ( + from .group_1084 import ( UserInstallationsInstallationIdRepositoriesGetResponse200 as UserInstallationsInstallationIdRepositoriesGetResponse200, ) from .group_0403 import ( @@ -4801,22 +4804,22 @@ from .group_0667 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf as WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf, ) - from .group_0870 import ( + from .group_0871 import ( ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems as ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems, ) - from .group_0903 import ( + from .group_0904 import ( ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody as ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody, ) - from .group_0904 import ( + from .group_0905 import ( ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200 as ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200, ) - from .group_0928 import ( + from .group_0929 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems, ) - from .group_0968 import ( + from .group_0969 import ( ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody as ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody, ) - from .group_1039 import ( + from .group_1040 import ( ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody as ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody, ) from .group_0031 import ( @@ -4927,7 +4930,7 @@ from .group_0670 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropOwner as WebhookRegistryPackagePublishedPropRegistryPackagePropOwner, ) - from .group_1093 import ( + from .group_1094 import ( SigstoreBundle0PropVerificationMaterialPropTlogEntriesItems as SigstoreBundle0PropVerificationMaterialPropTlogEntriesItems, ) from .group_0403 import ( @@ -5038,16 +5041,16 @@ from .group_0750 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository, ) - from .group_0808 import ( + from .group_0809 import ( OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200 as OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200, ) - from .group_0821 import ( + from .group_0822 import ( OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200 as OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200, ) - from .group_0905 import ( + from .group_0906 import ( ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope as ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope, ) - from .group_0933 import ( + from .group_0934 import ( ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200 as ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200, ) from .group_0108 import ( @@ -5197,43 +5200,43 @@ from .group_0750 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor as WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor, ) - from .group_0865 import ( + from .group_0866 import ( ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems as ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems, ) - from .group_0866 import ( + from .group_0867 import ( ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems as ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems, ) - from .group_0909 import ( + from .group_0910 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions, ) - from .group_0925 import ( + from .group_0926 import ( ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems as ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems, ) - from .group_0935 import ( + from .group_0936 import ( ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0 as ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0, ) - from .group_0936 import ( + from .group_0937 import ( ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1 as ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1, ) - from .group_0937 import ( + from .group_0938 import ( ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2 as ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2, ) - from .group_0989 import ( + from .group_0990 import ( ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1 as ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1, ) - from .group_1029 import ( + from .group_1030 import ( ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody as ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody, ) - from .group_1033 import ( + from .group_1034 import ( ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0 as ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0, ) - from .group_1034 import ( + from .group_1035 import ( ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1 as ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1, ) - from .group_1036 import ( + from .group_1037 import ( ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems as ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems, ) - from .group_1038 import ( + from .group_1039 import ( ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody as ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody, ) from .group_0403 import ( @@ -5380,10 +5383,10 @@ from .group_0749 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor as WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor, ) - from .group_0799 import ( + from .group_0800 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody as OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody, ) - from .group_0965 import ( + from .group_0966 import ( ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200 as ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200, ) from .group_0183 import ( @@ -5488,16 +5491,16 @@ from .group_0750 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems, ) - from .group_0800 import ( + from .group_0801 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody as OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody, ) - from .group_0852 import ( + from .group_0853 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody, ) - from .group_0969 import ( + from .group_0970 import ( ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody as ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody, ) - from .group_1093 import ( + from .group_1094 import ( SigstoreBundle0PropVerificationMaterialPropX509CertificateChain as SigstoreBundle0PropVerificationMaterialPropX509CertificateChain, ) from .group_0095 import ( @@ -5614,13 +5617,13 @@ from .group_0749 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems, ) - from .group_0855 import ( + from .group_0856 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody, ) - from .group_0879 import ( + from .group_0880 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning, ) - from .group_0967 import ( + from .group_0968 import ( ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200 as ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200, ) from .group_0106 import ( @@ -5749,10 +5752,10 @@ from .group_0750 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner as WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner, ) - from .group_0966 import ( + from .group_0967 import ( ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody as ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody, ) - from .group_0994 import ( + from .group_0995 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems, ) from .group_0094 import ( @@ -5938,13 +5941,13 @@ from .group_0750 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor, ) - from .group_0879 import ( + from .group_0880 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity, ) - from .group_0961 import ( + from .group_0962 import ( ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems as ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems, ) - from .group_0997 import ( + from .group_0998 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems, ) from .group_0210 import ( @@ -6091,13 +6094,13 @@ from .group_0796 import ( OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems, ) - from .group_0911 import ( + from .group_0912 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody, ) - from .group_0915 import ( + from .group_0916 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0, ) - from .group_0928 import ( + from .group_0929 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems, ) from .group_0428 import ( @@ -6238,25 +6241,25 @@ from .group_0671 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion, ) - from .group_0903 import ( + from .group_0904 import ( ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs as ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs, ) - from .group_0905 import ( + from .group_0906 import ( ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial as ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial, ) - from .group_0916 import ( + from .group_0917 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0, ) - from .group_0918 import ( + from .group_0919 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0, ) - from .group_0921 import ( + from .group_0922 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0, ) - from .group_1060 import ( + from .group_1061 import ( TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody as TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody, ) - from .group_1093 import ( + from .group_1094 import ( SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogId as SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogId, ) from .group_0242 import ( @@ -6397,16 +6400,16 @@ from .group_0750 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner, ) - from .group_0892 import ( + from .group_0893 import ( ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200 as ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200, ) - from .group_0909 import ( + from .group_0910 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks, ) - from .group_0919 import ( + from .group_0920 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0, ) - from .group_0922 import ( + from .group_0923 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0, ) from .group_0195 import ( @@ -6523,10 +6526,10 @@ from .group_0750 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems as WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems, ) - from .group_0801 import ( + from .group_0802 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200 as OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200, ) - from .group_0917 import ( + from .group_0918 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0, ) from .group_0094 import ( @@ -6673,13 +6676,13 @@ from .group_0750 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead, ) - from .group_0920 import ( + from .group_0921 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0, ) - from .group_0923 import ( + from .group_0924 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0, ) - from .group_0932 import ( + from .group_0933 import ( ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems as ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems, ) from .group_0443 import ( @@ -6799,7 +6802,7 @@ from .group_0749 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead, ) - from .group_0928 import ( + from .group_0929 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems, ) from .group_0094 import ( @@ -6895,13 +6898,13 @@ from .group_0666 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0910 import ( + from .group_0911 import ( ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody as ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody, ) - from .group_0941 import ( + from .group_0942 import ( ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems as ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems, ) - from .group_1093 import ( + from .group_1094 import ( UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems as UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems, ) from .group_0428 import ( @@ -7042,13 +7045,13 @@ from .group_0667 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0907 import ( + from .group_0908 import ( ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems, ) - from .group_0963 import ( + from .group_0964 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody, ) - from .group_1093 import ( + from .group_1094 import ( SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersion as SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersion, ) from .group_0444 import ( @@ -7180,7 +7183,7 @@ from .group_0666 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0909 import ( + from .group_0910 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews, ) from .group_0195 import ( @@ -7270,7 +7273,7 @@ from .group_0715 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems, ) - from .group_1061 import ( + from .group_1062 import ( TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody as TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody, ) from .group_0428 import ( @@ -7351,7 +7354,7 @@ from .group_0796 import ( OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle, ) - from .group_0853 import ( + from .group_0854 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody, ) from .group_0441 import ( @@ -7420,7 +7423,7 @@ from .group_0671 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor, ) - from .group_0879 import ( + from .group_0880 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection, ) from .group_0439 import ( @@ -7510,13 +7513,13 @@ from .group_0750 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, ) - from .group_0912 import ( + from .group_0913 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0, ) - from .group_0962 import ( + from .group_0963 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200 as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200, ) - from .group_1093 import ( + from .group_1094 import ( SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromise as SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromise, ) from .group_0255 import ( @@ -7603,7 +7606,7 @@ from .group_0749 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, ) - from .group_0913 import ( + from .group_0914 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0, ) from .group_0445 import ( @@ -7732,10 +7735,10 @@ from .group_0698 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges, ) - from .group_0911 import ( + from .group_0912 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems, ) - from .group_0914 import ( + from .group_0915 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0, ) from .group_0440 import ( @@ -7789,7 +7792,7 @@ from .group_0674 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems, ) - from .group_0879 import ( + from .group_0880 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns, ) from .group_0428 import ( @@ -7855,16 +7858,16 @@ from .group_0667 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0907 import ( + from .group_0908 import ( ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle, ) - from .group_0909 import ( + from .group_0910 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems, ) - from .group_0964 import ( + from .group_0965 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200 as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200, ) - from .group_1093 import ( + from .group_1094 import ( SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItems as SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItems, ) from .group_0593 import ( @@ -7909,7 +7912,7 @@ from .group_0671 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems, ) - from .group_0854 import ( + from .group_0855 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody, ) from .group_0593 import ( @@ -8164,7 +8167,7 @@ from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0910 import ( + from .group_0911 import ( ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions as ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions, ) from .group_0671 import ( @@ -8182,10 +8185,10 @@ from .group_0715 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion, ) - from .group_0907 import ( + from .group_0908 import ( ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope, ) - from .group_0909 import ( + from .group_0910 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions, ) from .group_0671 import ( @@ -8215,19 +8218,19 @@ from .group_0671 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1 as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1, ) - from .group_0910 import ( + from .group_0911 import ( ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances as ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances, ) from .group_0671 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3 as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3, ) - from .group_0909 import ( + from .group_0910 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances, ) from .group_0671 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies, ) - from .group_0907 import ( + from .group_0908 import ( ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial, ) else: @@ -11779,130 +11782,131 @@ "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope", ), ".group_0797": ("OrgsOrgCodeSecurityConfigurationsPostBody",), - ".group_0798": ("OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody",), - ".group_0799": ( + ".group_0798": ("OrgsOrgCodeSecurityConfigurationsDetachDeleteBody",), + ".group_0799": ("OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody",), + ".group_0800": ( "OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody", ), - ".group_0800": ( + ".group_0801": ( "OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody", ), - ".group_0801": ( + ".group_0802": ( "OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200", ), - ".group_0802": ("OrgsOrgCodespacesGetResponse200",), - ".group_0803": ("OrgsOrgCodespacesAccessPutBody",), - ".group_0804": ("OrgsOrgCodespacesAccessSelectedUsersPostBody",), - ".group_0805": ("OrgsOrgCodespacesAccessSelectedUsersDeleteBody",), - ".group_0806": ( + ".group_0803": ("OrgsOrgCodespacesGetResponse200",), + ".group_0804": ("OrgsOrgCodespacesAccessPutBody",), + ".group_0805": ("OrgsOrgCodespacesAccessSelectedUsersPostBody",), + ".group_0806": ("OrgsOrgCodespacesAccessSelectedUsersDeleteBody",), + ".group_0807": ( "OrgsOrgCodespacesSecretsGetResponse200", "CodespacesOrgSecret", ), - ".group_0807": ("OrgsOrgCodespacesSecretsSecretNamePutBody",), - ".group_0808": ( + ".group_0808": ("OrgsOrgCodespacesSecretsSecretNamePutBody",), + ".group_0809": ( "OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200", ), - ".group_0809": ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody",), - ".group_0810": ("OrgsOrgCopilotBillingSeatsGetResponse200",), - ".group_0811": ("OrgsOrgCopilotBillingSelectedTeamsPostBody",), - ".group_0812": ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201",), - ".group_0813": ("OrgsOrgCopilotBillingSelectedTeamsDeleteBody",), - ".group_0814": ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200",), - ".group_0815": ("OrgsOrgCopilotBillingSelectedUsersPostBody",), - ".group_0816": ("OrgsOrgCopilotBillingSelectedUsersPostResponse201",), - ".group_0817": ("OrgsOrgCopilotBillingSelectedUsersDeleteBody",), - ".group_0818": ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200",), - ".group_0819": ( + ".group_0810": ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody",), + ".group_0811": ("OrgsOrgCopilotBillingSeatsGetResponse200",), + ".group_0812": ("OrgsOrgCopilotBillingSelectedTeamsPostBody",), + ".group_0813": ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201",), + ".group_0814": ("OrgsOrgCopilotBillingSelectedTeamsDeleteBody",), + ".group_0815": ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200",), + ".group_0816": ("OrgsOrgCopilotBillingSelectedUsersPostBody",), + ".group_0817": ("OrgsOrgCopilotBillingSelectedUsersPostResponse201",), + ".group_0818": ("OrgsOrgCopilotBillingSelectedUsersDeleteBody",), + ".group_0819": ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200",), + ".group_0820": ( "OrgsOrgDependabotSecretsGetResponse200", "OrganizationDependabotSecret", ), - ".group_0820": ("OrgsOrgDependabotSecretsSecretNamePutBody",), - ".group_0821": ( + ".group_0821": ("OrgsOrgDependabotSecretsSecretNamePutBody",), + ".group_0822": ( "OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200", ), - ".group_0822": ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody",), - ".group_0823": ( + ".group_0823": ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody",), + ".group_0824": ( "OrgsOrgHooksPostBody", "OrgsOrgHooksPostBodyPropConfig", ), - ".group_0824": ( + ".group_0825": ( "OrgsOrgHooksHookIdPatchBody", "OrgsOrgHooksHookIdPatchBodyPropConfig", ), - ".group_0825": ("OrgsOrgHooksHookIdConfigPatchBody",), - ".group_0826": ("OrgsOrgInstallationsGetResponse200",), - ".group_0827": ("OrgsOrgInteractionLimitsGetResponse200Anyof1",), - ".group_0828": ("OrgsOrgInvitationsPostBody",), - ".group_0829": ("OrgsOrgMembersUsernameCodespacesGetResponse200",), - ".group_0830": ("OrgsOrgMembershipsUsernamePutBody",), - ".group_0831": ("OrgsOrgMigrationsPostBody",), - ".group_0832": ("OrgsOrgOrganizationRolesPostBody",), - ".group_0833": ("OrgsOrgOrganizationRolesRoleIdPatchBody",), - ".group_0834": ("OrgsOrgOutsideCollaboratorsUsernamePutBody",), - ".group_0835": ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202",), - ".group_0836": ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422",), - ".group_0837": ("OrgsOrgPersonalAccessTokenRequestsPostBody",), - ".group_0838": ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody",), - ".group_0839": ("OrgsOrgPersonalAccessTokensPostBody",), - ".group_0840": ("OrgsOrgPersonalAccessTokensPatIdPostBody",), - ".group_0841": ("OrgsOrgProjectsPostBody",), - ".group_0842": ("OrgsOrgPropertiesSchemaPatchBody",), - ".group_0843": ("OrgsOrgPropertiesSchemaCustomPropertyNamePutBody",), - ".group_0844": ("OrgsOrgPropertiesValuesPatchBody",), - ".group_0845": ( + ".group_0826": ("OrgsOrgHooksHookIdConfigPatchBody",), + ".group_0827": ("OrgsOrgInstallationsGetResponse200",), + ".group_0828": ("OrgsOrgInteractionLimitsGetResponse200Anyof1",), + ".group_0829": ("OrgsOrgInvitationsPostBody",), + ".group_0830": ("OrgsOrgMembersUsernameCodespacesGetResponse200",), + ".group_0831": ("OrgsOrgMembershipsUsernamePutBody",), + ".group_0832": ("OrgsOrgMigrationsPostBody",), + ".group_0833": ("OrgsOrgOrganizationRolesPostBody",), + ".group_0834": ("OrgsOrgOrganizationRolesRoleIdPatchBody",), + ".group_0835": ("OrgsOrgOutsideCollaboratorsUsernamePutBody",), + ".group_0836": ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202",), + ".group_0837": ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422",), + ".group_0838": ("OrgsOrgPersonalAccessTokenRequestsPostBody",), + ".group_0839": ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody",), + ".group_0840": ("OrgsOrgPersonalAccessTokensPostBody",), + ".group_0841": ("OrgsOrgPersonalAccessTokensPatIdPostBody",), + ".group_0842": ("OrgsOrgProjectsPostBody",), + ".group_0843": ("OrgsOrgPropertiesSchemaPatchBody",), + ".group_0844": ("OrgsOrgPropertiesSchemaCustomPropertyNamePutBody",), + ".group_0845": ("OrgsOrgPropertiesValuesPatchBody",), + ".group_0846": ( "OrgsOrgReposPostBody", "OrgsOrgReposPostBodyPropCustomProperties", ), - ".group_0846": ("OrgsOrgRulesetsPostBody",), - ".group_0847": ("OrgsOrgRulesetsRulesetIdPutBody",), - ".group_0848": ("OrgsOrgTeamsPostBody",), - ".group_0849": ("OrgsOrgTeamsTeamSlugPatchBody",), - ".group_0850": ("OrgsOrgTeamsTeamSlugDiscussionsPostBody",), - ".group_0851": ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody",), - ".group_0852": ( + ".group_0847": ("OrgsOrgRulesetsPostBody",), + ".group_0848": ("OrgsOrgRulesetsRulesetIdPutBody",), + ".group_0849": ("OrgsOrgTeamsPostBody",), + ".group_0850": ("OrgsOrgTeamsTeamSlugPatchBody",), + ".group_0851": ("OrgsOrgTeamsTeamSlugDiscussionsPostBody",), + ".group_0852": ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody",), + ".group_0853": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody", ), - ".group_0853": ( + ".group_0854": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody", ), - ".group_0854": ( + ".group_0855": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody", ), - ".group_0855": ( + ".group_0856": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody", ), - ".group_0856": ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody",), - ".group_0857": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody",), - ".group_0858": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403",), - ".group_0859": ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody",), - ".group_0860": ("OrgsOrgSecurityProductEnablementPostBody",), - ".group_0861": ("ProjectsColumnsCardsCardIdDeleteResponse403",), - ".group_0862": ("ProjectsColumnsCardsCardIdPatchBody",), - ".group_0863": ("ProjectsColumnsCardsCardIdMovesPostBody",), - ".group_0864": ("ProjectsColumnsCardsCardIdMovesPostResponse201",), - ".group_0865": ( + ".group_0857": ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody",), + ".group_0858": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody",), + ".group_0859": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403",), + ".group_0860": ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody",), + ".group_0861": ("OrgsOrgSecurityProductEnablementPostBody",), + ".group_0862": ("ProjectsColumnsCardsCardIdDeleteResponse403",), + ".group_0863": ("ProjectsColumnsCardsCardIdPatchBody",), + ".group_0864": ("ProjectsColumnsCardsCardIdMovesPostBody",), + ".group_0865": ("ProjectsColumnsCardsCardIdMovesPostResponse201",), + ".group_0866": ( "ProjectsColumnsCardsCardIdMovesPostResponse403", "ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems", ), - ".group_0866": ( + ".group_0867": ( "ProjectsColumnsCardsCardIdMovesPostResponse503", "ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems", ), - ".group_0867": ("ProjectsColumnsColumnIdPatchBody",), - ".group_0868": ("ProjectsColumnsColumnIdCardsPostBodyOneof0",), - ".group_0869": ("ProjectsColumnsColumnIdCardsPostBodyOneof1",), - ".group_0870": ( + ".group_0868": ("ProjectsColumnsColumnIdPatchBody",), + ".group_0869": ("ProjectsColumnsColumnIdCardsPostBodyOneof0",), + ".group_0870": ("ProjectsColumnsColumnIdCardsPostBodyOneof1",), + ".group_0871": ( "ProjectsColumnsColumnIdCardsPostResponse503", "ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems", ), - ".group_0871": ("ProjectsColumnsColumnIdMovesPostBody",), - ".group_0872": ("ProjectsColumnsColumnIdMovesPostResponse201",), - ".group_0873": ("ProjectsProjectIdDeleteResponse403",), - ".group_0874": ("ProjectsProjectIdPatchBody",), - ".group_0875": ("ProjectsProjectIdPatchResponse403",), - ".group_0876": ("ProjectsProjectIdCollaboratorsUsernamePutBody",), - ".group_0877": ("ProjectsProjectIdColumnsPostBody",), - ".group_0878": ("ReposOwnerRepoDeleteResponse403",), - ".group_0879": ( + ".group_0872": ("ProjectsColumnsColumnIdMovesPostBody",), + ".group_0873": ("ProjectsColumnsColumnIdMovesPostResponse201",), + ".group_0874": ("ProjectsProjectIdDeleteResponse403",), + ".group_0875": ("ProjectsProjectIdPatchBody",), + ".group_0876": ("ProjectsProjectIdPatchResponse403",), + ".group_0877": ("ProjectsProjectIdCollaboratorsUsernamePutBody",), + ".group_0878": ("ProjectsProjectIdColumnsPostBody",), + ".group_0879": ("ReposOwnerRepoDeleteResponse403",), + ".group_0880": ( "ReposOwnerRepoPatchBody", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysis", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity", @@ -11910,55 +11914,55 @@ "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns", ), - ".group_0880": ("ReposOwnerRepoActionsArtifactsGetResponse200",), - ".group_0881": ("ReposOwnerRepoActionsJobsJobIdRerunPostBody",), - ".group_0882": ("ReposOwnerRepoActionsOidcCustomizationSubPutBody",), - ".group_0883": ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200",), - ".group_0884": ("ReposOwnerRepoActionsOrganizationVariablesGetResponse200",), - ".group_0885": ("ReposOwnerRepoActionsPermissionsPutBody",), - ".group_0886": ("ReposOwnerRepoActionsRunnersGetResponse200",), - ".group_0887": ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody",), - ".group_0888": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody",), - ".group_0889": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody",), - ".group_0890": ("ReposOwnerRepoActionsRunsGetResponse200",), - ".group_0891": ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200",), - ".group_0892": ( + ".group_0881": ("ReposOwnerRepoActionsArtifactsGetResponse200",), + ".group_0882": ("ReposOwnerRepoActionsJobsJobIdRerunPostBody",), + ".group_0883": ("ReposOwnerRepoActionsOidcCustomizationSubPutBody",), + ".group_0884": ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200",), + ".group_0885": ("ReposOwnerRepoActionsOrganizationVariablesGetResponse200",), + ".group_0886": ("ReposOwnerRepoActionsPermissionsPutBody",), + ".group_0887": ("ReposOwnerRepoActionsRunnersGetResponse200",), + ".group_0888": ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody",), + ".group_0889": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody",), + ".group_0890": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody",), + ".group_0891": ("ReposOwnerRepoActionsRunsGetResponse200",), + ".group_0892": ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200",), + ".group_0893": ( "ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200", ), - ".group_0893": ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200",), - ".group_0894": ("ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody",), - ".group_0895": ("ReposOwnerRepoActionsRunsRunIdRerunPostBody",), - ".group_0896": ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody",), - ".group_0897": ("ReposOwnerRepoActionsSecretsGetResponse200",), - ".group_0898": ("ReposOwnerRepoActionsSecretsSecretNamePutBody",), - ".group_0899": ("ReposOwnerRepoActionsVariablesGetResponse200",), - ".group_0900": ("ReposOwnerRepoActionsVariablesPostBody",), - ".group_0901": ("ReposOwnerRepoActionsVariablesNamePatchBody",), - ".group_0902": ( + ".group_0894": ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200",), + ".group_0895": ("ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody",), + ".group_0896": ("ReposOwnerRepoActionsRunsRunIdRerunPostBody",), + ".group_0897": ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody",), + ".group_0898": ("ReposOwnerRepoActionsSecretsGetResponse200",), + ".group_0899": ("ReposOwnerRepoActionsSecretsSecretNamePutBody",), + ".group_0900": ("ReposOwnerRepoActionsVariablesGetResponse200",), + ".group_0901": ("ReposOwnerRepoActionsVariablesPostBody",), + ".group_0902": ("ReposOwnerRepoActionsVariablesNamePatchBody",), + ".group_0903": ( "ReposOwnerRepoActionsWorkflowsGetResponse200", "Workflow", ), - ".group_0903": ( + ".group_0904": ( "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody", "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs", ), - ".group_0904": ("ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200",), - ".group_0905": ( + ".group_0905": ("ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200",), + ".group_0906": ( "ReposOwnerRepoAttestationsPostBody", "ReposOwnerRepoAttestationsPostBodyPropBundle", "ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial", "ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope", ), - ".group_0906": ("ReposOwnerRepoAttestationsPostResponse201",), - ".group_0907": ( + ".group_0907": ("ReposOwnerRepoAttestationsPostResponse201",), + ".group_0908": ( "ReposOwnerRepoAttestationsSubjectDigestGetResponse200", "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems", "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle", "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial", "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope", ), - ".group_0908": ("ReposOwnerRepoAutolinksPostBody",), - ".group_0909": ( + ".group_0909": ("ReposOwnerRepoAutolinksPostBody",), + ".group_0910": ( "ReposOwnerRepoBranchesBranchProtectionPutBody", "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks", "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems", @@ -11967,332 +11971,332 @@ "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances", "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions", ), - ".group_0910": ( + ".group_0911": ( "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody", "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions", "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances", ), - ".group_0911": ( + ".group_0912": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody", "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems", ), - ".group_0912": ( + ".group_0913": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0", ), - ".group_0913": ( + ".group_0914": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0", ), - ".group_0914": ( + ".group_0915": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0", ), - ".group_0915": ( + ".group_0916": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0", ), - ".group_0916": ( + ".group_0917": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0", ), - ".group_0917": ( + ".group_0918": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0", ), - ".group_0918": ( + ".group_0919": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0", ), - ".group_0919": ( + ".group_0920": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0", ), - ".group_0920": ( + ".group_0921": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0", ), - ".group_0921": ( + ".group_0922": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0", ), - ".group_0922": ( + ".group_0923": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0", ), - ".group_0923": ( + ".group_0924": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0", ), - ".group_0924": ("ReposOwnerRepoBranchesBranchRenamePostBody",), - ".group_0925": ( + ".group_0925": ("ReposOwnerRepoBranchesBranchRenamePostBody",), + ".group_0926": ( "ReposOwnerRepoCheckRunsPostBodyPropOutput", "ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems", "ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems", "ReposOwnerRepoCheckRunsPostBodyPropActionsItems", ), - ".group_0926": ("ReposOwnerRepoCheckRunsPostBodyOneof0",), - ".group_0927": ("ReposOwnerRepoCheckRunsPostBodyOneof1",), - ".group_0928": ( + ".group_0927": ("ReposOwnerRepoCheckRunsPostBodyOneof0",), + ".group_0928": ("ReposOwnerRepoCheckRunsPostBodyOneof1",), + ".group_0929": ( "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput", "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems", "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems", "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems", ), - ".group_0929": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0",), - ".group_0930": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1",), - ".group_0931": ("ReposOwnerRepoCheckSuitesPostBody",), - ".group_0932": ( + ".group_0930": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0",), + ".group_0931": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1",), + ".group_0932": ("ReposOwnerRepoCheckSuitesPostBody",), + ".group_0933": ( "ReposOwnerRepoCheckSuitesPreferencesPatchBody", "ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems", ), - ".group_0933": ( + ".group_0934": ( "ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200", ), - ".group_0934": ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody",), - ".group_0935": ( + ".group_0935": ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody",), + ".group_0936": ( "ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0", ), - ".group_0936": ( + ".group_0937": ( "ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1", ), - ".group_0937": ( + ".group_0938": ( "ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2", ), - ".group_0938": ("ReposOwnerRepoCodeScanningSarifsPostBody",), - ".group_0939": ("ReposOwnerRepoCodespacesGetResponse200",), - ".group_0940": ("ReposOwnerRepoCodespacesPostBody",), - ".group_0941": ( + ".group_0939": ("ReposOwnerRepoCodeScanningSarifsPostBody",), + ".group_0940": ("ReposOwnerRepoCodespacesGetResponse200",), + ".group_0941": ("ReposOwnerRepoCodespacesPostBody",), + ".group_0942": ( "ReposOwnerRepoCodespacesDevcontainersGetResponse200", "ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems", ), - ".group_0942": ("ReposOwnerRepoCodespacesMachinesGetResponse200",), - ".group_0943": ( + ".group_0943": ("ReposOwnerRepoCodespacesMachinesGetResponse200",), + ".group_0944": ( "ReposOwnerRepoCodespacesNewGetResponse200", "ReposOwnerRepoCodespacesNewGetResponse200PropDefaults", ), - ".group_0944": ( + ".group_0945": ( "ReposOwnerRepoCodespacesSecretsGetResponse200", "RepoCodespacesSecret", ), - ".group_0945": ("ReposOwnerRepoCodespacesSecretsSecretNamePutBody",), - ".group_0946": ("ReposOwnerRepoCollaboratorsUsernamePutBody",), - ".group_0947": ("ReposOwnerRepoCommentsCommentIdPatchBody",), - ".group_0948": ("ReposOwnerRepoCommentsCommentIdReactionsPostBody",), - ".group_0949": ("ReposOwnerRepoCommitsCommitShaCommentsPostBody",), - ".group_0950": ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200",), - ".group_0951": ( + ".group_0946": ("ReposOwnerRepoCodespacesSecretsSecretNamePutBody",), + ".group_0947": ("ReposOwnerRepoCollaboratorsUsernamePutBody",), + ".group_0948": ("ReposOwnerRepoCommentsCommentIdPatchBody",), + ".group_0949": ("ReposOwnerRepoCommentsCommentIdReactionsPostBody",), + ".group_0950": ("ReposOwnerRepoCommitsCommitShaCommentsPostBody",), + ".group_0951": ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200",), + ".group_0952": ( "ReposOwnerRepoContentsPathPutBody", "ReposOwnerRepoContentsPathPutBodyPropCommitter", "ReposOwnerRepoContentsPathPutBodyPropAuthor", ), - ".group_0952": ( + ".group_0953": ( "ReposOwnerRepoContentsPathDeleteBody", "ReposOwnerRepoContentsPathDeleteBodyPropCommitter", "ReposOwnerRepoContentsPathDeleteBodyPropAuthor", ), - ".group_0953": ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBody",), - ".group_0954": ( + ".group_0954": ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBody",), + ".group_0955": ( "ReposOwnerRepoDependabotSecretsGetResponse200", "DependabotSecret", ), - ".group_0955": ("ReposOwnerRepoDependabotSecretsSecretNamePutBody",), - ".group_0956": ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201",), - ".group_0957": ( + ".group_0956": ("ReposOwnerRepoDependabotSecretsSecretNamePutBody",), + ".group_0957": ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201",), + ".group_0958": ( "ReposOwnerRepoDeploymentsPostBody", "ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0", ), - ".group_0958": ("ReposOwnerRepoDeploymentsPostResponse202",), - ".group_0959": ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody",), - ".group_0960": ( + ".group_0959": ("ReposOwnerRepoDeploymentsPostResponse202",), + ".group_0960": ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody",), + ".group_0961": ( "ReposOwnerRepoDispatchesPostBody", "ReposOwnerRepoDispatchesPostBodyPropClientPayload", ), - ".group_0961": ( + ".group_0962": ( "ReposOwnerRepoEnvironmentsEnvironmentNamePutBody", "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems", ), - ".group_0962": ( + ".group_0963": ( "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200", "DeploymentBranchPolicy", ), - ".group_0963": ( + ".group_0964": ( "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody", ), - ".group_0964": ( + ".group_0965": ( "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200", ), - ".group_0965": ( + ".group_0966": ( "ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200", ), - ".group_0966": ( + ".group_0967": ( "ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody", ), - ".group_0967": ( + ".group_0968": ( "ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200", ), - ".group_0968": ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody",), - ".group_0969": ( + ".group_0969": ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody",), + ".group_0970": ( "ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody", ), - ".group_0970": ("ReposOwnerRepoForksPostBody",), - ".group_0971": ("ReposOwnerRepoGitBlobsPostBody",), - ".group_0972": ( + ".group_0971": ("ReposOwnerRepoForksPostBody",), + ".group_0972": ("ReposOwnerRepoGitBlobsPostBody",), + ".group_0973": ( "ReposOwnerRepoGitCommitsPostBody", "ReposOwnerRepoGitCommitsPostBodyPropAuthor", "ReposOwnerRepoGitCommitsPostBodyPropCommitter", ), - ".group_0973": ("ReposOwnerRepoGitRefsPostBody",), - ".group_0974": ("ReposOwnerRepoGitRefsRefPatchBody",), - ".group_0975": ( + ".group_0974": ("ReposOwnerRepoGitRefsPostBody",), + ".group_0975": ("ReposOwnerRepoGitRefsRefPatchBody",), + ".group_0976": ( "ReposOwnerRepoGitTagsPostBody", "ReposOwnerRepoGitTagsPostBodyPropTagger", ), - ".group_0976": ( + ".group_0977": ( "ReposOwnerRepoGitTreesPostBody", "ReposOwnerRepoGitTreesPostBodyPropTreeItems", ), - ".group_0977": ( + ".group_0978": ( "ReposOwnerRepoHooksPostBody", "ReposOwnerRepoHooksPostBodyPropConfig", ), - ".group_0978": ("ReposOwnerRepoHooksHookIdPatchBody",), - ".group_0979": ("ReposOwnerRepoHooksHookIdConfigPatchBody",), - ".group_0980": ("ReposOwnerRepoImportPutBody",), - ".group_0981": ("ReposOwnerRepoImportPatchBody",), - ".group_0982": ("ReposOwnerRepoImportAuthorsAuthorIdPatchBody",), - ".group_0983": ("ReposOwnerRepoImportLfsPatchBody",), - ".group_0984": ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1",), - ".group_0985": ("ReposOwnerRepoInvitationsInvitationIdPatchBody",), - ".group_0986": ( + ".group_0979": ("ReposOwnerRepoHooksHookIdPatchBody",), + ".group_0980": ("ReposOwnerRepoHooksHookIdConfigPatchBody",), + ".group_0981": ("ReposOwnerRepoImportPutBody",), + ".group_0982": ("ReposOwnerRepoImportPatchBody",), + ".group_0983": ("ReposOwnerRepoImportAuthorsAuthorIdPatchBody",), + ".group_0984": ("ReposOwnerRepoImportLfsPatchBody",), + ".group_0985": ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1",), + ".group_0986": ("ReposOwnerRepoInvitationsInvitationIdPatchBody",), + ".group_0987": ( "ReposOwnerRepoIssuesPostBody", "ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1", ), - ".group_0987": ("ReposOwnerRepoIssuesCommentsCommentIdPatchBody",), - ".group_0988": ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody",), - ".group_0989": ( + ".group_0988": ("ReposOwnerRepoIssuesCommentsCommentIdPatchBody",), + ".group_0989": ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody",), + ".group_0990": ( "ReposOwnerRepoIssuesIssueNumberPatchBody", "ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1", ), - ".group_0990": ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBody",), - ".group_0991": ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody",), - ".group_0992": ("ReposOwnerRepoIssuesIssueNumberCommentsPostBody",), - ".group_0993": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0",), - ".group_0994": ( + ".group_0991": ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBody",), + ".group_0992": ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody",), + ".group_0993": ("ReposOwnerRepoIssuesIssueNumberCommentsPostBody",), + ".group_0994": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0",), + ".group_0995": ( "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2", "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems", ), - ".group_0995": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items",), - ".group_0996": ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0",), - ".group_0997": ( + ".group_0996": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items",), + ".group_0997": ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0",), + ".group_0998": ( "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2", "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems", ), - ".group_0998": ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items",), - ".group_0999": ("ReposOwnerRepoIssuesIssueNumberLockPutBody",), - ".group_1000": ("ReposOwnerRepoIssuesIssueNumberReactionsPostBody",), - ".group_1001": ("ReposOwnerRepoKeysPostBody",), - ".group_1002": ("ReposOwnerRepoLabelsPostBody",), - ".group_1003": ("ReposOwnerRepoLabelsNamePatchBody",), - ".group_1004": ("ReposOwnerRepoMergeUpstreamPostBody",), - ".group_1005": ("ReposOwnerRepoMergesPostBody",), - ".group_1006": ("ReposOwnerRepoMilestonesPostBody",), - ".group_1007": ("ReposOwnerRepoMilestonesMilestoneNumberPatchBody",), - ".group_1008": ("ReposOwnerRepoNotificationsPutBody",), - ".group_1009": ("ReposOwnerRepoNotificationsPutResponse202",), - ".group_1010": ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1",), - ".group_1011": ("ReposOwnerRepoPagesPutBodyAnyof0",), - ".group_1012": ("ReposOwnerRepoPagesPutBodyAnyof1",), - ".group_1013": ("ReposOwnerRepoPagesPutBodyAnyof2",), - ".group_1014": ("ReposOwnerRepoPagesPutBodyAnyof3",), - ".group_1015": ("ReposOwnerRepoPagesPutBodyAnyof4",), - ".group_1016": ("ReposOwnerRepoPagesPostBodyPropSource",), - ".group_1017": ("ReposOwnerRepoPagesPostBodyAnyof0",), - ".group_1018": ("ReposOwnerRepoPagesPostBodyAnyof1",), - ".group_1019": ("ReposOwnerRepoPagesDeploymentsPostBody",), - ".group_1020": ("ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200",), - ".group_1021": ("ReposOwnerRepoProjectsPostBody",), - ".group_1022": ("ReposOwnerRepoPropertiesValuesPatchBody",), - ".group_1023": ("ReposOwnerRepoPullsPostBody",), - ".group_1024": ("ReposOwnerRepoPullsCommentsCommentIdPatchBody",), - ".group_1025": ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody",), - ".group_1026": ("ReposOwnerRepoPullsPullNumberPatchBody",), - ".group_1027": ("ReposOwnerRepoPullsPullNumberCodespacesPostBody",), - ".group_1028": ("ReposOwnerRepoPullsPullNumberCommentsPostBody",), - ".group_1029": ( + ".group_0999": ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items",), + ".group_1000": ("ReposOwnerRepoIssuesIssueNumberLockPutBody",), + ".group_1001": ("ReposOwnerRepoIssuesIssueNumberReactionsPostBody",), + ".group_1002": ("ReposOwnerRepoKeysPostBody",), + ".group_1003": ("ReposOwnerRepoLabelsPostBody",), + ".group_1004": ("ReposOwnerRepoLabelsNamePatchBody",), + ".group_1005": ("ReposOwnerRepoMergeUpstreamPostBody",), + ".group_1006": ("ReposOwnerRepoMergesPostBody",), + ".group_1007": ("ReposOwnerRepoMilestonesPostBody",), + ".group_1008": ("ReposOwnerRepoMilestonesMilestoneNumberPatchBody",), + ".group_1009": ("ReposOwnerRepoNotificationsPutBody",), + ".group_1010": ("ReposOwnerRepoNotificationsPutResponse202",), + ".group_1011": ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1",), + ".group_1012": ("ReposOwnerRepoPagesPutBodyAnyof0",), + ".group_1013": ("ReposOwnerRepoPagesPutBodyAnyof1",), + ".group_1014": ("ReposOwnerRepoPagesPutBodyAnyof2",), + ".group_1015": ("ReposOwnerRepoPagesPutBodyAnyof3",), + ".group_1016": ("ReposOwnerRepoPagesPutBodyAnyof4",), + ".group_1017": ("ReposOwnerRepoPagesPostBodyPropSource",), + ".group_1018": ("ReposOwnerRepoPagesPostBodyAnyof0",), + ".group_1019": ("ReposOwnerRepoPagesPostBodyAnyof1",), + ".group_1020": ("ReposOwnerRepoPagesDeploymentsPostBody",), + ".group_1021": ("ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200",), + ".group_1022": ("ReposOwnerRepoProjectsPostBody",), + ".group_1023": ("ReposOwnerRepoPropertiesValuesPatchBody",), + ".group_1024": ("ReposOwnerRepoPullsPostBody",), + ".group_1025": ("ReposOwnerRepoPullsCommentsCommentIdPatchBody",), + ".group_1026": ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody",), + ".group_1027": ("ReposOwnerRepoPullsPullNumberPatchBody",), + ".group_1028": ("ReposOwnerRepoPullsPullNumberCodespacesPostBody",), + ".group_1029": ("ReposOwnerRepoPullsPullNumberCommentsPostBody",), + ".group_1030": ( "ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody", ), - ".group_1030": ("ReposOwnerRepoPullsPullNumberMergePutBody",), - ".group_1031": ("ReposOwnerRepoPullsPullNumberMergePutResponse405",), - ".group_1032": ("ReposOwnerRepoPullsPullNumberMergePutResponse409",), - ".group_1033": ( + ".group_1031": ("ReposOwnerRepoPullsPullNumberMergePutBody",), + ".group_1032": ("ReposOwnerRepoPullsPullNumberMergePutResponse405",), + ".group_1033": ("ReposOwnerRepoPullsPullNumberMergePutResponse409",), + ".group_1034": ( "ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0", ), - ".group_1034": ( + ".group_1035": ( "ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1", ), - ".group_1035": ("ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody",), - ".group_1036": ( + ".group_1036": ("ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody",), + ".group_1037": ( "ReposOwnerRepoPullsPullNumberReviewsPostBody", "ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems", ), - ".group_1037": ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody",), - ".group_1038": ( + ".group_1038": ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody",), + ".group_1039": ( "ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody", ), - ".group_1039": ("ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody",), - ".group_1040": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBody",), - ".group_1041": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202",), - ".group_1042": ("ReposOwnerRepoReleasesPostBody",), - ".group_1043": ("ReposOwnerRepoReleasesAssetsAssetIdPatchBody",), - ".group_1044": ("ReposOwnerRepoReleasesGenerateNotesPostBody",), - ".group_1045": ("ReposOwnerRepoReleasesReleaseIdPatchBody",), - ".group_1046": ("ReposOwnerRepoReleasesReleaseIdReactionsPostBody",), - ".group_1047": ("ReposOwnerRepoRulesetsPostBody",), - ".group_1048": ("ReposOwnerRepoRulesetsRulesetIdPutBody",), - ".group_1049": ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody",), - ".group_1050": ("ReposOwnerRepoStatusesShaPostBody",), - ".group_1051": ("ReposOwnerRepoSubscriptionPutBody",), - ".group_1052": ("ReposOwnerRepoTagsProtectionPostBody",), - ".group_1053": ("ReposOwnerRepoTopicsPutBody",), - ".group_1054": ("ReposOwnerRepoTransferPostBody",), - ".group_1055": ("ReposTemplateOwnerTemplateRepoGeneratePostBody",), - ".group_1056": ("TeamsTeamIdPatchBody",), - ".group_1057": ("TeamsTeamIdDiscussionsPostBody",), - ".group_1058": ("TeamsTeamIdDiscussionsDiscussionNumberPatchBody",), - ".group_1059": ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody",), - ".group_1060": ( + ".group_1040": ("ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody",), + ".group_1041": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBody",), + ".group_1042": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202",), + ".group_1043": ("ReposOwnerRepoReleasesPostBody",), + ".group_1044": ("ReposOwnerRepoReleasesAssetsAssetIdPatchBody",), + ".group_1045": ("ReposOwnerRepoReleasesGenerateNotesPostBody",), + ".group_1046": ("ReposOwnerRepoReleasesReleaseIdPatchBody",), + ".group_1047": ("ReposOwnerRepoReleasesReleaseIdReactionsPostBody",), + ".group_1048": ("ReposOwnerRepoRulesetsPostBody",), + ".group_1049": ("ReposOwnerRepoRulesetsRulesetIdPutBody",), + ".group_1050": ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody",), + ".group_1051": ("ReposOwnerRepoStatusesShaPostBody",), + ".group_1052": ("ReposOwnerRepoSubscriptionPutBody",), + ".group_1053": ("ReposOwnerRepoTagsProtectionPostBody",), + ".group_1054": ("ReposOwnerRepoTopicsPutBody",), + ".group_1055": ("ReposOwnerRepoTransferPostBody",), + ".group_1056": ("ReposTemplateOwnerTemplateRepoGeneratePostBody",), + ".group_1057": ("TeamsTeamIdPatchBody",), + ".group_1058": ("TeamsTeamIdDiscussionsPostBody",), + ".group_1059": ("TeamsTeamIdDiscussionsDiscussionNumberPatchBody",), + ".group_1060": ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody",), + ".group_1061": ( "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody", ), - ".group_1061": ( + ".group_1062": ( "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody", ), - ".group_1062": ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody",), - ".group_1063": ("TeamsTeamIdMembershipsUsernamePutBody",), - ".group_1064": ("TeamsTeamIdProjectsProjectIdPutBody",), - ".group_1065": ("TeamsTeamIdProjectsProjectIdPutResponse403",), - ".group_1066": ("TeamsTeamIdReposOwnerRepoPutBody",), - ".group_1067": ("UserPatchBody",), - ".group_1068": ("UserCodespacesGetResponse200",), - ".group_1069": ("UserCodespacesPostBodyOneof0",), - ".group_1070": ( + ".group_1063": ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody",), + ".group_1064": ("TeamsTeamIdMembershipsUsernamePutBody",), + ".group_1065": ("TeamsTeamIdProjectsProjectIdPutBody",), + ".group_1066": ("TeamsTeamIdProjectsProjectIdPutResponse403",), + ".group_1067": ("TeamsTeamIdReposOwnerRepoPutBody",), + ".group_1068": ("UserPatchBody",), + ".group_1069": ("UserCodespacesGetResponse200",), + ".group_1070": ("UserCodespacesPostBodyOneof0",), + ".group_1071": ( "UserCodespacesPostBodyOneof1", "UserCodespacesPostBodyOneof1PropPullRequest", ), - ".group_1071": ( + ".group_1072": ( "UserCodespacesSecretsGetResponse200", "CodespacesSecret", ), - ".group_1072": ("UserCodespacesSecretsSecretNamePutBody",), - ".group_1073": ("UserCodespacesSecretsSecretNameRepositoriesGetResponse200",), - ".group_1074": ("UserCodespacesSecretsSecretNameRepositoriesPutBody",), - ".group_1075": ("UserCodespacesCodespaceNamePatchBody",), - ".group_1076": ("UserCodespacesCodespaceNameMachinesGetResponse200",), - ".group_1077": ("UserCodespacesCodespaceNamePublishPostBody",), - ".group_1078": ("UserEmailVisibilityPatchBody",), - ".group_1079": ("UserEmailsPostBodyOneof0",), - ".group_1080": ("UserEmailsDeleteBodyOneof0",), - ".group_1081": ("UserGpgKeysPostBody",), - ".group_1082": ("UserInstallationsGetResponse200",), - ".group_1083": ("UserInstallationsInstallationIdRepositoriesGetResponse200",), - ".group_1084": ("UserInteractionLimitsGetResponse200Anyof1",), - ".group_1085": ("UserKeysPostBody",), - ".group_1086": ("UserMembershipsOrgsOrgPatchBody",), - ".group_1087": ("UserMigrationsPostBody",), - ".group_1088": ("UserProjectsPostBody",), - ".group_1089": ("UserReposPostBody",), - ".group_1090": ("UserSocialAccountsPostBody",), - ".group_1091": ("UserSocialAccountsDeleteBody",), - ".group_1092": ("UserSshSigningKeysPostBody",), - ".group_1093": ( + ".group_1073": ("UserCodespacesSecretsSecretNamePutBody",), + ".group_1074": ("UserCodespacesSecretsSecretNameRepositoriesGetResponse200",), + ".group_1075": ("UserCodespacesSecretsSecretNameRepositoriesPutBody",), + ".group_1076": ("UserCodespacesCodespaceNamePatchBody",), + ".group_1077": ("UserCodespacesCodespaceNameMachinesGetResponse200",), + ".group_1078": ("UserCodespacesCodespaceNamePublishPostBody",), + ".group_1079": ("UserEmailVisibilityPatchBody",), + ".group_1080": ("UserEmailsPostBodyOneof0",), + ".group_1081": ("UserEmailsDeleteBodyOneof0",), + ".group_1082": ("UserGpgKeysPostBody",), + ".group_1083": ("UserInstallationsGetResponse200",), + ".group_1084": ("UserInstallationsInstallationIdRepositoriesGetResponse200",), + ".group_1085": ("UserInteractionLimitsGetResponse200Anyof1",), + ".group_1086": ("UserKeysPostBody",), + ".group_1087": ("UserMembershipsOrgsOrgPatchBody",), + ".group_1088": ("UserMigrationsPostBody",), + ".group_1089": ("UserProjectsPostBody",), + ".group_1090": ("UserReposPostBody",), + ".group_1091": ("UserSocialAccountsPostBody",), + ".group_1092": ("UserSocialAccountsDeleteBody",), + ".group_1093": ("UserSshSigningKeysPostBody",), + ".group_1094": ( "UsersUsernameAttestationsSubjectDigestGetResponse200", "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems", "SigstoreBundle0", diff --git a/githubkit/versions/v2022_11_28/models/group_0058.py b/githubkit/versions/v2022_11_28/models/group_0058.py index c454530e4..6bcbcbb0c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0058.py +++ b/githubkit/versions/v2022_11_28/models/group_0058.py @@ -75,27 +75,27 @@ class OrganizationFull(GitHubModel): web_commit_signoff_required: Missing[bool] = Field(default=UNSET) advanced_security_enabled_for_new_repositories: Missing[bool] = Field( default=UNSET, - description="Whether 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.", + description="**Deprecated.** 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="Whether GitHub Advanced Security is automatically enabled for new repositories and repositories transferred to\nthis organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", + description="**Deprecated.** 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="Whether dependabot security updates are automatically enabled for new repositories and repositories transferred\nto this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", + description="**Deprecated.** 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="Whether dependency graph is automatically enabled for new repositories and repositories transferred to this\norganization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", + description="**Deprecated.** 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="Whether secret scanning is automatically enabled for new repositories and repositories transferred to this\norganization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", + description="**Deprecated.** 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="Whether secret scanning push protection is automatically enabled for new repositories and repositories\ntransferred to this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", + description="**Deprecated.** 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, diff --git a/githubkit/versions/v2022_11_28/models/group_0074.py b/githubkit/versions/v2022_11_28/models/group_0074.py index f3d32b974..dc9b025ac 100644 --- a/githubkit/versions/v2022_11_28/models/group_0074.py +++ b/githubkit/versions/v2022_11_28/models/group_0074.py @@ -80,6 +80,9 @@ class CodeSecurityConfiguration(GitHubModel): 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" + ) url: Missing[str] = Field(default=UNSET, description="The URL of the configuration") html_url: Missing[str] = Field( default=UNSET, description="The URL of the configuration" diff --git a/githubkit/versions/v2022_11_28/models/group_0775.py b/githubkit/versions/v2022_11_28/models/group_0775.py index bd7d8df68..4649f0ff6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0775.py +++ b/githubkit/versions/v2022_11_28/models/group_0775.py @@ -99,27 +99,27 @@ class OrgsOrgPatchBody(GitHubModel): blog: Missing[str] = Field(default=UNSET) advanced_security_enabled_for_new_repositories: Missing[bool] = Field( default=UNSET, - description='Whether GitHub Advanced Security is automatically enabled for new repositories.\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.', + description='**Deprecated.** 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='Whether Dependabot alerts is automatically enabled for new repositories.\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.', + description='**Deprecated.** 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='Whether Dependabot security updates is automatically enabled for new repositories.\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.', + description='**Deprecated.** 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='Whether dependency graph is automatically enabled for new repositories.\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.', + description='**Deprecated.** 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='Whether secret scanning is automatically enabled for new repositories.\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.', + description='**Deprecated.** 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='Whether secret scanning push protection is automatically enabled for new repositories.\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.', + description='**Deprecated.** 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, diff --git a/githubkit/versions/v2022_11_28/models/group_0797.py b/githubkit/versions/v2022_11_28/models/group_0797.py index 2da6058bd..765e1495c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0797.py +++ b/githubkit/versions/v2022_11_28/models/group_0797.py @@ -69,6 +69,9 @@ class OrgsOrgCodeSecurityConfigurationsPostBody(GitHubModel): default=UNSET, description="The enablement status of private vulnerability reporting", ) + enforcement: Missing[Literal["enforced", "unenforced"]] = Field( + default=UNSET, description="The status of enforcement" + ) model_rebuild(OrgsOrgCodeSecurityConfigurationsPostBody) diff --git a/githubkit/versions/v2022_11_28/models/group_0798.py b/githubkit/versions/v2022_11_28/models/group_0798.py index 1072146d2..04915d58c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0798.py +++ b/githubkit/versions/v2022_11_28/models/group_0798.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import List from pydantic import Field @@ -18,62 +18,15 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody(GitHubModel): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody""" +class OrgsOrgCodeSecurityConfigurationsDetachDeleteBody(GitHubModel): + """OrgsOrgCodeSecurityConfigurationsDetachDeleteBody""" - name: Missing[str] = Field( + selected_repository_ids: Missing[List[int]] = 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"]] = Field( - default=UNSET, description="The enablement status of GitHub Advanced Security" - ) - dependency_graph: Missing[Literal["enabled", "disabled", "not_set"]] = Field( - default=UNSET, description="The enablement status of Dependency Graph" - ) - 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", - ) - ) - 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", - ) - private_vulnerability_reporting: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of private vulnerability reporting", + description="An array of repository IDs to detach from configurations.", ) -model_rebuild(OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody) +model_rebuild(OrgsOrgCodeSecurityConfigurationsDetachDeleteBody) -__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody",) +__all__ = ("OrgsOrgCodeSecurityConfigurationsDetachDeleteBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0799.py b/githubkit/versions/v2022_11_28/models/group_0799.py index e88386374..01ce26c33 100644 --- a/githubkit/versions/v2022_11_28/models/group_0799.py +++ b/githubkit/versions/v2022_11_28/models/group_0799.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Literal +from typing import Literal from pydantic import Field @@ -18,18 +18,65 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody(GitHubModel): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody""" +class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody(GitHubModel): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody""" - scope: Literal["all", "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`" + 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"]] = Field( + default=UNSET, description="The enablement status of GitHub Advanced Security" + ) + dependency_graph: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, description="The enablement status of Dependency Graph" + ) + 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", + ) ) - 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", + ) + ) + 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="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`.", + description="The enablement status of secret scanning validity checks", + ) + 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 status of enforcement" ) -model_rebuild(OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody) +model_rebuild(OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody) -__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody",) +__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0800.py b/githubkit/versions/v2022_11_28/models/group_0800.py index 0a1d8ab6e..e88386374 100644 --- a/githubkit/versions/v2022_11_28/models/group_0800.py +++ b/githubkit/versions/v2022_11_28/models/group_0800.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import List, Literal from pydantic import Field @@ -18,17 +18,18 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody(GitHubModel): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody""" +class OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody(GitHubModel): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody""" - default_for_new_repos: Missing[ - Literal["all", "none", "private_and_internal", "public"] - ] = Field( + scope: Literal["all", "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="Specify which types of repository this security configuration should be applied to by default.", + 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(OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody) +model_rebuild(OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody) -__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody",) +__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0801.py b/githubkit/versions/v2022_11_28/models/group_0801.py index be2cf271f..0a1d8ab6e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0801.py +++ b/githubkit/versions/v2022_11_28/models/group_0801.py @@ -17,25 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0074 import CodeSecurityConfiguration - -class OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200( - GitHubModel -): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200""" +class OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody(GitHubModel): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody""" 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" + description="Specify which types of repository this security configuration should be applied to by default.", ) -model_rebuild(OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200) +model_rebuild(OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody) -__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200",) +__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0802.py b/githubkit/versions/v2022_11_28/models/group_0802.py index 8998f5014..be2cf271f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0802.py +++ b/githubkit/versions/v2022_11_28/models/group_0802.py @@ -9,22 +9,33 @@ from __future__ import annotations -from typing import List +from typing import Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0078 import Codespace +from .group_0074 import CodeSecurityConfiguration -class OrgsOrgCodespacesGetResponse200(GitHubModel): - """OrgsOrgCodespacesGetResponse200""" +class OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200( + GitHubModel +): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200""" - total_count: int = Field() - codespaces: List[Codespace] = Field() + 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(OrgsOrgCodespacesGetResponse200) +model_rebuild(OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200) -__all__ = ("OrgsOrgCodespacesGetResponse200",) +__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0803.py b/githubkit/versions/v2022_11_28/models/group_0803.py index cd24940ff..8998f5014 100644 --- a/githubkit/versions/v2022_11_28/models/group_0803.py +++ b/githubkit/versions/v2022_11_28/models/group_0803.py @@ -9,33 +9,22 @@ from __future__ import annotations -from typing import List, Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0078 import Codespace -class OrgsOrgCodespacesAccessPutBody(GitHubModel): - """OrgsOrgCodespacesAccessPutBody""" - 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, - 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.", - ) +class OrgsOrgCodespacesGetResponse200(GitHubModel): + """OrgsOrgCodespacesGetResponse200""" + total_count: int = Field() + codespaces: List[Codespace] = Field() -model_rebuild(OrgsOrgCodespacesAccessPutBody) -__all__ = ("OrgsOrgCodespacesAccessPutBody",) +model_rebuild(OrgsOrgCodespacesGetResponse200) + +__all__ = ("OrgsOrgCodespacesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0804.py b/githubkit/versions/v2022_11_28/models/group_0804.py index 9c21960a6..cd24940ff 100644 --- a/githubkit/versions/v2022_11_28/models/group_0804.py +++ b/githubkit/versions/v2022_11_28/models/group_0804.py @@ -9,22 +9,33 @@ from __future__ import annotations -from typing import List +from typing import List, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgCodespacesAccessSelectedUsersPostBody(GitHubModel): - """OrgsOrgCodespacesAccessSelectedUsersPostBody""" +class OrgsOrgCodespacesAccessPutBody(GitHubModel): + """OrgsOrgCodespacesAccessPutBody""" - selected_usernames: List[str] = Field( + 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, - description="The usernames of the organization members whose codespaces be billed to the organization.", + 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(OrgsOrgCodespacesAccessSelectedUsersPostBody) +model_rebuild(OrgsOrgCodespacesAccessPutBody) -__all__ = ("OrgsOrgCodespacesAccessSelectedUsersPostBody",) +__all__ = ("OrgsOrgCodespacesAccessPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0805.py b/githubkit/versions/v2022_11_28/models/group_0805.py index 83b1c7887..9c21960a6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0805.py +++ b/githubkit/versions/v2022_11_28/models/group_0805.py @@ -16,15 +16,15 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgCodespacesAccessSelectedUsersDeleteBody(GitHubModel): - """OrgsOrgCodespacesAccessSelectedUsersDeleteBody""" +class OrgsOrgCodespacesAccessSelectedUsersPostBody(GitHubModel): + """OrgsOrgCodespacesAccessSelectedUsersPostBody""" selected_usernames: List[str] = Field( max_length=100, - description="The usernames of the organization members whose codespaces should not be billed to the organization.", + description="The usernames of the organization members whose codespaces be billed to the organization.", ) -model_rebuild(OrgsOrgCodespacesAccessSelectedUsersDeleteBody) +model_rebuild(OrgsOrgCodespacesAccessSelectedUsersPostBody) -__all__ = ("OrgsOrgCodespacesAccessSelectedUsersDeleteBody",) +__all__ = ("OrgsOrgCodespacesAccessSelectedUsersPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0806.py b/githubkit/versions/v2022_11_28/models/group_0806.py index 05a3214de..83b1c7887 100644 --- a/githubkit/versions/v2022_11_28/models/group_0806.py +++ b/githubkit/versions/v2022_11_28/models/group_0806.py @@ -9,49 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgCodespacesSecretsGetResponse200(GitHubModel): - """OrgsOrgCodespacesSecretsGetResponse200""" +class OrgsOrgCodespacesAccessSelectedUsersDeleteBody(GitHubModel): + """OrgsOrgCodespacesAccessSelectedUsersDeleteBody""" - total_count: int = Field() - secrets: List[CodespacesOrgSecret] = Field() - - -class CodespacesOrgSecret(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 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", + selected_usernames: List[str] = Field( + max_length=100, + description="The usernames of the organization members whose codespaces should not be billed to the organization.", ) -model_rebuild(OrgsOrgCodespacesSecretsGetResponse200) -model_rebuild(CodespacesOrgSecret) +model_rebuild(OrgsOrgCodespacesAccessSelectedUsersDeleteBody) -__all__ = ( - "OrgsOrgCodespacesSecretsGetResponse200", - "CodespacesOrgSecret", -) +__all__ = ("OrgsOrgCodespacesAccessSelectedUsersDeleteBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0807.py b/githubkit/versions/v2022_11_28/models/group_0807.py index ee76d8e8a..05a3214de 100644 --- a/githubkit/versions/v2022_11_28/models/group_0807.py +++ b/githubkit/versions/v2022_11_28/models/group_0807.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import List, Literal from pydantic import Field @@ -18,26 +19,39 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgCodespacesSecretsSecretNamePutBody(GitHubModel): - """OrgsOrgCodespacesSecretsSecretNamePutBody""" +class OrgsOrgCodespacesSecretsGetResponse200(GitHubModel): + """OrgsOrgCodespacesSecretsGetResponse200""" - 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.", + total_count: int = Field() + secrets: List[CodespacesOrgSecret] = Field() + + +class CodespacesOrgSecret(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." ) - key_id: Missing[str] = Field( - default=UNSET, description="The ID of the key you used to encrypt the secret." + 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="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." + description="The type of repositories in the organization that the secret is visible to" ) - selected_repository_ids: Missing[List[int]] = Field( + selected_repositories_url: 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/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 API URL at which the list of repositories this secret is visible to can be retrieved", ) -model_rebuild(OrgsOrgCodespacesSecretsSecretNamePutBody) +model_rebuild(OrgsOrgCodespacesSecretsGetResponse200) +model_rebuild(CodespacesOrgSecret) -__all__ = ("OrgsOrgCodespacesSecretsSecretNamePutBody",) +__all__ = ( + "OrgsOrgCodespacesSecretsGetResponse200", + "CodespacesOrgSecret", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0808.py b/githubkit/versions/v2022_11_28/models/group_0808.py index 90f5f61a7..ee76d8e8a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0808.py +++ b/githubkit/versions/v2022_11_28/models/group_0808.py @@ -9,22 +9,35 @@ from __future__ import annotations -from typing import List +from typing import List, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0055 import MinimalRepository +class OrgsOrgCodespacesSecretsSecretNamePutBody(GitHubModel): + """OrgsOrgCodespacesSecretsSecretNamePutBody""" -class OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200(GitHubModel): - """OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200""" + 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.", + ) - total_count: int = Field() - repositories: List[MinimalRepository] = Field() +model_rebuild(OrgsOrgCodespacesSecretsSecretNamePutBody) -model_rebuild(OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200) - -__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200",) +__all__ = ("OrgsOrgCodespacesSecretsSecretNamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0809.py b/githubkit/versions/v2022_11_28/models/group_0809.py index 83e351b74..90f5f61a7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0809.py +++ b/githubkit/versions/v2022_11_28/models/group_0809.py @@ -15,15 +15,16 @@ from githubkit.compat import GitHubModel, model_rebuild +from .group_0055 import MinimalRepository -class OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody(GitHubModel): - """OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody""" - 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." - ) +class OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200(GitHubModel): + """OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200""" + total_count: int = Field() + repositories: List[MinimalRepository] = Field() -model_rebuild(OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody) -__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody",) +model_rebuild(OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200) + +__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0810.py b/githubkit/versions/v2022_11_28/models/group_0810.py index 0610a1af7..83e351b74 100644 --- a/githubkit/versions/v2022_11_28/models/group_0810.py +++ b/githubkit/versions/v2022_11_28/models/group_0810.py @@ -13,23 +13,17 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0028 import CopilotSeatDetails +class OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody(GitHubModel): + """OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody""" -class OrgsOrgCopilotBillingSeatsGetResponse200(GitHubModel): - """OrgsOrgCopilotBillingSeatsGetResponse200""" - - total_seats: Missing[int] = Field( - default=UNSET, - description="Total number of Copilot seats for the organization currently being billed.", + 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." ) - seats: Missing[List[CopilotSeatDetails]] = Field(default=UNSET) -model_rebuild(OrgsOrgCopilotBillingSeatsGetResponse200) +model_rebuild(OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody) -__all__ = ("OrgsOrgCopilotBillingSeatsGetResponse200",) +__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0811.py b/githubkit/versions/v2022_11_28/models/group_0811.py index 022333c11..0610a1af7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0811.py +++ b/githubkit/versions/v2022_11_28/models/group_0811.py @@ -13,18 +13,23 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0028 import CopilotSeatDetails -class OrgsOrgCopilotBillingSelectedTeamsPostBody(GitHubModel): - """OrgsOrgCopilotBillingSelectedTeamsPostBody""" - selected_teams: List[str] = Field( - min_length=1, - description="List of team names within the organization to which to grant access to GitHub Copilot.", +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(OrgsOrgCopilotBillingSelectedTeamsPostBody) +model_rebuild(OrgsOrgCopilotBillingSeatsGetResponse200) -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostBody",) +__all__ = ("OrgsOrgCopilotBillingSeatsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0812.py b/githubkit/versions/v2022_11_28/models/group_0812.py index 584db74a2..022333c11 100644 --- a/githubkit/versions/v2022_11_28/models/group_0812.py +++ b/githubkit/versions/v2022_11_28/models/group_0812.py @@ -9,20 +9,22 @@ from __future__ import annotations +from typing import List + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgCopilotBillingSelectedTeamsPostResponse201(GitHubModel): - """OrgsOrgCopilotBillingSelectedTeamsPostResponse201 - - The total number of seat assignments created. - """ +class OrgsOrgCopilotBillingSelectedTeamsPostBody(GitHubModel): + """OrgsOrgCopilotBillingSelectedTeamsPostBody""" - seats_created: int = Field() + selected_teams: List[str] = Field( + min_length=1, + description="List of team names within the organization to which to grant access to GitHub Copilot.", + ) -model_rebuild(OrgsOrgCopilotBillingSelectedTeamsPostResponse201) +model_rebuild(OrgsOrgCopilotBillingSelectedTeamsPostBody) -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201",) +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0813.py b/githubkit/versions/v2022_11_28/models/group_0813.py index e5bd04750..584db74a2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0813.py +++ b/githubkit/versions/v2022_11_28/models/group_0813.py @@ -9,22 +9,20 @@ from __future__ import annotations -from typing import List - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgCopilotBillingSelectedTeamsDeleteBody(GitHubModel): - """OrgsOrgCopilotBillingSelectedTeamsDeleteBody""" +class OrgsOrgCopilotBillingSelectedTeamsPostResponse201(GitHubModel): + """OrgsOrgCopilotBillingSelectedTeamsPostResponse201 + + The total number of seat assignments created. + """ - selected_teams: List[str] = Field( - min_length=1, - description="The names of teams from which to revoke access to GitHub Copilot.", - ) + seats_created: int = Field() -model_rebuild(OrgsOrgCopilotBillingSelectedTeamsDeleteBody) +model_rebuild(OrgsOrgCopilotBillingSelectedTeamsPostResponse201) -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteBody",) +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201",) diff --git a/githubkit/versions/v2022_11_28/models/group_0814.py b/githubkit/versions/v2022_11_28/models/group_0814.py index e6a322116..e5bd04750 100644 --- a/githubkit/versions/v2022_11_28/models/group_0814.py +++ b/githubkit/versions/v2022_11_28/models/group_0814.py @@ -9,20 +9,22 @@ from __future__ import annotations +from typing import List + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200(GitHubModel): - """OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200 - - The total number of seat assignments cancelled. - """ +class OrgsOrgCopilotBillingSelectedTeamsDeleteBody(GitHubModel): + """OrgsOrgCopilotBillingSelectedTeamsDeleteBody""" - seats_cancelled: int = Field() + selected_teams: List[str] = Field( + min_length=1, + description="The names of teams from which to revoke access to GitHub Copilot.", + ) -model_rebuild(OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200) +model_rebuild(OrgsOrgCopilotBillingSelectedTeamsDeleteBody) -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200",) +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0815.py b/githubkit/versions/v2022_11_28/models/group_0815.py index 184351fa2..e6a322116 100644 --- a/githubkit/versions/v2022_11_28/models/group_0815.py +++ b/githubkit/versions/v2022_11_28/models/group_0815.py @@ -9,22 +9,20 @@ from __future__ import annotations -from typing import List - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgCopilotBillingSelectedUsersPostBody(GitHubModel): - """OrgsOrgCopilotBillingSelectedUsersPostBody""" +class OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200(GitHubModel): + """OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200 + + The total number of seat assignments cancelled. + """ - selected_usernames: List[str] = Field( - min_length=1, - description="The usernames of the organization members to be granted access to GitHub Copilot.", - ) + seats_cancelled: int = Field() -model_rebuild(OrgsOrgCopilotBillingSelectedUsersPostBody) +model_rebuild(OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200) -__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostBody",) +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0816.py b/githubkit/versions/v2022_11_28/models/group_0816.py index 6e2dccf88..184351fa2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0816.py +++ b/githubkit/versions/v2022_11_28/models/group_0816.py @@ -9,20 +9,22 @@ from __future__ import annotations +from typing import List + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgCopilotBillingSelectedUsersPostResponse201(GitHubModel): - """OrgsOrgCopilotBillingSelectedUsersPostResponse201 - - The total number of seat assignments created. - """ +class OrgsOrgCopilotBillingSelectedUsersPostBody(GitHubModel): + """OrgsOrgCopilotBillingSelectedUsersPostBody""" - seats_created: int = Field() + selected_usernames: List[str] = Field( + min_length=1, + description="The usernames of the organization members to be granted access to GitHub Copilot.", + ) -model_rebuild(OrgsOrgCopilotBillingSelectedUsersPostResponse201) +model_rebuild(OrgsOrgCopilotBillingSelectedUsersPostBody) -__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostResponse201",) +__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0817.py b/githubkit/versions/v2022_11_28/models/group_0817.py index 291c94f37..6e2dccf88 100644 --- a/githubkit/versions/v2022_11_28/models/group_0817.py +++ b/githubkit/versions/v2022_11_28/models/group_0817.py @@ -9,22 +9,20 @@ from __future__ import annotations -from typing import List - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgCopilotBillingSelectedUsersDeleteBody(GitHubModel): - """OrgsOrgCopilotBillingSelectedUsersDeleteBody""" +class OrgsOrgCopilotBillingSelectedUsersPostResponse201(GitHubModel): + """OrgsOrgCopilotBillingSelectedUsersPostResponse201 + + The total number of seat assignments created. + """ - selected_usernames: List[str] = Field( - min_length=1, - description="The usernames of the organization members for which to revoke access to GitHub Copilot.", - ) + seats_created: int = Field() -model_rebuild(OrgsOrgCopilotBillingSelectedUsersDeleteBody) +model_rebuild(OrgsOrgCopilotBillingSelectedUsersPostResponse201) -__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteBody",) +__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostResponse201",) diff --git a/githubkit/versions/v2022_11_28/models/group_0818.py b/githubkit/versions/v2022_11_28/models/group_0818.py index 803b279ed..291c94f37 100644 --- a/githubkit/versions/v2022_11_28/models/group_0818.py +++ b/githubkit/versions/v2022_11_28/models/group_0818.py @@ -9,20 +9,22 @@ from __future__ import annotations +from typing import List + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgCopilotBillingSelectedUsersDeleteResponse200(GitHubModel): - """OrgsOrgCopilotBillingSelectedUsersDeleteResponse200 - - The total number of seat assignments cancelled. - """ +class OrgsOrgCopilotBillingSelectedUsersDeleteBody(GitHubModel): + """OrgsOrgCopilotBillingSelectedUsersDeleteBody""" - seats_cancelled: int = Field() + selected_usernames: List[str] = Field( + min_length=1, + description="The usernames of the organization members for which to revoke access to GitHub Copilot.", + ) -model_rebuild(OrgsOrgCopilotBillingSelectedUsersDeleteResponse200) +model_rebuild(OrgsOrgCopilotBillingSelectedUsersDeleteBody) -__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200",) +__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0819.py b/githubkit/versions/v2022_11_28/models/group_0819.py index e04c76aa7..803b279ed 100644 --- a/githubkit/versions/v2022_11_28/models/group_0819.py +++ b/githubkit/versions/v2022_11_28/models/group_0819.py @@ -9,42 +9,20 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgDependabotSecretsGetResponse200(GitHubModel): - """OrgsOrgDependabotSecretsGetResponse200""" - - total_count: int = Field() - secrets: List[OrganizationDependabotSecret] = Field() - - -class OrganizationDependabotSecret(GitHubModel): - """Dependabot Secret for an Organization +class OrgsOrgCopilotBillingSelectedUsersDeleteResponse200(GitHubModel): + """OrgsOrgCopilotBillingSelectedUsersDeleteResponse200 - Secrets for GitHub Dependabot for an organization. + The total number of seat assignments cancelled. """ - 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) + seats_cancelled: int = Field() -model_rebuild(OrgsOrgDependabotSecretsGetResponse200) -model_rebuild(OrganizationDependabotSecret) +model_rebuild(OrgsOrgCopilotBillingSelectedUsersDeleteResponse200) -__all__ = ( - "OrgsOrgDependabotSecretsGetResponse200", - "OrganizationDependabotSecret", -) +__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0820.py b/githubkit/versions/v2022_11_28/models/group_0820.py index 084ce1eb4..e04c76aa7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0820.py +++ b/githubkit/versions/v2022_11_28/models/group_0820.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import List, Literal from pydantic import Field @@ -18,26 +19,32 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgDependabotSecretsSecretNamePutBody(GitHubModel): - """OrgsOrgDependabotSecretsSecretNamePutBody""" +class OrgsOrgDependabotSecretsGetResponse200(GitHubModel): + """OrgsOrgDependabotSecretsGetResponse200""" - 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." - ) + 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="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.", + description="Visibility of a secret" ) + selected_repositories_url: Missing[str] = Field(default=UNSET) -model_rebuild(OrgsOrgDependabotSecretsSecretNamePutBody) +model_rebuild(OrgsOrgDependabotSecretsGetResponse200) +model_rebuild(OrganizationDependabotSecret) -__all__ = ("OrgsOrgDependabotSecretsSecretNamePutBody",) +__all__ = ( + "OrgsOrgDependabotSecretsGetResponse200", + "OrganizationDependabotSecret", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0821.py b/githubkit/versions/v2022_11_28/models/group_0821.py index 67d14484d..084ce1eb4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0821.py +++ b/githubkit/versions/v2022_11_28/models/group_0821.py @@ -9,22 +9,35 @@ from __future__ import annotations -from typing import List +from typing import List, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0055 import MinimalRepository +class OrgsOrgDependabotSecretsSecretNamePutBody(GitHubModel): + """OrgsOrgDependabotSecretsSecretNamePutBody""" -class OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200(GitHubModel): - """OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200""" + 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.", + ) - total_count: int = Field() - repositories: List[MinimalRepository] = Field() +model_rebuild(OrgsOrgDependabotSecretsSecretNamePutBody) -model_rebuild(OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200) - -__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200",) +__all__ = ("OrgsOrgDependabotSecretsSecretNamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0822.py b/githubkit/versions/v2022_11_28/models/group_0822.py index e5211c456..67d14484d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0822.py +++ b/githubkit/versions/v2022_11_28/models/group_0822.py @@ -15,15 +15,16 @@ from githubkit.compat import GitHubModel, model_rebuild +from .group_0055 import MinimalRepository -class OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody(GitHubModel): - """OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody""" - 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." - ) +class OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200(GitHubModel): + """OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200""" + total_count: int = Field() + repositories: List[MinimalRepository] = Field() -model_rebuild(OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody) -__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody",) +model_rebuild(OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200) + +__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0823.py b/githubkit/versions/v2022_11_28/models/group_0823.py index f6ae240a3..e5211c456 100644 --- a/githubkit/versions/v2022_11_28/models/group_0823.py +++ b/githubkit/versions/v2022_11_28/models/group_0823.py @@ -9,56 +9,21 @@ from __future__ import annotations -from typing import List, Union +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgHooksPostBody(GitHubModel): - """OrgsOrgHooksPostBody""" +class OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody(GitHubModel): + """OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody""" - name: str = Field(description='Must be passed as "web".') - config: OrgsOrgHooksPostBodyPropConfig = Field( - description="Key/value pairs to provide settings for this webhook." + 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." ) - 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 - - 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) - username: Missing[str] = Field(default=UNSET) - password: Missing[str] = Field(default=UNSET) -model_rebuild(OrgsOrgHooksPostBody) -model_rebuild(OrgsOrgHooksPostBodyPropConfig) +model_rebuild(OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody) -__all__ = ( - "OrgsOrgHooksPostBody", - "OrgsOrgHooksPostBodyPropConfig", -) +__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0824.py b/githubkit/versions/v2022_11_28/models/group_0824.py index f00f0e8da..f6ae240a3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0824.py +++ b/githubkit/versions/v2022_11_28/models/group_0824.py @@ -18,26 +18,25 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgHooksHookIdPatchBody(GitHubModel): - """OrgsOrgHooksHookIdPatchBody""" +class OrgsOrgHooksPostBody(GitHubModel): + """OrgsOrgHooksPostBody""" - config: Missing[OrgsOrgHooksHookIdPatchBodyPropConfig] = Field( - default=UNSET, - description="Key/value pairs to provide settings for this webhook.", + 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.", + 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.", ) - name: Missing[str] = Field(default=UNSET) -class OrgsOrgHooksHookIdPatchBodyPropConfig(GitHubModel): - """OrgsOrgHooksHookIdPatchBodyPropConfig +class OrgsOrgHooksPostBodyPropConfig(GitHubModel): + """OrgsOrgHooksPostBodyPropConfig Key/value pairs to provide settings for this webhook. """ @@ -52,12 +51,14 @@ class OrgsOrgHooksHookIdPatchBodyPropConfig(GitHubModel): 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(OrgsOrgHooksHookIdPatchBody) -model_rebuild(OrgsOrgHooksHookIdPatchBodyPropConfig) +model_rebuild(OrgsOrgHooksPostBody) +model_rebuild(OrgsOrgHooksPostBodyPropConfig) __all__ = ( - "OrgsOrgHooksHookIdPatchBody", - "OrgsOrgHooksHookIdPatchBodyPropConfig", + "OrgsOrgHooksPostBody", + "OrgsOrgHooksPostBodyPropConfig", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0825.py b/githubkit/versions/v2022_11_28/models/group_0825.py index 27cb339f6..f00f0e8da 100644 --- a/githubkit/versions/v2022_11_28/models/group_0825.py +++ b/githubkit/versions/v2022_11_28/models/group_0825.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import List, Union from pydantic import Field @@ -18,12 +18,31 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgHooksHookIdConfigPatchBody(GitHubModel): - """OrgsOrgHooksHookIdConfigPatchBody""" +class OrgsOrgHooksHookIdPatchBody(GitHubModel): + """OrgsOrgHooksHookIdPatchBody""" - url: Missing[str] = Field( - default=UNSET, description="The URL to which the payloads will be delivered." + 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`.", @@ -35,6 +54,10 @@ class OrgsOrgHooksHookIdConfigPatchBody(GitHubModel): insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) -model_rebuild(OrgsOrgHooksHookIdConfigPatchBody) +model_rebuild(OrgsOrgHooksHookIdPatchBody) +model_rebuild(OrgsOrgHooksHookIdPatchBodyPropConfig) -__all__ = ("OrgsOrgHooksHookIdConfigPatchBody",) +__all__ = ( + "OrgsOrgHooksHookIdPatchBody", + "OrgsOrgHooksHookIdPatchBodyPropConfig", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0826.py b/githubkit/versions/v2022_11_28/models/group_0826.py index 82b58fb44..27cb339f6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0826.py +++ b/githubkit/versions/v2022_11_28/models/group_0826.py @@ -9,22 +9,32 @@ from __future__ import annotations -from typing import List +from typing import Union from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0015 import Installation +class OrgsOrgHooksHookIdConfigPatchBody(GitHubModel): + """OrgsOrgHooksHookIdConfigPatchBody""" -class OrgsOrgInstallationsGetResponse200(GitHubModel): - """OrgsOrgInstallationsGetResponse200""" + 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) - total_count: int = Field() - installations: List[Installation] = Field() +model_rebuild(OrgsOrgHooksHookIdConfigPatchBody) -model_rebuild(OrgsOrgInstallationsGetResponse200) - -__all__ = ("OrgsOrgInstallationsGetResponse200",) +__all__ = ("OrgsOrgHooksHookIdConfigPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0827.py b/githubkit/versions/v2022_11_28/models/group_0827.py index 17fac965f..82b58fb44 100644 --- a/githubkit/versions/v2022_11_28/models/group_0827.py +++ b/githubkit/versions/v2022_11_28/models/group_0827.py @@ -9,13 +9,22 @@ from __future__ import annotations +from typing import List + +from pydantic import Field + from githubkit.compat import GitHubModel, model_rebuild +from .group_0015 import Installation + + +class OrgsOrgInstallationsGetResponse200(GitHubModel): + """OrgsOrgInstallationsGetResponse200""" -class OrgsOrgInteractionLimitsGetResponse200Anyof1(GitHubModel): - """OrgsOrgInteractionLimitsGetResponse200Anyof1""" + total_count: int = Field() + installations: List[Installation] = Field() -model_rebuild(OrgsOrgInteractionLimitsGetResponse200Anyof1) +model_rebuild(OrgsOrgInstallationsGetResponse200) -__all__ = ("OrgsOrgInteractionLimitsGetResponse200Anyof1",) +__all__ = ("OrgsOrgInstallationsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0828.py b/githubkit/versions/v2022_11_28/models/group_0828.py index 22b6534f0..17fac965f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0828.py +++ b/githubkit/versions/v2022_11_28/models/group_0828.py @@ -9,38 +9,13 @@ from __future__ import annotations -from typing import List, Literal +from githubkit.compat import GitHubModel, model_rebuild -from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +class OrgsOrgInteractionLimitsGetResponse200Anyof1(GitHubModel): + """OrgsOrgInteractionLimitsGetResponse200Anyof1""" + +model_rebuild(OrgsOrgInteractionLimitsGetResponse200Anyof1) -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.", - ) - - -model_rebuild(OrgsOrgInvitationsPostBody) - -__all__ = ("OrgsOrgInvitationsPostBody",) +__all__ = ("OrgsOrgInteractionLimitsGetResponse200Anyof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_0829.py b/githubkit/versions/v2022_11_28/models/group_0829.py index ef89486c8..22b6534f0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0829.py +++ b/githubkit/versions/v2022_11_28/models/group_0829.py @@ -9,22 +9,38 @@ from __future__ import annotations -from typing import List +from typing import List, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0078 import Codespace - -class OrgsOrgMembersUsernameCodespacesGetResponse200(GitHubModel): - """OrgsOrgMembersUsernameCodespacesGetResponse200""" - - total_count: int = Field() - codespaces: List[Codespace] = Field() - - -model_rebuild(OrgsOrgMembersUsernameCodespacesGetResponse200) - -__all__ = ("OrgsOrgMembersUsernameCodespacesGetResponse200",) +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.", + ) + + +model_rebuild(OrgsOrgInvitationsPostBody) + +__all__ = ("OrgsOrgInvitationsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0830.py b/githubkit/versions/v2022_11_28/models/group_0830.py index 0fda1e440..ef89486c8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0830.py +++ b/githubkit/versions/v2022_11_28/models/group_0830.py @@ -9,24 +9,22 @@ from __future__ import annotations -from typing import Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0078 import Codespace -class OrgsOrgMembershipsUsernamePutBody(GitHubModel): - """OrgsOrgMembershipsUsernamePutBody""" - 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.", - ) +class OrgsOrgMembersUsernameCodespacesGetResponse200(GitHubModel): + """OrgsOrgMembersUsernameCodespacesGetResponse200""" + total_count: int = Field() + codespaces: List[Codespace] = Field() -model_rebuild(OrgsOrgMembershipsUsernamePutBody) -__all__ = ("OrgsOrgMembershipsUsernamePutBody",) +model_rebuild(OrgsOrgMembersUsernameCodespacesGetResponse200) + +__all__ = ("OrgsOrgMembersUsernameCodespacesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0831.py b/githubkit/versions/v2022_11_28/models/group_0831.py index 7a28ea6f2..0fda1e440 100644 --- a/githubkit/versions/v2022_11_28/models/group_0831.py +++ b/githubkit/versions/v2022_11_28/models/group_0831.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Literal +from typing import Literal from pydantic import Field @@ -18,46 +18,15 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgMigrationsPostBody(GitHubModel): - """OrgsOrgMigrationsPostBody""" +class OrgsOrgMembershipsUsernamePutBody(GitHubModel): + """OrgsOrgMembershipsUsernamePutBody""" - 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( + role: Missing[Literal["admin", "member"]] = Field( default=UNSET, - description="Exclude related items from being returned in the response in order to improve performance of the request.", + 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(OrgsOrgMigrationsPostBody) +model_rebuild(OrgsOrgMembershipsUsernamePutBody) -__all__ = ("OrgsOrgMigrationsPostBody",) +__all__ = ("OrgsOrgMembershipsUsernamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0832.py b/githubkit/versions/v2022_11_28/models/group_0832.py index 442fd0c33..7a28ea6f2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0832.py +++ b/githubkit/versions/v2022_11_28/models/group_0832.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List +from typing import List, Literal from pydantic import Field @@ -18,19 +18,46 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgOrganizationRolesPostBody(GitHubModel): - """OrgsOrgOrganizationRolesPostBody""" +class OrgsOrgMigrationsPostBody(GitHubModel): + """OrgsOrgMigrationsPostBody""" - name: str = Field(description="The name of the custom role.") - description: Missing[str] = 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="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="A short description about the intended usage of this role or what permissions it grants.", + description="Indicates whether attachments should be excluded from the migration (to reduce migration archive file size).", ) - permissions: List[str] = Field( - description="A list of additional permissions included in this role." + 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(OrgsOrgOrganizationRolesPostBody) +model_rebuild(OrgsOrgMigrationsPostBody) -__all__ = ("OrgsOrgOrganizationRolesPostBody",) +__all__ = ("OrgsOrgMigrationsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0833.py b/githubkit/versions/v2022_11_28/models/group_0833.py index 36fea21d7..442fd0c33 100644 --- a/githubkit/versions/v2022_11_28/models/group_0833.py +++ b/githubkit/versions/v2022_11_28/models/group_0833.py @@ -18,22 +18,19 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgOrganizationRolesRoleIdPatchBody(GitHubModel): - """OrgsOrgOrganizationRolesRoleIdPatchBody""" +class OrgsOrgOrganizationRolesPostBody(GitHubModel): + """OrgsOrgOrganizationRolesPostBody""" - name: Missing[str] = Field( - default=UNSET, description="The name of the custom role." - ) + 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.", ) - permissions: Missing[List[str]] = Field( - default=UNSET, - description="A list of additional permissions included in this role.", + permissions: List[str] = Field( + description="A list of additional permissions included in this role." ) -model_rebuild(OrgsOrgOrganizationRolesRoleIdPatchBody) +model_rebuild(OrgsOrgOrganizationRolesPostBody) -__all__ = ("OrgsOrgOrganizationRolesRoleIdPatchBody",) +__all__ = ("OrgsOrgOrganizationRolesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0834.py b/githubkit/versions/v2022_11_28/models/group_0834.py index 793575830..36fea21d7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0834.py +++ b/githubkit/versions/v2022_11_28/models/group_0834.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import List + from pydantic import Field from githubkit.utils import UNSET @@ -16,16 +18,22 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgOutsideCollaboratorsUsernamePutBody(GitHubModel): - """OrgsOrgOutsideCollaboratorsUsernamePutBody""" +class OrgsOrgOrganizationRolesRoleIdPatchBody(GitHubModel): + """OrgsOrgOrganizationRolesRoleIdPatchBody""" - async_: Missing[bool] = Field( + 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 usage of this role or what permissions it grants.", + ) + permissions: Missing[List[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="A list of additional permissions included in this role.", ) -model_rebuild(OrgsOrgOutsideCollaboratorsUsernamePutBody) +model_rebuild(OrgsOrgOrganizationRolesRoleIdPatchBody) -__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutBody",) +__all__ = ("OrgsOrgOrganizationRolesRoleIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0835.py b/githubkit/versions/v2022_11_28/models/group_0835.py index dc2469b07..793575830 100644 --- a/githubkit/versions/v2022_11_28/models/group_0835.py +++ b/githubkit/versions/v2022_11_28/models/group_0835.py @@ -9,13 +9,23 @@ from __future__ import annotations +from pydantic import Field + +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgOutsideCollaboratorsUsernamePutResponse202(GitHubModel): - """OrgsOrgOutsideCollaboratorsUsernamePutResponse202""" +class OrgsOrgOutsideCollaboratorsUsernamePutBody(GitHubModel): + """OrgsOrgOutsideCollaboratorsUsernamePutBody""" + + 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(OrgsOrgOutsideCollaboratorsUsernamePutResponse202) +model_rebuild(OrgsOrgOutsideCollaboratorsUsernamePutBody) -__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202",) +__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0836.py b/githubkit/versions/v2022_11_28/models/group_0836.py index 343f287e2..dc2469b07 100644 --- a/githubkit/versions/v2022_11_28/models/group_0836.py +++ b/githubkit/versions/v2022_11_28/models/group_0836.py @@ -9,20 +9,13 @@ from __future__ import annotations -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422(GitHubModel): - """OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422""" - - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) +class OrgsOrgOutsideCollaboratorsUsernamePutResponse202(GitHubModel): + """OrgsOrgOutsideCollaboratorsUsernamePutResponse202""" -model_rebuild(OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422) +model_rebuild(OrgsOrgOutsideCollaboratorsUsernamePutResponse202) -__all__ = ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422",) +__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202",) diff --git a/githubkit/versions/v2022_11_28/models/group_0837.py b/githubkit/versions/v2022_11_28/models/group_0837.py index 79ab5caf5..343f287e2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0837.py +++ b/githubkit/versions/v2022_11_28/models/group_0837.py @@ -9,9 +9,6 @@ from __future__ import annotations -from typing import List, Union, Literal -from typing_extensions import Annotated - from pydantic import Field from githubkit.utils import UNSET @@ -19,24 +16,13 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgPersonalAccessTokenRequestsPostBody(GitHubModel): - """OrgsOrgPersonalAccessTokenRequestsPostBody""" +class OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422(GitHubModel): + """OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422""" - pat_request_ids: Missing[List[int]] = Field( - max_length=100, - min_length=1, - 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.", - ) + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) -model_rebuild(OrgsOrgPersonalAccessTokenRequestsPostBody) +model_rebuild(OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422) -__all__ = ("OrgsOrgPersonalAccessTokenRequestsPostBody",) +__all__ = ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422",) diff --git a/githubkit/versions/v2022_11_28/models/group_0838.py b/githubkit/versions/v2022_11_28/models/group_0838.py index eb9596a93..79ab5caf5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0838.py +++ b/githubkit/versions/v2022_11_28/models/group_0838.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List, Union, Literal from typing_extensions import Annotated from pydantic import Field @@ -19,18 +19,24 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody(GitHubModel): - """OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody""" +class OrgsOrgPersonalAccessTokenRequestsPostBody(GitHubModel): + """OrgsOrgPersonalAccessTokenRequestsPostBody""" + pat_request_ids: Missing[List[int]] = Field( + max_length=100, + min_length=1, + 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 request." + 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 request. Max 1024 characters.", + description="Reason for approving or denying the requests. Max 1024 characters.", ) -model_rebuild(OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody) +model_rebuild(OrgsOrgPersonalAccessTokenRequestsPostBody) -__all__ = ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody",) +__all__ = ("OrgsOrgPersonalAccessTokenRequestsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0839.py b/githubkit/versions/v2022_11_28/models/group_0839.py index 297f764b9..eb9596a93 100644 --- a/githubkit/versions/v2022_11_28/models/group_0839.py +++ b/githubkit/versions/v2022_11_28/models/group_0839.py @@ -9,26 +9,28 @@ from __future__ import annotations -from typing import List, Literal +from typing import Union, Literal +from typing_extensions import Annotated from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgPersonalAccessTokensPostBody(GitHubModel): - """OrgsOrgPersonalAccessTokensPostBody""" +class OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody(GitHubModel): + """OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody""" - action: Literal["revoke"] = Field( - description="Action to apply to the fine-grained personal access token." + action: Literal["approve", "deny"] = Field( + description="Action to apply to the request." ) - pat_ids: List[int] = Field( - max_length=100, - min_length=1, - description="The IDs of the fine-grained personal access tokens.", + 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(OrgsOrgPersonalAccessTokensPostBody) +model_rebuild(OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody) -__all__ = ("OrgsOrgPersonalAccessTokensPostBody",) +__all__ = ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0840.py b/githubkit/versions/v2022_11_28/models/group_0840.py index 53f6146e3..297f764b9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0840.py +++ b/githubkit/versions/v2022_11_28/models/group_0840.py @@ -9,21 +9,26 @@ from __future__ import annotations -from typing import Literal +from typing import List, Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgPersonalAccessTokensPatIdPostBody(GitHubModel): - """OrgsOrgPersonalAccessTokensPatIdPostBody""" +class OrgsOrgPersonalAccessTokensPostBody(GitHubModel): + """OrgsOrgPersonalAccessTokensPostBody""" action: Literal["revoke"] = Field( description="Action to apply to the fine-grained personal access token." ) + pat_ids: List[int] = Field( + max_length=100, + min_length=1, + description="The IDs of the fine-grained personal access tokens.", + ) -model_rebuild(OrgsOrgPersonalAccessTokensPatIdPostBody) +model_rebuild(OrgsOrgPersonalAccessTokensPostBody) -__all__ = ("OrgsOrgPersonalAccessTokensPatIdPostBody",) +__all__ = ("OrgsOrgPersonalAccessTokensPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0841.py b/githubkit/versions/v2022_11_28/models/group_0841.py index bc57fa609..53f6146e3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0841.py +++ b/githubkit/versions/v2022_11_28/models/group_0841.py @@ -9,22 +9,21 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgProjectsPostBody(GitHubModel): - """OrgsOrgProjectsPostBody""" +class OrgsOrgPersonalAccessTokensPatIdPostBody(GitHubModel): + """OrgsOrgPersonalAccessTokensPatIdPostBody""" - name: str = Field(description="The name of the project.") - body: Missing[str] = Field( - default=UNSET, description="The description of the project." + action: Literal["revoke"] = Field( + description="Action to apply to the fine-grained personal access token." ) -model_rebuild(OrgsOrgProjectsPostBody) +model_rebuild(OrgsOrgPersonalAccessTokensPatIdPostBody) -__all__ = ("OrgsOrgProjectsPostBody",) +__all__ = ("OrgsOrgPersonalAccessTokensPatIdPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0842.py b/githubkit/versions/v2022_11_28/models/group_0842.py index aa843cc53..bc57fa609 100644 --- a/githubkit/versions/v2022_11_28/models/group_0842.py +++ b/githubkit/versions/v2022_11_28/models/group_0842.py @@ -9,25 +9,22 @@ from __future__ import annotations -from typing import List - from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0097 import OrgCustomProperty - -class OrgsOrgPropertiesSchemaPatchBody(GitHubModel): - """OrgsOrgPropertiesSchemaPatchBody""" +class OrgsOrgProjectsPostBody(GitHubModel): + """OrgsOrgProjectsPostBody""" - properties: List[OrgCustomProperty] = Field( - max_length=100, - min_length=1, - description="The array of custom properties to create or update.", + name: str = Field(description="The name of the project.") + body: Missing[str] = Field( + default=UNSET, description="The description of the project." ) -model_rebuild(OrgsOrgPropertiesSchemaPatchBody) +model_rebuild(OrgsOrgProjectsPostBody) -__all__ = ("OrgsOrgPropertiesSchemaPatchBody",) +__all__ = ("OrgsOrgProjectsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0843.py b/githubkit/versions/v2022_11_28/models/group_0843.py index 469f3c50f..aa843cc53 100644 --- a/githubkit/versions/v2022_11_28/models/group_0843.py +++ b/githubkit/versions/v2022_11_28/models/group_0843.py @@ -9,44 +9,25 @@ from __future__ import annotations -from typing import List, Union, Literal -from typing_extensions import Annotated +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0097 import OrgCustomProperty -class OrgsOrgPropertiesSchemaCustomPropertyNamePutBody(GitHubModel): - """OrgsOrgPropertiesSchemaCustomPropertyNamePutBody""" - 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) - ], - None, - ] - ] = Field( - default=UNSET, - description="An ordered list of the allowed values of the property.\nThe property can have up to 200 allowed values.", +class OrgsOrgPropertiesSchemaPatchBody(GitHubModel): + """OrgsOrgPropertiesSchemaPatchBody""" + + properties: List[OrgCustomProperty] = Field( + max_length=100, + min_length=1, + description="The array of custom properties to create or update.", ) -model_rebuild(OrgsOrgPropertiesSchemaCustomPropertyNamePutBody) +model_rebuild(OrgsOrgPropertiesSchemaPatchBody) -__all__ = ("OrgsOrgPropertiesSchemaCustomPropertyNamePutBody",) +__all__ = ("OrgsOrgPropertiesSchemaPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0844.py b/githubkit/versions/v2022_11_28/models/group_0844.py index c5f0b94a8..469f3c50f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0844.py +++ b/githubkit/versions/v2022_11_28/models/group_0844.py @@ -9,28 +9,44 @@ from __future__ import annotations -from typing import List +from typing import List, Union, Literal +from typing_extensions import Annotated from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0098 import CustomPropertyValue +class OrgsOrgPropertiesSchemaCustomPropertyNamePutBody(GitHubModel): + """OrgsOrgPropertiesSchemaCustomPropertyNamePutBody""" -class OrgsOrgPropertiesValuesPatchBody(GitHubModel): - """OrgsOrgPropertiesValuesPatchBody""" - - repository_names: List[str] = Field( - max_length=30, - min_length=1, - description="The names of repositories that the custom property values will be applied to.", + 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" ) - properties: List[CustomPropertyValue] = Field( - description="List of custom property names and associated values to apply to the repositories." + allowed_values: Missing[ + Union[ + Annotated[ + List[Annotated[str, Field(max_length=75)]], Field(max_length=200) + ], + None, + ] + ] = Field( + default=UNSET, + description="An ordered list of the allowed values of the property.\nThe property can have up to 200 allowed values.", ) -model_rebuild(OrgsOrgPropertiesValuesPatchBody) +model_rebuild(OrgsOrgPropertiesSchemaCustomPropertyNamePutBody) -__all__ = ("OrgsOrgPropertiesValuesPatchBody",) +__all__ = ("OrgsOrgPropertiesSchemaCustomPropertyNamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0845.py b/githubkit/versions/v2022_11_28/models/group_0845.py index e5d84aa24..c5f0b94a8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0845.py +++ b/githubkit/versions/v2022_11_28/models/group_0845.py @@ -9,128 +9,28 @@ from __future__ import annotations -from typing import Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild +from .group_0098 import CustomPropertyValue -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"]] = 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 has been deprecated. 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.", +class OrgsOrgPropertiesValuesPatchBody(GitHubModel): + """OrgsOrgPropertiesValuesPatchBody""" + + repository_names: List[str] = Field( + max_length=30, + min_length=1, + description="The names of repositories that the custom property values will be applied to.", ) - 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.", + properties: List[CustomPropertyValue] = Field( + description="List of custom property names and associated values to apply to the repositories." ) -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(OrgsOrgPropertiesValuesPatchBody) -__all__ = ( - "OrgsOrgReposPostBody", - "OrgsOrgReposPostBodyPropCustomProperties", -) +__all__ = ("OrgsOrgPropertiesValuesPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0846.py b/githubkit/versions/v2022_11_28/models/group_0846.py index a535d1b5c..e5d84aa24 100644 --- a/githubkit/versions/v2022_11_28/models/group_0846.py +++ b/githubkit/versions/v2022_11_28/models/group_0846.py @@ -9,95 +9,128 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - -from .group_0115 import RepositoryRuleUpdate -from .group_0139 import RepositoryRuleOneof17 -from .group_0135 import RepositoryRuleWorkflows -from .group_0120 import RepositoryRulePullRequest -from .group_0111 import OrgRulesetConditionsOneof0 -from .group_0112 import OrgRulesetConditionsOneof1 -from .group_0113 import OrgRulesetConditionsOneof2 -from .group_0137 import RepositoryRuleCodeScanning -from .group_0102 import RepositoryRulesetBypassActor -from .group_0132 import RepositoryRuleTagNamePattern -from .group_0130 import RepositoryRuleBranchNamePattern -from .group_0118 import RepositoryRuleRequiredDeployments -from .group_0122 import RepositoryRuleRequiredStatusChecks -from .group_0124 import RepositoryRuleCommitMessagePattern -from .group_0128 import RepositoryRuleCommitterEmailPattern -from .group_0126 import RepositoryRuleCommitAuthorEmailPattern -from .group_0117 import RepositoryRuleOneof15, RepositoryRuleRequiredLinearHistory -from .group_0114 import ( - RepositoryRuleOneof14, - RepositoryRuleOneof16, - RepositoryRuleCreation, - RepositoryRuleDeletion, - RepositoryRuleNonFastForward, - RepositoryRuleRequiredSignatures, -) +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild -class OrgsOrgRulesetsPostBody(GitHubModel): - """OrgsOrgRulesetsPostBody""" +class OrgsOrgReposPostBody(GitHubModel): + """OrgsOrgReposPostBody""" - name: str = Field(description="The name of the ruleset.") - target: Missing[Literal["branch", "tag", "push"]] = Field( + 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".', + ) + allow_squash_merge: Missing[bool] = Field( default=UNSET, - description="The target of the ruleset\n\n**Note**: The `push` target is in beta and is subject to change.", + description="Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging.", ) - 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)." + 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.", ) - bypass_actors: Missing[List[RepositoryRulesetBypassActor]] = Field( + allow_auto_merge: Missing[bool] = Field( default=UNSET, - description="The actors that can bypass the rules in this ruleset", + description="Either `true` to allow auto-merge on pull requests, or `false` to disallow auto-merge.", ) - conditions: Missing[ - Union[ - OrgRulesetConditionsOneof0, - OrgRulesetConditionsOneof1, - OrgRulesetConditionsOneof2, - ] + 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 has been deprecated. 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, - title="Organization ruleset conditions", - description="Conditions for an organization ruleset. The conditions object should contain both `repository_name` and `ref_name` properties or both `repository_id` and `ref_name` properties.\n", - ) - rules: Missing[ - List[ - Union[ - RepositoryRuleCreation, - RepositoryRuleUpdate, - RepositoryRuleDeletion, - RepositoryRuleRequiredLinearHistory, - RepositoryRuleRequiredDeployments, - RepositoryRuleRequiredSignatures, - RepositoryRulePullRequest, - RepositoryRuleRequiredStatusChecks, - RepositoryRuleNonFastForward, - RepositoryRuleCommitMessagePattern, - RepositoryRuleCommitAuthorEmailPattern, - RepositoryRuleCommitterEmailPattern, - RepositoryRuleBranchNamePattern, - RepositoryRuleTagNamePattern, - RepositoryRuleOneof14, - RepositoryRuleOneof15, - RepositoryRuleOneof16, - RepositoryRuleOneof17, - RepositoryRuleWorkflows, - RepositoryRuleCodeScanning, - ] - ] - ] = Field(default=UNSET, description="An array of rules within the ruleset.") - - -model_rebuild(OrgsOrgRulesetsPostBody) - -__all__ = ("OrgsOrgRulesetsPostBody",) + 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.", + ) + 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) + +__all__ = ( + "OrgsOrgReposPostBody", + "OrgsOrgReposPostBodyPropCustomProperties", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0847.py b/githubkit/versions/v2022_11_28/models/group_0847.py index b927dd556..a535d1b5c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0847.py +++ b/githubkit/versions/v2022_11_28/models/group_0847.py @@ -44,17 +44,16 @@ ) -class OrgsOrgRulesetsRulesetIdPutBody(GitHubModel): - """OrgsOrgRulesetsRulesetIdPutBody""" +class OrgsOrgRulesetsPostBody(GitHubModel): + """OrgsOrgRulesetsPostBody""" - name: Missing[str] = Field(default=UNSET, description="The name of the ruleset.") + name: str = Field(description="The name of the ruleset.") target: Missing[Literal["branch", "tag", "push"]] = Field( default=UNSET, description="The target of the ruleset\n\n**Note**: The `push` target is in beta and is subject to change.", ) - 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).", + 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, @@ -99,6 +98,6 @@ class OrgsOrgRulesetsRulesetIdPutBody(GitHubModel): ] = Field(default=UNSET, description="An array of rules within the ruleset.") -model_rebuild(OrgsOrgRulesetsRulesetIdPutBody) +model_rebuild(OrgsOrgRulesetsPostBody) -__all__ = ("OrgsOrgRulesetsRulesetIdPutBody",) +__all__ = ("OrgsOrgRulesetsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0848.py b/githubkit/versions/v2022_11_28/models/group_0848.py index f75a38dbc..b927dd556 100644 --- a/githubkit/versions/v2022_11_28/models/group_0848.py +++ b/githubkit/versions/v2022_11_28/models/group_0848.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Literal +from typing import List, Union, Literal from pydantic import Field @@ -17,41 +17,88 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0115 import RepositoryRuleUpdate +from .group_0139 import RepositoryRuleOneof17 +from .group_0135 import RepositoryRuleWorkflows +from .group_0120 import RepositoryRulePullRequest +from .group_0111 import OrgRulesetConditionsOneof0 +from .group_0112 import OrgRulesetConditionsOneof1 +from .group_0113 import OrgRulesetConditionsOneof2 +from .group_0137 import RepositoryRuleCodeScanning +from .group_0102 import RepositoryRulesetBypassActor +from .group_0132 import RepositoryRuleTagNamePattern +from .group_0130 import RepositoryRuleBranchNamePattern +from .group_0118 import RepositoryRuleRequiredDeployments +from .group_0122 import RepositoryRuleRequiredStatusChecks +from .group_0124 import RepositoryRuleCommitMessagePattern +from .group_0128 import RepositoryRuleCommitterEmailPattern +from .group_0126 import RepositoryRuleCommitAuthorEmailPattern +from .group_0117 import RepositoryRuleOneof15, RepositoryRuleRequiredLinearHistory +from .group_0114 import ( + RepositoryRuleOneof14, + RepositoryRuleOneof16, + RepositoryRuleCreation, + RepositoryRuleDeletion, + RepositoryRuleNonFastForward, + RepositoryRuleRequiredSignatures, +) -class OrgsOrgTeamsPostBody(GitHubModel): - """OrgsOrgTeamsPostBody""" - 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( +class OrgsOrgRulesetsRulesetIdPutBody(GitHubModel): + """OrgsOrgRulesetsRulesetIdPutBody""" + + name: Missing[str] = Field(default=UNSET, description="The name of the ruleset.") + target: Missing[Literal["branch", "tag", "push"]] = Field( default=UNSET, - description="List GitHub IDs for organization members who will become team maintainers.", + description="The target of the ruleset\n\n**Note**: The `push` target is in beta and is subject to change.", ) - repo_names: Missing[List[str]] = Field( + enforcement: Missing[Literal["disabled", "active", "evaluate"]] = Field( default=UNSET, - description='The full name (e.g., "organization-name/repository-name") of repositories to add the team to.', + 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).", ) - privacy: Missing[Literal["secret", "closed"]] = Field( + bypass_actors: Missing[List[RepositoryRulesetBypassActor]] = 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`", + description="The actors that can bypass the rules in this ruleset", ) - notification_setting: Missing[ - Literal["notifications_enabled", "notifications_disabled"] + conditions: Missing[ + Union[ + OrgRulesetConditionsOneof0, + OrgRulesetConditionsOneof1, + OrgRulesetConditionsOneof2, + ] ] = 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="**Deprecated**. 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." + title="Organization ruleset conditions", + description="Conditions for an organization ruleset. The conditions object should contain both `repository_name` and `ref_name` properties or both `repository_id` and `ref_name` properties.\n", ) + rules: Missing[ + List[ + Union[ + RepositoryRuleCreation, + RepositoryRuleUpdate, + RepositoryRuleDeletion, + RepositoryRuleRequiredLinearHistory, + RepositoryRuleRequiredDeployments, + RepositoryRuleRequiredSignatures, + RepositoryRulePullRequest, + RepositoryRuleRequiredStatusChecks, + RepositoryRuleNonFastForward, + RepositoryRuleCommitMessagePattern, + RepositoryRuleCommitAuthorEmailPattern, + RepositoryRuleCommitterEmailPattern, + RepositoryRuleBranchNamePattern, + RepositoryRuleTagNamePattern, + RepositoryRuleOneof14, + RepositoryRuleOneof15, + RepositoryRuleOneof16, + RepositoryRuleOneof17, + RepositoryRuleWorkflows, + RepositoryRuleCodeScanning, + ] + ] + ] = Field(default=UNSET, description="An array of rules within the ruleset.") -model_rebuild(OrgsOrgTeamsPostBody) +model_rebuild(OrgsOrgRulesetsRulesetIdPutBody) -__all__ = ("OrgsOrgTeamsPostBody",) +__all__ = ("OrgsOrgRulesetsRulesetIdPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0849.py b/githubkit/versions/v2022_11_28/models/group_0849.py index f3835d246..f75a38dbc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0849.py +++ b/githubkit/versions/v2022_11_28/models/group_0849.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List, Literal from pydantic import Field @@ -18,32 +18,40 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgTeamsTeamSlugPatchBody(GitHubModel): - """OrgsOrgTeamsTeamSlugPatchBody""" +class OrgsOrgTeamsPostBody(GitHubModel): + """OrgsOrgTeamsPostBody""" - name: Missing[str] = Field(default=UNSET, description="The name of the team.") + 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 IDs 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. 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.", + 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. 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 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", "admin"]] = Field( + permission: Missing[Literal["pull", "push"]] = Field( default=UNSET, description="**Deprecated**. The permission that new repositories will be added to the team with when none is specified.", ) - parent_team_id: Missing[Union[int, None]] = Field( + parent_team_id: Missing[int] = Field( default=UNSET, description="The ID of a team to set as the parent team." ) -model_rebuild(OrgsOrgTeamsTeamSlugPatchBody) +model_rebuild(OrgsOrgTeamsPostBody) -__all__ = ("OrgsOrgTeamsTeamSlugPatchBody",) +__all__ = ("OrgsOrgTeamsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0850.py b/githubkit/versions/v2022_11_28/models/group_0850.py index 02ba3ccdd..f3835d246 100644 --- a/githubkit/versions/v2022_11_28/models/group_0850.py +++ b/githubkit/versions/v2022_11_28/models/group_0850.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Union, Literal + from pydantic import Field from githubkit.utils import UNSET @@ -16,17 +18,32 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgTeamsTeamSlugDiscussionsPostBody(GitHubModel): - """OrgsOrgTeamsTeamSlugDiscussionsPostBody""" +class OrgsOrgTeamsTeamSlugPatchBody(GitHubModel): + """OrgsOrgTeamsTeamSlugPatchBody""" - title: str = Field(description="The discussion post's title.") - body: str = Field(description="The discussion post's body text.") - private: Missing[bool] = Field( + 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="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="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="**Deprecated**. 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(OrgsOrgTeamsTeamSlugDiscussionsPostBody) +model_rebuild(OrgsOrgTeamsTeamSlugPatchBody) -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsPostBody",) +__all__ = ("OrgsOrgTeamsTeamSlugPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0851.py b/githubkit/versions/v2022_11_28/models/group_0851.py index f19071c10..02ba3ccdd 100644 --- a/githubkit/versions/v2022_11_28/models/group_0851.py +++ b/githubkit/versions/v2022_11_28/models/group_0851.py @@ -16,17 +16,17 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody(GitHubModel): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody""" - - 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." +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.", ) -model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody) +model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsPostBody) -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody",) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0852.py b/githubkit/versions/v2022_11_28/models/group_0852.py index d8f084a3e..f19071c10 100644 --- a/githubkit/versions/v2022_11_28/models/group_0852.py +++ b/githubkit/versions/v2022_11_28/models/group_0852.py @@ -11,15 +11,22 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody(GitHubModel): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody(GitHubModel): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody""" - body: str = Field(description="The discussion comment's body text.") + 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(OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody) +model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody) -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody",) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0853.py b/githubkit/versions/v2022_11_28/models/group_0853.py index f9ed8041d..d8f084a3e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0853.py +++ b/githubkit/versions/v2022_11_28/models/group_0853.py @@ -14,18 +14,12 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody( - GitHubModel -): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody(GitHubModel): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody""" body: str = Field(description="The discussion comment's body text.") -model_rebuild( - OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody -) +model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody) -__all__ = ( - "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody", -) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0854.py b/githubkit/versions/v2022_11_28/models/group_0854.py index 7155a8c95..f9ed8041d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0854.py +++ b/githubkit/versions/v2022_11_28/models/group_0854.py @@ -9,31 +9,23 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody( +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody( GitHubModel ): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPos - tBody - """ + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" - 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." - ) + body: str = Field(description="The discussion comment's body text.") model_rebuild( - OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody + OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody ) __all__ = ( - "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody", + "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0855.py b/githubkit/versions/v2022_11_28/models/group_0855.py index 09a55856c..7155a8c95 100644 --- a/githubkit/versions/v2022_11_28/models/group_0855.py +++ b/githubkit/versions/v2022_11_28/models/group_0855.py @@ -16,16 +16,24 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody(GitHubModel): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody( + GitHubModel +): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPos + tBody + """ 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." + description="The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the team discussion comment." ) -model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody) +model_rebuild( + OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody +) -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody",) +__all__ = ( + "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0856.py b/githubkit/versions/v2022_11_28/models/group_0856.py index 6b6e99580..09a55856c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0856.py +++ b/githubkit/versions/v2022_11_28/models/group_0856.py @@ -13,19 +13,19 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody(GitHubModel): - """OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody(GitHubModel): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody""" - role: Missing[Literal["member", "maintainer"]] = Field( - default=UNSET, description="The role that this user should have in the team." + 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(OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody) +model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody) -__all__ = ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody",) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0857.py b/githubkit/versions/v2022_11_28/models/group_0857.py index 2243159ab..6b6e99580 100644 --- a/githubkit/versions/v2022_11_28/models/group_0857.py +++ b/githubkit/versions/v2022_11_28/models/group_0857.py @@ -18,15 +18,14 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody(GitHubModel): - """OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody""" +class OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody(GitHubModel): + """OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody""" - 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).\"", + role: Missing[Literal["member", "maintainer"]] = Field( + default=UNSET, description="The role that this user should have in the team." ) -model_rebuild(OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody) +model_rebuild(OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody) -__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody",) +__all__ = ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0858.py b/githubkit/versions/v2022_11_28/models/group_0858.py index 3603ad202..2243159ab 100644 --- a/githubkit/versions/v2022_11_28/models/group_0858.py +++ b/githubkit/versions/v2022_11_28/models/group_0858.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.utils import UNSET @@ -16,13 +18,15 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403(GitHubModel): - """OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403""" +class OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody(GitHubModel): + """OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody""" - message: Missing[str] = Field(default=UNSET) - documentation_url: 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(OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403) +model_rebuild(OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody) -__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403",) +__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0859.py b/githubkit/versions/v2022_11_28/models/group_0859.py index cb788d669..3603ad202 100644 --- a/githubkit/versions/v2022_11_28/models/group_0859.py +++ b/githubkit/versions/v2022_11_28/models/group_0859.py @@ -16,15 +16,13 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody(GitHubModel): - """OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody""" +class OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403(GitHubModel): + """OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403""" - 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.", - ) + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) -model_rebuild(OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody) +model_rebuild(OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403) -__all__ = ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody",) +__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403",) diff --git a/githubkit/versions/v2022_11_28/models/group_0860.py b/githubkit/versions/v2022_11_28/models/group_0860.py index 0164cc723..cb788d669 100644 --- a/githubkit/versions/v2022_11_28/models/group_0860.py +++ b/githubkit/versions/v2022_11_28/models/group_0860.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.utils import UNSET @@ -18,15 +16,15 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgSecurityProductEnablementPostBody(GitHubModel): - """OrgsOrgSecurityProductEnablementPostBody""" +class OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody(GitHubModel): + """OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody""" - query_suite: Missing[Literal["default", "extended"]] = Field( + permission: Missing[str] = 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.", + 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(OrgsOrgSecurityProductEnablementPostBody) +model_rebuild(OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody) -__all__ = ("OrgsOrgSecurityProductEnablementPostBody",) +__all__ = ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0861.py b/githubkit/versions/v2022_11_28/models/group_0861.py index 8e85c1489..0164cc723 100644 --- a/githubkit/versions/v2022_11_28/models/group_0861.py +++ b/githubkit/versions/v2022_11_28/models/group_0861.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List +from typing import Literal from pydantic import Field @@ -18,14 +18,15 @@ from githubkit.compat import GitHubModel, model_rebuild -class ProjectsColumnsCardsCardIdDeleteResponse403(GitHubModel): - """ProjectsColumnsCardsCardIdDeleteResponse403""" +class OrgsOrgSecurityProductEnablementPostBody(GitHubModel): + """OrgsOrgSecurityProductEnablementPostBody""" - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) - errors: Missing[List[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(ProjectsColumnsCardsCardIdDeleteResponse403) +model_rebuild(OrgsOrgSecurityProductEnablementPostBody) -__all__ = ("ProjectsColumnsCardsCardIdDeleteResponse403",) +__all__ = ("OrgsOrgSecurityProductEnablementPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0862.py b/githubkit/versions/v2022_11_28/models/group_0862.py index 6ff9e974c..8e85c1489 100644 --- a/githubkit/versions/v2022_11_28/models/group_0862.py +++ b/githubkit/versions/v2022_11_28/models/group_0862.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import List from pydantic import Field @@ -18,17 +18,14 @@ from githubkit.compat import GitHubModel, model_rebuild -class ProjectsColumnsCardsCardIdPatchBody(GitHubModel): - """ProjectsColumnsCardsCardIdPatchBody""" +class ProjectsColumnsCardsCardIdDeleteResponse403(GitHubModel): + """ProjectsColumnsCardsCardIdDeleteResponse403""" - 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" - ) + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) + errors: Missing[List[str]] = Field(default=UNSET) -model_rebuild(ProjectsColumnsCardsCardIdPatchBody) +model_rebuild(ProjectsColumnsCardsCardIdDeleteResponse403) -__all__ = ("ProjectsColumnsCardsCardIdPatchBody",) +__all__ = ("ProjectsColumnsCardsCardIdDeleteResponse403",) diff --git a/githubkit/versions/v2022_11_28/models/group_0863.py b/githubkit/versions/v2022_11_28/models/group_0863.py index d9c5ebe68..6ff9e974c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0863.py +++ b/githubkit/versions/v2022_11_28/models/group_0863.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.utils import UNSET @@ -16,19 +18,17 @@ from githubkit.compat import GitHubModel, model_rebuild -class ProjectsColumnsCardsCardIdMovesPostBody(GitHubModel): - """ProjectsColumnsCardsCardIdMovesPostBody""" +class ProjectsColumnsCardsCardIdPatchBody(GitHubModel): + """ProjectsColumnsCardsCardIdPatchBody""" - 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.", + note: Missing[Union[str, None]] = Field( + default=UNSET, description="The project card's note" ) - column_id: Missing[int] = Field( - default=UNSET, - description="The unique identifier of the column the card should be moved to", + archived: Missing[bool] = Field( + default=UNSET, description="Whether or not the card is archived" ) -model_rebuild(ProjectsColumnsCardsCardIdMovesPostBody) +model_rebuild(ProjectsColumnsCardsCardIdPatchBody) -__all__ = ("ProjectsColumnsCardsCardIdMovesPostBody",) +__all__ = ("ProjectsColumnsCardsCardIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0864.py b/githubkit/versions/v2022_11_28/models/group_0864.py index 7d3245c63..d9c5ebe68 100644 --- a/githubkit/versions/v2022_11_28/models/group_0864.py +++ b/githubkit/versions/v2022_11_28/models/group_0864.py @@ -9,13 +9,26 @@ from __future__ import annotations +from pydantic import Field + +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ProjectsColumnsCardsCardIdMovesPostResponse201(GitHubModel): - """ProjectsColumnsCardsCardIdMovesPostResponse201""" +class ProjectsColumnsCardsCardIdMovesPostBody(GitHubModel): + """ProjectsColumnsCardsCardIdMovesPostBody""" + + 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(ProjectsColumnsCardsCardIdMovesPostResponse201) +model_rebuild(ProjectsColumnsCardsCardIdMovesPostBody) -__all__ = ("ProjectsColumnsCardsCardIdMovesPostResponse201",) +__all__ = ("ProjectsColumnsCardsCardIdMovesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0865.py b/githubkit/versions/v2022_11_28/models/group_0865.py index 97fe55aa9..7d3245c63 100644 --- a/githubkit/versions/v2022_11_28/models/group_0865.py +++ b/githubkit/versions/v2022_11_28/models/group_0865.py @@ -9,38 +9,13 @@ from __future__ import annotations -from typing import List - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -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""" - - code: Missing[str] = Field(default=UNSET) - message: Missing[str] = Field(default=UNSET) - resource: Missing[str] = Field(default=UNSET) - field: Missing[str] = Field(default=UNSET) +class ProjectsColumnsCardsCardIdMovesPostResponse201(GitHubModel): + """ProjectsColumnsCardsCardIdMovesPostResponse201""" -model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse403) -model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems) +model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse201) -__all__ = ( - "ProjectsColumnsCardsCardIdMovesPostResponse403", - "ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems", -) +__all__ = ("ProjectsColumnsCardsCardIdMovesPostResponse201",) diff --git a/githubkit/versions/v2022_11_28/models/group_0866.py b/githubkit/versions/v2022_11_28/models/group_0866.py index 2a0dcefa7..97fe55aa9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0866.py +++ b/githubkit/versions/v2022_11_28/models/group_0866.py @@ -18,28 +18,29 @@ from githubkit.compat import GitHubModel, model_rebuild -class ProjectsColumnsCardsCardIdMovesPostResponse503(GitHubModel): - """ProjectsColumnsCardsCardIdMovesPostResponse503""" +class ProjectsColumnsCardsCardIdMovesPostResponse403(GitHubModel): + """ProjectsColumnsCardsCardIdMovesPostResponse403""" - code: Missing[str] = Field(default=UNSET) message: Missing[str] = Field(default=UNSET) documentation_url: Missing[str] = Field(default=UNSET) errors: Missing[ - List[ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems] + List[ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems] ] = Field(default=UNSET) -class ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems(GitHubModel): - """ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems""" +class ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems(GitHubModel): + """ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems""" 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(ProjectsColumnsCardsCardIdMovesPostResponse503) -model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems) +model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse403) +model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems) __all__ = ( - "ProjectsColumnsCardsCardIdMovesPostResponse503", - "ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems", + "ProjectsColumnsCardsCardIdMovesPostResponse403", + "ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0867.py b/githubkit/versions/v2022_11_28/models/group_0867.py index e6f9395a8..2a0dcefa7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0867.py +++ b/githubkit/versions/v2022_11_28/models/group_0867.py @@ -9,17 +9,37 @@ from __future__ import annotations +from typing import List + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ProjectsColumnsColumnIdPatchBody(GitHubModel): - """ProjectsColumnsColumnIdPatchBody""" +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""" - name: str = Field(description="Name of the project column") + code: Missing[str] = Field(default=UNSET) + message: Missing[str] = Field(default=UNSET) -model_rebuild(ProjectsColumnsColumnIdPatchBody) +model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse503) +model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems) -__all__ = ("ProjectsColumnsColumnIdPatchBody",) +__all__ = ( + "ProjectsColumnsCardsCardIdMovesPostResponse503", + "ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0868.py b/githubkit/versions/v2022_11_28/models/group_0868.py index 17db0e859..e6f9395a8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0868.py +++ b/githubkit/versions/v2022_11_28/models/group_0868.py @@ -9,19 +9,17 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class ProjectsColumnsColumnIdCardsPostBodyOneof0(GitHubModel): - """ProjectsColumnsColumnIdCardsPostBodyOneof0""" +class ProjectsColumnsColumnIdPatchBody(GitHubModel): + """ProjectsColumnsColumnIdPatchBody""" - note: Union[str, None] = Field(description="The project card's note") + name: str = Field(description="Name of the project column") -model_rebuild(ProjectsColumnsColumnIdCardsPostBodyOneof0) +model_rebuild(ProjectsColumnsColumnIdPatchBody) -__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof0",) +__all__ = ("ProjectsColumnsColumnIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0869.py b/githubkit/versions/v2022_11_28/models/group_0869.py index 78dbfee00..17db0e859 100644 --- a/githubkit/versions/v2022_11_28/models/group_0869.py +++ b/githubkit/versions/v2022_11_28/models/group_0869.py @@ -9,22 +9,19 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class ProjectsColumnsColumnIdCardsPostBodyOneof1(GitHubModel): - """ProjectsColumnsColumnIdCardsPostBodyOneof1""" +class ProjectsColumnsColumnIdCardsPostBodyOneof0(GitHubModel): + """ProjectsColumnsColumnIdCardsPostBodyOneof0""" - 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" - ) + note: Union[str, None] = Field(description="The project card's note") -model_rebuild(ProjectsColumnsColumnIdCardsPostBodyOneof1) +model_rebuild(ProjectsColumnsColumnIdCardsPostBodyOneof0) -__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof1",) +__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_0870.py b/githubkit/versions/v2022_11_28/models/group_0870.py index 090a030ce..78dbfee00 100644 --- a/githubkit/versions/v2022_11_28/models/group_0870.py +++ b/githubkit/versions/v2022_11_28/models/group_0870.py @@ -9,37 +9,22 @@ from __future__ import annotations -from typing import List - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -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 ProjectsColumnsColumnIdCardsPostBodyOneof1(GitHubModel): + """ProjectsColumnsColumnIdCardsPostBodyOneof1""" - code: Missing[str] = Field(default=UNSET) - message: 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(ProjectsColumnsColumnIdCardsPostResponse503) -model_rebuild(ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems) +model_rebuild(ProjectsColumnsColumnIdCardsPostBodyOneof1) -__all__ = ( - "ProjectsColumnsColumnIdCardsPostResponse503", - "ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems", -) +__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_0871.py b/githubkit/versions/v2022_11_28/models/group_0871.py index 003392298..090a030ce 100644 --- a/githubkit/versions/v2022_11_28/models/group_0871.py +++ b/githubkit/versions/v2022_11_28/models/group_0871.py @@ -9,20 +9,37 @@ from __future__ import annotations +from typing import List + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ProjectsColumnsColumnIdMovesPostBody(GitHubModel): - """ProjectsColumnsColumnIdMovesPostBody""" +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""" - 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.", - ) + code: Missing[str] = Field(default=UNSET) + message: Missing[str] = Field(default=UNSET) -model_rebuild(ProjectsColumnsColumnIdMovesPostBody) +model_rebuild(ProjectsColumnsColumnIdCardsPostResponse503) +model_rebuild(ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems) -__all__ = ("ProjectsColumnsColumnIdMovesPostBody",) +__all__ = ( + "ProjectsColumnsColumnIdCardsPostResponse503", + "ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0872.py b/githubkit/versions/v2022_11_28/models/group_0872.py index 6009bdb4e..003392298 100644 --- a/githubkit/versions/v2022_11_28/models/group_0872.py +++ b/githubkit/versions/v2022_11_28/models/group_0872.py @@ -9,13 +9,20 @@ from __future__ import annotations +from pydantic import Field + from githubkit.compat import GitHubModel, model_rebuild -class ProjectsColumnsColumnIdMovesPostResponse201(GitHubModel): - """ProjectsColumnsColumnIdMovesPostResponse201""" +class ProjectsColumnsColumnIdMovesPostBody(GitHubModel): + """ProjectsColumnsColumnIdMovesPostBody""" + + 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(ProjectsColumnsColumnIdMovesPostResponse201) +model_rebuild(ProjectsColumnsColumnIdMovesPostBody) -__all__ = ("ProjectsColumnsColumnIdMovesPostResponse201",) +__all__ = ("ProjectsColumnsColumnIdMovesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0873.py b/githubkit/versions/v2022_11_28/models/group_0873.py index 8185d7ede..6009bdb4e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0873.py +++ b/githubkit/versions/v2022_11_28/models/group_0873.py @@ -9,23 +9,13 @@ from __future__ import annotations -from typing import List - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -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 ProjectsColumnsColumnIdMovesPostResponse201(GitHubModel): + """ProjectsColumnsColumnIdMovesPostResponse201""" -model_rebuild(ProjectsProjectIdDeleteResponse403) +model_rebuild(ProjectsColumnsColumnIdMovesPostResponse201) -__all__ = ("ProjectsProjectIdDeleteResponse403",) +__all__ = ("ProjectsColumnsColumnIdMovesPostResponse201",) diff --git a/githubkit/versions/v2022_11_28/models/group_0874.py b/githubkit/versions/v2022_11_28/models/group_0874.py index b66b14460..8185d7ede 100644 --- a/githubkit/versions/v2022_11_28/models/group_0874.py +++ b/githubkit/versions/v2022_11_28/models/group_0874.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List from pydantic import Field @@ -18,26 +18,14 @@ from githubkit.compat import GitHubModel, model_rebuild -class ProjectsProjectIdPatchBody(GitHubModel): - """ProjectsProjectIdPatchBody""" +class ProjectsProjectIdDeleteResponse403(GitHubModel): + """ProjectsProjectIdDeleteResponse403""" - 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.", - ) + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) + errors: Missing[List[str]] = Field(default=UNSET) -model_rebuild(ProjectsProjectIdPatchBody) +model_rebuild(ProjectsProjectIdDeleteResponse403) -__all__ = ("ProjectsProjectIdPatchBody",) +__all__ = ("ProjectsProjectIdDeleteResponse403",) diff --git a/githubkit/versions/v2022_11_28/models/group_0875.py b/githubkit/versions/v2022_11_28/models/group_0875.py index 5a474d68b..b66b14460 100644 --- a/githubkit/versions/v2022_11_28/models/group_0875.py +++ b/githubkit/versions/v2022_11_28/models/group_0875.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List +from typing import Union, Literal from pydantic import Field @@ -18,14 +18,26 @@ from githubkit.compat import GitHubModel, model_rebuild -class ProjectsProjectIdPatchResponse403(GitHubModel): - """ProjectsProjectIdPatchResponse403""" +class ProjectsProjectIdPatchBody(GitHubModel): + """ProjectsProjectIdPatchBody""" - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) - errors: Missing[List[str]] = Field(default=UNSET) + 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(ProjectsProjectIdPatchResponse403) +model_rebuild(ProjectsProjectIdPatchBody) -__all__ = ("ProjectsProjectIdPatchResponse403",) +__all__ = ("ProjectsProjectIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0876.py b/githubkit/versions/v2022_11_28/models/group_0876.py index a5695c5c0..5a474d68b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0876.py +++ b/githubkit/versions/v2022_11_28/models/group_0876.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import List from pydantic import Field @@ -18,14 +18,14 @@ from githubkit.compat import GitHubModel, model_rebuild -class ProjectsProjectIdCollaboratorsUsernamePutBody(GitHubModel): - """ProjectsProjectIdCollaboratorsUsernamePutBody""" +class ProjectsProjectIdPatchResponse403(GitHubModel): + """ProjectsProjectIdPatchResponse403""" - permission: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET, description="The permission to grant the collaborator." - ) + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) + errors: Missing[List[str]] = Field(default=UNSET) -model_rebuild(ProjectsProjectIdCollaboratorsUsernamePutBody) +model_rebuild(ProjectsProjectIdPatchResponse403) -__all__ = ("ProjectsProjectIdCollaboratorsUsernamePutBody",) +__all__ = ("ProjectsProjectIdPatchResponse403",) diff --git a/githubkit/versions/v2022_11_28/models/group_0877.py b/githubkit/versions/v2022_11_28/models/group_0877.py index e33e0910d..a5695c5c0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0877.py +++ b/githubkit/versions/v2022_11_28/models/group_0877.py @@ -9,17 +9,23 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ProjectsProjectIdColumnsPostBody(GitHubModel): - """ProjectsProjectIdColumnsPostBody""" +class ProjectsProjectIdCollaboratorsUsernamePutBody(GitHubModel): + """ProjectsProjectIdCollaboratorsUsernamePutBody""" - name: str = Field(description="Name of the project column") + permission: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET, description="The permission to grant the collaborator." + ) -model_rebuild(ProjectsProjectIdColumnsPostBody) +model_rebuild(ProjectsProjectIdCollaboratorsUsernamePutBody) -__all__ = ("ProjectsProjectIdColumnsPostBody",) +__all__ = ("ProjectsProjectIdCollaboratorsUsernamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0878.py b/githubkit/versions/v2022_11_28/models/group_0878.py index f4e118c4e..e33e0910d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0878.py +++ b/githubkit/versions/v2022_11_28/models/group_0878.py @@ -11,18 +11,15 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoDeleteResponse403(GitHubModel): - """ReposOwnerRepoDeleteResponse403""" +class ProjectsProjectIdColumnsPostBody(GitHubModel): + """ProjectsProjectIdColumnsPostBody""" - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the project column") -model_rebuild(ReposOwnerRepoDeleteResponse403) +model_rebuild(ProjectsProjectIdColumnsPostBody) -__all__ = ("ReposOwnerRepoDeleteResponse403",) +__all__ = ("ProjectsProjectIdColumnsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0879.py b/githubkit/versions/v2022_11_28/models/group_0879.py index af35beb3a..f4e118c4e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0879.py +++ b/githubkit/versions/v2022_11_28/models/group_0879.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Union, Literal - from pydantic import Field from githubkit.utils import UNSET @@ -18,232 +16,13 @@ from githubkit.compat import GitHubModel, model_rebuild -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 has been deprecated. 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.", - ) - 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)."', - ) - 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_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 "[Secret scanning supported secrets](/code-security/secret-scanning/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 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 ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns( - GitHubModel -): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatte - rns - - Use the `status` property to enable or disable secret scanning non-provider - patterns for this repository. For more information, see "[Secret scanning - supported secrets](/code-security/secret-scanning/secret-scanning- - patterns#supported-secrets)." - """ +class ReposOwnerRepoDeleteResponse403(GitHubModel): + """ReposOwnerRepoDeleteResponse403""" - status: Missing[str] = Field( - default=UNSET, description="Can be `enabled` or `disabled`." - ) + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoPatchBody) -model_rebuild(ReposOwnerRepoPatchBodyPropSecurityAndAnalysis) -model_rebuild(ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity) -model_rebuild(ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning) -model_rebuild( - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection -) -model_rebuild( - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns -) +model_rebuild(ReposOwnerRepoDeleteResponse403) -__all__ = ( - "ReposOwnerRepoPatchBody", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysis", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns", -) +__all__ = ("ReposOwnerRepoDeleteResponse403",) diff --git a/githubkit/versions/v2022_11_28/models/group_0880.py b/githubkit/versions/v2022_11_28/models/group_0880.py index d27bad694..af35beb3a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0880.py +++ b/githubkit/versions/v2022_11_28/models/group_0880.py @@ -9,22 +9,241 @@ from __future__ import annotations -from typing import List +from typing import Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0161 import Artifact +class ReposOwnerRepoPatchBody(GitHubModel): + """ReposOwnerRepoPatchBody""" -class ReposOwnerRepoActionsArtifactsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsArtifactsGetResponse200""" + 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 has been deprecated. 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.", + ) + 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.", + ) - total_count: int = Field() - artifacts: List[Artifact] = Field() +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysis(GitHubModel): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysis -model_rebuild(ReposOwnerRepoActionsArtifactsGetResponse200) + Specify which security and analysis features to enable or disable for the + repository. -__all__ = ("ReposOwnerRepoActionsArtifactsGetResponse200",) + 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)."', + ) + 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_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 "[Secret scanning supported secrets](/code-security/secret-scanning/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 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 ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns( + GitHubModel +): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatte + rns + + Use the `status` property to enable or disable secret scanning non-provider + patterns for this repository. For more information, see "[Secret scanning + supported secrets](/code-security/secret-scanning/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(ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning) +model_rebuild( + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection +) +model_rebuild( + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns +) + +__all__ = ( + "ReposOwnerRepoPatchBody", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysis", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0881.py b/githubkit/versions/v2022_11_28/models/group_0881.py index 4b45f9286..d27bad694 100644 --- a/githubkit/versions/v2022_11_28/models/group_0881.py +++ b/githubkit/versions/v2022_11_28/models/group_0881.py @@ -9,21 +9,22 @@ from __future__ import annotations +from typing import List + from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0161 import Artifact + -class ReposOwnerRepoActionsJobsJobIdRerunPostBody(GitHubModel): - """ReposOwnerRepoActionsJobsJobIdRerunPostBody""" +class ReposOwnerRepoActionsArtifactsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsArtifactsGetResponse200""" - 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(ReposOwnerRepoActionsArtifactsGetResponse200) -__all__ = ("ReposOwnerRepoActionsJobsJobIdRerunPostBody",) +__all__ = ("ReposOwnerRepoActionsArtifactsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0882.py b/githubkit/versions/v2022_11_28/models/group_0882.py index 7f44831d4..4b45f9286 100644 --- a/githubkit/versions/v2022_11_28/models/group_0882.py +++ b/githubkit/versions/v2022_11_28/models/group_0882.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import List - from pydantic import Field from githubkit.utils import UNSET @@ -18,21 +16,14 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoActionsOidcCustomizationSubPutBody(GitHubModel): - """Actions OIDC subject customization for a repository - - Actions OIDC subject customization for a repository - """ +class ReposOwnerRepoActionsJobsJobIdRerunPostBody(GitHubModel): + """ReposOwnerRepoActionsJobsJobIdRerunPostBody""" - 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.", + enable_debug_logging: Missing[bool] = Field( + default=UNSET, description="Whether to enable debug logging for the re-run." ) -model_rebuild(ReposOwnerRepoActionsOidcCustomizationSubPutBody) +model_rebuild(ReposOwnerRepoActionsJobsJobIdRerunPostBody) -__all__ = ("ReposOwnerRepoActionsOidcCustomizationSubPutBody",) +__all__ = ("ReposOwnerRepoActionsJobsJobIdRerunPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0883.py b/githubkit/versions/v2022_11_28/models/group_0883.py index d4cbbf7c7..7f44831d4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0883.py +++ b/githubkit/versions/v2022_11_28/models/group_0883.py @@ -13,18 +13,26 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0165 import ActionsSecret +class ReposOwnerRepoActionsOidcCustomizationSubPutBody(GitHubModel): + """Actions OIDC subject customization for a repository -class ReposOwnerRepoActionsOrganizationSecretsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsOrganizationSecretsGetResponse200""" + Actions OIDC subject customization for a repository + """ - total_count: int = Field() - secrets: List[ActionsSecret] = 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(ReposOwnerRepoActionsOrganizationSecretsGetResponse200) +model_rebuild(ReposOwnerRepoActionsOidcCustomizationSubPutBody) -__all__ = ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200",) +__all__ = ("ReposOwnerRepoActionsOidcCustomizationSubPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0884.py b/githubkit/versions/v2022_11_28/models/group_0884.py index a1066b434..d4cbbf7c7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0884.py +++ b/githubkit/versions/v2022_11_28/models/group_0884.py @@ -15,16 +15,16 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0166 import ActionsVariable +from .group_0165 import ActionsSecret -class ReposOwnerRepoActionsOrganizationVariablesGetResponse200(GitHubModel): - """ReposOwnerRepoActionsOrganizationVariablesGetResponse200""" +class ReposOwnerRepoActionsOrganizationSecretsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsOrganizationSecretsGetResponse200""" total_count: int = Field() - variables: List[ActionsVariable] = Field() + secrets: List[ActionsSecret] = Field() -model_rebuild(ReposOwnerRepoActionsOrganizationVariablesGetResponse200) +model_rebuild(ReposOwnerRepoActionsOrganizationSecretsGetResponse200) -__all__ = ("ReposOwnerRepoActionsOrganizationVariablesGetResponse200",) +__all__ = ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0885.py b/githubkit/versions/v2022_11_28/models/group_0885.py index cd92079a4..a1066b434 100644 --- a/githubkit/versions/v2022_11_28/models/group_0885.py +++ b/githubkit/versions/v2022_11_28/models/group_0885.py @@ -9,27 +9,22 @@ from __future__ import annotations -from typing import Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0166 import ActionsVariable -class ReposOwnerRepoActionsPermissionsPutBody(GitHubModel): - """ReposOwnerRepoActionsPermissionsPutBody""" - 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.", - ) +class ReposOwnerRepoActionsOrganizationVariablesGetResponse200(GitHubModel): + """ReposOwnerRepoActionsOrganizationVariablesGetResponse200""" + total_count: int = Field() + variables: List[ActionsVariable] = Field() -model_rebuild(ReposOwnerRepoActionsPermissionsPutBody) -__all__ = ("ReposOwnerRepoActionsPermissionsPutBody",) +model_rebuild(ReposOwnerRepoActionsOrganizationVariablesGetResponse200) + +__all__ = ("ReposOwnerRepoActionsOrganizationVariablesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0886.py b/githubkit/versions/v2022_11_28/models/group_0886.py index 4053c22f0..cd92079a4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0886.py +++ b/githubkit/versions/v2022_11_28/models/group_0886.py @@ -9,22 +9,27 @@ from __future__ import annotations -from typing import List +from typing import Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0066 import Runner +class ReposOwnerRepoActionsPermissionsPutBody(GitHubModel): + """ReposOwnerRepoActionsPermissionsPutBody""" -class ReposOwnerRepoActionsRunnersGetResponse200(GitHubModel): - """ReposOwnerRepoActionsRunnersGetResponse200""" + 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.", + ) - total_count: int = Field() - runners: List[Runner] = Field() +model_rebuild(ReposOwnerRepoActionsPermissionsPutBody) -model_rebuild(ReposOwnerRepoActionsRunnersGetResponse200) - -__all__ = ("ReposOwnerRepoActionsRunnersGetResponse200",) +__all__ = ("ReposOwnerRepoActionsPermissionsPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0887.py b/githubkit/versions/v2022_11_28/models/group_0887.py index c091701cc..4053c22f0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0887.py +++ b/githubkit/versions/v2022_11_28/models/group_0887.py @@ -13,29 +13,18 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0066 import Runner -class ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody(GitHubModel): - """ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody""" - 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, - min_length=1, - 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 ReposOwnerRepoActionsRunnersGetResponse200(GitHubModel): + """ReposOwnerRepoActionsRunnersGetResponse200""" + total_count: int = Field() + runners: List[Runner] = Field() -model_rebuild(ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody) -__all__ = ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody",) +model_rebuild(ReposOwnerRepoActionsRunnersGetResponse200) + +__all__ = ("ReposOwnerRepoActionsRunnersGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0888.py b/githubkit/versions/v2022_11_28/models/group_0888.py index 47ec574ee..c091701cc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0888.py +++ b/githubkit/versions/v2022_11_28/models/group_0888.py @@ -13,18 +13,29 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody(GitHubModel): - """ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody""" +class ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody(GitHubModel): + """ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody""" + 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, - description="The names of the custom labels to set for the runner. You can pass an empty array to remove all custom labels.", + min_length=1, + 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(ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody) +model_rebuild(ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody) -__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody",) +__all__ = ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0889.py b/githubkit/versions/v2022_11_28/models/group_0889.py index f0573dca7..47ec574ee 100644 --- a/githubkit/versions/v2022_11_28/models/group_0889.py +++ b/githubkit/versions/v2022_11_28/models/group_0889.py @@ -16,16 +16,15 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody(GitHubModel): - """ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody""" +class ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody(GitHubModel): + """ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody""" labels: List[str] = Field( max_length=100, - min_length=1, - description="The names of the custom labels to add to the runner.", + 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(ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody) +model_rebuild(ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody) -__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody",) +__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0890.py b/githubkit/versions/v2022_11_28/models/group_0890.py index b4378cfbe..f0573dca7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0890.py +++ b/githubkit/versions/v2022_11_28/models/group_0890.py @@ -15,16 +15,17 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0171 import WorkflowRun +class ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody(GitHubModel): + """ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody""" -class ReposOwnerRepoActionsRunsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsRunsGetResponse200""" + labels: List[str] = Field( + max_length=100, + min_length=1, + description="The names of the custom labels to add to the runner.", + ) - total_count: int = Field() - workflow_runs: List[WorkflowRun] = Field() +model_rebuild(ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody) -model_rebuild(ReposOwnerRepoActionsRunsGetResponse200) - -__all__ = ("ReposOwnerRepoActionsRunsGetResponse200",) +__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0891.py b/githubkit/versions/v2022_11_28/models/group_0891.py index 2fc7e2914..b4378cfbe 100644 --- a/githubkit/versions/v2022_11_28/models/group_0891.py +++ b/githubkit/versions/v2022_11_28/models/group_0891.py @@ -15,16 +15,16 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0161 import Artifact +from .group_0171 import WorkflowRun -class ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200""" +class ReposOwnerRepoActionsRunsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsRunsGetResponse200""" total_count: int = Field() - artifacts: List[Artifact] = Field() + workflow_runs: List[WorkflowRun] = Field() -model_rebuild(ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200) +model_rebuild(ReposOwnerRepoActionsRunsGetResponse200) -__all__ = ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200",) +__all__ = ("ReposOwnerRepoActionsRunsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0892.py b/githubkit/versions/v2022_11_28/models/group_0892.py index e03595d33..2fc7e2914 100644 --- a/githubkit/versions/v2022_11_28/models/group_0892.py +++ b/githubkit/versions/v2022_11_28/models/group_0892.py @@ -15,18 +15,16 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0163 import Job +from .group_0161 import Artifact -class ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200( - GitHubModel -): - """ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200""" +class ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200""" total_count: int = Field() - jobs: List[Job] = Field() + artifacts: List[Artifact] = Field() -model_rebuild(ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200) +model_rebuild(ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200) -__all__ = ("ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200",) +__all__ = ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0893.py b/githubkit/versions/v2022_11_28/models/group_0893.py index 748b724c9..e03595d33 100644 --- a/githubkit/versions/v2022_11_28/models/group_0893.py +++ b/githubkit/versions/v2022_11_28/models/group_0893.py @@ -18,13 +18,15 @@ from .group_0163 import Job -class ReposOwnerRepoActionsRunsRunIdJobsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsRunsRunIdJobsGetResponse200""" +class ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200( + GitHubModel +): + """ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200""" total_count: int = Field() jobs: List[Job] = Field() -model_rebuild(ReposOwnerRepoActionsRunsRunIdJobsGetResponse200) +model_rebuild(ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200) -__all__ = ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200",) +__all__ = ("ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0894.py b/githubkit/versions/v2022_11_28/models/group_0894.py index d62931f9a..748b724c9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0894.py +++ b/githubkit/versions/v2022_11_28/models/group_0894.py @@ -9,25 +9,22 @@ from __future__ import annotations -from typing import List, Literal +from typing import List from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from .group_0163 import Job -class ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody(GitHubModel): - """ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody""" - 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") +class ReposOwnerRepoActionsRunsRunIdJobsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsRunsRunIdJobsGetResponse200""" + total_count: int = Field() + jobs: List[Job] = Field() -model_rebuild(ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody) -__all__ = ("ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody",) +model_rebuild(ReposOwnerRepoActionsRunsRunIdJobsGetResponse200) + +__all__ = ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0895.py b/githubkit/versions/v2022_11_28/models/group_0895.py index 28385e889..d62931f9a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0895.py +++ b/githubkit/versions/v2022_11_28/models/group_0895.py @@ -9,21 +9,25 @@ from __future__ import annotations +from typing import List, Literal + from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoActionsRunsRunIdRerunPostBody(GitHubModel): - """ReposOwnerRepoActionsRunsRunIdRerunPostBody""" +class ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody(GitHubModel): + """ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody""" - enable_debug_logging: Missing[bool] = Field( - default=UNSET, description="Whether to enable debug logging for the re-run." + 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(ReposOwnerRepoActionsRunsRunIdRerunPostBody) +model_rebuild(ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody) -__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunPostBody",) +__all__ = ("ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0896.py b/githubkit/versions/v2022_11_28/models/group_0896.py index c79dac58f..28385e889 100644 --- a/githubkit/versions/v2022_11_28/models/group_0896.py +++ b/githubkit/versions/v2022_11_28/models/group_0896.py @@ -16,14 +16,14 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody(GitHubModel): - """ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody""" +class ReposOwnerRepoActionsRunsRunIdRerunPostBody(GitHubModel): + """ReposOwnerRepoActionsRunsRunIdRerunPostBody""" enable_debug_logging: Missing[bool] = Field( default=UNSET, description="Whether to enable debug logging for the re-run." ) -model_rebuild(ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody) +model_rebuild(ReposOwnerRepoActionsRunsRunIdRerunPostBody) -__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody",) +__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0897.py b/githubkit/versions/v2022_11_28/models/group_0897.py index 761190bc2..c79dac58f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0897.py +++ b/githubkit/versions/v2022_11_28/models/group_0897.py @@ -9,22 +9,21 @@ from __future__ import annotations -from typing import List - from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0165 import ActionsSecret - -class ReposOwnerRepoActionsSecretsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsSecretsGetResponse200""" +class ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody(GitHubModel): + """ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody""" - total_count: int = Field() - secrets: List[ActionsSecret] = Field() + enable_debug_logging: Missing[bool] = Field( + default=UNSET, description="Whether to enable debug logging for the re-run." + ) -model_rebuild(ReposOwnerRepoActionsSecretsGetResponse200) +model_rebuild(ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody) -__all__ = ("ReposOwnerRepoActionsSecretsGetResponse200",) +__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0898.py b/githubkit/versions/v2022_11_28/models/group_0898.py index 64d6674c7..761190bc2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0898.py +++ b/githubkit/versions/v2022_11_28/models/group_0898.py @@ -9,26 +9,22 @@ from __future__ import annotations +from typing import List + from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0165 import ActionsSecret + -class ReposOwnerRepoActionsSecretsSecretNamePutBody(GitHubModel): - """ReposOwnerRepoActionsSecretsSecretNamePutBody""" +class ReposOwnerRepoActionsSecretsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsSecretsGetResponse200""" - 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/actions/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." - ) + total_count: int = Field() + secrets: List[ActionsSecret] = Field() -model_rebuild(ReposOwnerRepoActionsSecretsSecretNamePutBody) +model_rebuild(ReposOwnerRepoActionsSecretsGetResponse200) -__all__ = ("ReposOwnerRepoActionsSecretsSecretNamePutBody",) +__all__ = ("ReposOwnerRepoActionsSecretsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0899.py b/githubkit/versions/v2022_11_28/models/group_0899.py index b3aa342e3..64d6674c7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0899.py +++ b/githubkit/versions/v2022_11_28/models/group_0899.py @@ -9,22 +9,26 @@ from __future__ import annotations -from typing import List - from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0166 import ActionsVariable - -class ReposOwnerRepoActionsVariablesGetResponse200(GitHubModel): - """ReposOwnerRepoActionsVariablesGetResponse200""" +class ReposOwnerRepoActionsSecretsSecretNamePutBody(GitHubModel): + """ReposOwnerRepoActionsSecretsSecretNamePutBody""" - total_count: int = Field() - variables: List[ActionsVariable] = 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/actions/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(ReposOwnerRepoActionsVariablesGetResponse200) +model_rebuild(ReposOwnerRepoActionsSecretsSecretNamePutBody) -__all__ = ("ReposOwnerRepoActionsVariablesGetResponse200",) +__all__ = ("ReposOwnerRepoActionsSecretsSecretNamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0900.py b/githubkit/versions/v2022_11_28/models/group_0900.py index bf9209ee5..b3aa342e3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0900.py +++ b/githubkit/versions/v2022_11_28/models/group_0900.py @@ -9,18 +9,22 @@ from __future__ import annotations +from typing import List + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from .group_0166 import ActionsVariable + -class ReposOwnerRepoActionsVariablesPostBody(GitHubModel): - """ReposOwnerRepoActionsVariablesPostBody""" +class ReposOwnerRepoActionsVariablesGetResponse200(GitHubModel): + """ReposOwnerRepoActionsVariablesGetResponse200""" - name: str = Field(description="The name of the variable.") - value: str = Field(description="The value of the variable.") + total_count: int = Field() + variables: List[ActionsVariable] = Field() -model_rebuild(ReposOwnerRepoActionsVariablesPostBody) +model_rebuild(ReposOwnerRepoActionsVariablesGetResponse200) -__all__ = ("ReposOwnerRepoActionsVariablesPostBody",) +__all__ = ("ReposOwnerRepoActionsVariablesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0901.py b/githubkit/versions/v2022_11_28/models/group_0901.py index f0b922c41..bf9209ee5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0901.py +++ b/githubkit/versions/v2022_11_28/models/group_0901.py @@ -11,18 +11,16 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoActionsVariablesNamePatchBody(GitHubModel): - """ReposOwnerRepoActionsVariablesNamePatchBody""" +class ReposOwnerRepoActionsVariablesPostBody(GitHubModel): + """ReposOwnerRepoActionsVariablesPostBody""" - name: Missing[str] = Field(default=UNSET, description="The name of the variable.") - value: Missing[str] = Field(default=UNSET, description="The value of the variable.") + name: str = Field(description="The name of the variable.") + value: str = Field(description="The value of the variable.") -model_rebuild(ReposOwnerRepoActionsVariablesNamePatchBody) +model_rebuild(ReposOwnerRepoActionsVariablesPostBody) -__all__ = ("ReposOwnerRepoActionsVariablesNamePatchBody",) +__all__ = ("ReposOwnerRepoActionsVariablesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0902.py b/githubkit/versions/v2022_11_28/models/group_0902.py index d5193e37e..f0b922c41 100644 --- a/githubkit/versions/v2022_11_28/models/group_0902.py +++ b/githubkit/versions/v2022_11_28/models/group_0902.py @@ -9,9 +9,6 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal - from pydantic import Field from githubkit.utils import UNSET @@ -19,38 +16,13 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoActionsWorkflowsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsWorkflowsGetResponse200""" - - total_count: int = Field() - workflows: List[Workflow] = Field() - - -class Workflow(GitHubModel): - """Workflow - - A GitHub Actions workflow - """ +class ReposOwnerRepoActionsVariablesNamePatchBody(GitHubModel): + """ReposOwnerRepoActionsVariablesNamePatchBody""" - 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) + 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(ReposOwnerRepoActionsWorkflowsGetResponse200) -model_rebuild(Workflow) +model_rebuild(ReposOwnerRepoActionsVariablesNamePatchBody) -__all__ = ( - "ReposOwnerRepoActionsWorkflowsGetResponse200", - "Workflow", -) +__all__ = ("ReposOwnerRepoActionsVariablesNamePatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0903.py b/githubkit/versions/v2022_11_28/models/group_0903.py index 506702767..d5193e37e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0903.py +++ b/githubkit/versions/v2022_11_28/models/group_0903.py @@ -9,42 +9,48 @@ from __future__ import annotations +from datetime import datetime +from typing import List, Literal + from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody(GitHubModel): - """ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody""" +class ReposOwnerRepoActionsWorkflowsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsWorkflowsGetResponse200""" - 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.", - ) + total_count: int = Field() + workflows: List[Workflow] = Field() -class ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs( - ExtraGitHubModel -): - """ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs +class Workflow(GitHubModel): + """Workflow - 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. + A GitHub Actions workflow """ + 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(ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody) -model_rebuild(ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs) +model_rebuild(ReposOwnerRepoActionsWorkflowsGetResponse200) +model_rebuild(Workflow) __all__ = ( - "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody", - "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs", + "ReposOwnerRepoActionsWorkflowsGetResponse200", + "Workflow", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0904.py b/githubkit/versions/v2022_11_28/models/group_0904.py index b4703d938..506702767 100644 --- a/githubkit/versions/v2022_11_28/models/group_0904.py +++ b/githubkit/versions/v2022_11_28/models/group_0904.py @@ -9,22 +9,42 @@ from __future__ import annotations -from typing import List - from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.utils import UNSET +from githubkit.typing import Missing +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild + + +class ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody(GitHubModel): + """ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody""" -from .group_0171 import WorkflowRun + 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 ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200""" +class ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs( + ExtraGitHubModel +): + """ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs - total_count: int = Field() - workflow_runs: List[WorkflowRun] = Field() + 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(ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200) +model_rebuild(ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody) +model_rebuild(ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs) -__all__ = ("ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200",) +__all__ = ( + "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody", + "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0905.py b/githubkit/versions/v2022_11_28/models/group_0905.py index d40211dee..b4703d938 100644 --- a/githubkit/versions/v2022_11_28/models/group_0905.py +++ b/githubkit/versions/v2022_11_28/models/group_0905.py @@ -9,57 +9,22 @@ from __future__ import annotations -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild - - -class ReposOwnerRepoAttestationsPostBody(GitHubModel): - """ReposOwnerRepoAttestationsPostBody""" +from typing import List - 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. - """ +from pydantic import Field - 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") +from githubkit.compat import GitHubModel, model_rebuild +from .group_0171 import WorkflowRun -class ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial( - ExtraGitHubModel -): - """ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial""" +class ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200""" -class ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope(ExtraGitHubModel): - """ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope""" + total_count: int = Field() + workflow_runs: List[WorkflowRun] = Field() -model_rebuild(ReposOwnerRepoAttestationsPostBody) -model_rebuild(ReposOwnerRepoAttestationsPostBodyPropBundle) -model_rebuild(ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial) -model_rebuild(ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope) +model_rebuild(ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200) -__all__ = ( - "ReposOwnerRepoAttestationsPostBody", - "ReposOwnerRepoAttestationsPostBodyPropBundle", - "ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial", - "ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope", -) +__all__ = ("ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0906.py b/githubkit/versions/v2022_11_28/models/group_0906.py index 2a363197c..d40211dee 100644 --- a/githubkit/versions/v2022_11_28/models/group_0906.py +++ b/githubkit/versions/v2022_11_28/models/group_0906.py @@ -13,15 +13,53 @@ from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild -class ReposOwnerRepoAttestationsPostResponse201(GitHubModel): - """ReposOwnerRepoAttestationsPostResponse201""" +class ReposOwnerRepoAttestationsPostBody(GitHubModel): + """ReposOwnerRepoAttestationsPostBody""" - id: Missing[int] = Field(default=UNSET, description="The ID of the attestation.") + 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." + ) -model_rebuild(ReposOwnerRepoAttestationsPostResponse201) +class ReposOwnerRepoAttestationsPostBodyPropBundle(GitHubModel): + """ReposOwnerRepoAttestationsPostBodyPropBundle -__all__ = ("ReposOwnerRepoAttestationsPostResponse201",) + 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", + "ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial", + "ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0907.py b/githubkit/versions/v2022_11_28/models/group_0907.py index 3159f56c1..2a363197c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0907.py +++ b/githubkit/versions/v2022_11_28/models/group_0907.py @@ -9,92 +9,19 @@ from __future__ import annotations -from typing import List - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild - - -class ReposOwnerRepoAttestationsSubjectDigestGetResponse200(GitHubModel): - """ReposOwnerRepoAttestationsSubjectDigestGetResponse200""" - - 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.", - ) - repository_id: Missing[int] = 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") - +from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial( - ExtraGitHubModel -): - """ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBu - ndlePropVerificationMaterial - """ +class ReposOwnerRepoAttestationsPostResponse201(GitHubModel): + """ReposOwnerRepoAttestationsPostResponse201""" -class ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope( - ExtraGitHubModel -): - """ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBu - ndlePropDsseEnvelope - """ + id: Missing[int] = Field(default=UNSET, description="The ID of the attestation.") -model_rebuild(ReposOwnerRepoAttestationsSubjectDigestGetResponse200) -model_rebuild( - ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems -) -model_rebuild( - ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle -) -model_rebuild( - ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial -) -model_rebuild( - ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope -) +model_rebuild(ReposOwnerRepoAttestationsPostResponse201) -__all__ = ( - "ReposOwnerRepoAttestationsSubjectDigestGetResponse200", - "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems", - "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle", - "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial", - "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope", -) +__all__ = ("ReposOwnerRepoAttestationsPostResponse201",) diff --git a/githubkit/versions/v2022_11_28/models/group_0908.py b/githubkit/versions/v2022_11_28/models/group_0908.py index 171e026b6..3159f56c1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0908.py +++ b/githubkit/versions/v2022_11_28/models/group_0908.py @@ -9,28 +9,92 @@ from __future__ import annotations +from typing import List + from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild -class ReposOwnerRepoAutolinksPostBody(GitHubModel): - """ReposOwnerRepoAutolinksPostBody""" +class ReposOwnerRepoAttestationsSubjectDigestGetResponse200(GitHubModel): + """ReposOwnerRepoAttestationsSubjectDigestGetResponse200""" - 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( + attestations: Missing[ + List[ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems] + ] = Field(default=UNSET) + + +class ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems( + GitHubModel +): + """ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems""" + + bundle: Missing[ + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle + ] = 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.", + 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) + + +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(ReposOwnerRepoAutolinksPostBody) +model_rebuild(ReposOwnerRepoAttestationsSubjectDigestGetResponse200) +model_rebuild( + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems +) +model_rebuild( + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle +) +model_rebuild( + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial +) +model_rebuild( + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope +) -__all__ = ("ReposOwnerRepoAutolinksPostBody",) +__all__ = ( + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0909.py b/githubkit/versions/v2022_11_28/models/group_0909.py index 4e5e649d4..171e026b6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0909.py +++ b/githubkit/versions/v2022_11_28/models/group_0909.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import List, Union - from pydantic import Field from githubkit.utils import UNSET @@ -18,218 +16,21 @@ from githubkit.compat import GitHubModel, model_rebuild -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="**Deprecated**: 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.\n" - ) - 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. - """ +class ReposOwnerRepoAutolinksPostBody(GitHubModel): + """ReposOwnerRepoAutolinksPostBody""" - 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.", + 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." ) - 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.", + url_template: str = Field( + description="The URL must contain `` for the reference number. `` matches different characters depending on the value of `is_alphanumeric`." ) - require_last_push_approval: Missing[bool] = Field( + is_alphanumeric: 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. - """ - - 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" + 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(ReposOwnerRepoBranchesBranchProtectionPutBody) -model_rebuild(ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks) -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems -) -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews -) -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions -) -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances -) -model_rebuild(ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions) +model_rebuild(ReposOwnerRepoAutolinksPostBody) -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionPutBody", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions", -) +__all__ = ("ReposOwnerRepoAutolinksPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0910.py b/githubkit/versions/v2022_11_28/models/group_0910.py index 2e8746f19..4e5e649d4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0910.py +++ b/githubkit/versions/v2022_11_28/models/group_0910.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List +from typing import List, Union from pydantic import Field @@ -18,13 +18,107 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody( +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 ): - """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody""" + """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="**Deprecated**: 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.\n" + ) + 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[ - ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions + 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.", @@ -35,29 +129,29 @@ class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody( ) 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.", + 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="Specifies the number of reviewers required to approve pull requests. Use a number between 1 and 6 or 0 to not require reviewers.", + 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`", + 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 + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances ] = Field( default=UNSET, description="Allow specific users, teams, or apps to bypass pull request requirements.", ) -class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions( +class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions( GitHubModel ): - """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDis - missalRestrictions + """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropD + ismissalRestrictions Specify which users, teams, and apps can dismiss pull request reviews. Pass an empty `dismissal_restrictions` object to disable. User and team @@ -76,11 +170,11 @@ class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyP ) -class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances( +class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances( GitHubModel ): - """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropByp - assPullRequestAllowances + """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropB + ypassPullRequestAllowances Allow specific users, teams, or apps to bypass pull request requirements. """ @@ -99,16 +193,43 @@ class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyP ) -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody) +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. + """ + + 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(ReposOwnerRepoBranchesBranchProtectionPutBody) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems +) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews +) model_rebuild( - ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions ) model_rebuild( - ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances ) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions) __all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody", - "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions", - "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances", + "ReposOwnerRepoBranchesBranchProtectionPutBody", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0911.py b/githubkit/versions/v2022_11_28/models/group_0911.py index 2c40acb3b..2e8746f19 100644 --- a/githubkit/versions/v2022_11_28/models/group_0911.py +++ b/githubkit/versions/v2022_11_28/models/group_0911.py @@ -18,46 +18,97 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody""" +class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody""" - strict: Missing[bool] = Field( - default=UNSET, description="Require branches to be up to date before merging." + 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.", ) - contexts: Missing[List[str]] = Field( + require_last_push_approval: Missing[bool] = Field( default=UNSET, - description="**Deprecated**: 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.\n", + description="Whether the most recent push must be approved by someone other than the person who pushed it. Default: `false`", ) - checks: Missing[ - List[ - ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems - ] + bypass_pull_request_allowances: Missing[ + ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances ] = Field( default=UNSET, - description="The list of status checks to require in order to merge into this branch.", + description="Allow specific users, teams, or apps to bypass pull request requirements.", ) -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems( +class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions( GitHubModel ): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksIte - ms + """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. """ - context: str = Field(description="The name of the required check") - app_id: Missing[int] = Field( + 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 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.", + 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(ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions +) model_rebuild( - ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems + ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances ) __all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody", - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems", + "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody", + "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions", + "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0912.py b/githubkit/versions/v2022_11_28/models/group_0912.py index 39635099b..2c40acb3b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0912.py +++ b/githubkit/versions/v2022_11_28/models/group_0912.py @@ -13,25 +13,51 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0( +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="**Deprecated**: 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.\n", + ) + 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 ): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 - - Examples: - {'contexts': ['contexts']} + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksIte + ms """ - contexts: List[str] = Field(description="The name of the status checks") + 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( - ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 + ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems ) __all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0", + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody", + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0913.py b/githubkit/versions/v2022_11_28/models/group_0913.py index f699ea725..39635099b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0913.py +++ b/githubkit/versions/v2022_11_28/models/group_0913.py @@ -16,10 +16,10 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0( +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0( GitHubModel ): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0 + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 Examples: {'contexts': ['contexts']} @@ -29,9 +29,9 @@ class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBody model_rebuild( - ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0 + ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 ) __all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0", + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0914.py b/githubkit/versions/v2022_11_28/models/group_0914.py index 0a6816433..f699ea725 100644 --- a/githubkit/versions/v2022_11_28/models/group_0914.py +++ b/githubkit/versions/v2022_11_28/models/group_0914.py @@ -16,11 +16,10 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0( +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0( GitHubModel ): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneo - f0 + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0 Examples: {'contexts': ['contexts']} @@ -30,9 +29,9 @@ class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBo model_rebuild( - ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0 + ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0 ) __all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0", + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0915.py b/githubkit/versions/v2022_11_28/models/group_0915.py index 661488f46..0a6816433 100644 --- a/githubkit/versions/v2022_11_28/models/group_0915.py +++ b/githubkit/versions/v2022_11_28/models/group_0915.py @@ -16,18 +16,23 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0 +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneo + f0 Examples: - {'apps': ['my-app']} + {'contexts': ['contexts']} """ - 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." - ) + contexts: List[str] = Field(description="The name of the status checks") -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0 +) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0",) +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0916.py b/githubkit/versions/v2022_11_28/models/group_0916.py index 04feeadfe..661488f46 100644 --- a/githubkit/versions/v2022_11_28/models/group_0916.py +++ b/githubkit/versions/v2022_11_28/models/group_0916.py @@ -16,8 +16,8 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0 +class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0 Examples: {'apps': ['my-app']} @@ -28,6 +28,6 @@ class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0(GitHu ) -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_0917.py b/githubkit/versions/v2022_11_28/models/group_0917.py index f44772a3b..04feeadfe 100644 --- a/githubkit/versions/v2022_11_28/models/group_0917.py +++ b/githubkit/versions/v2022_11_28/models/group_0917.py @@ -16,10 +16,8 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0 +class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0 Examples: {'apps': ['my-app']} @@ -30,6 +28,6 @@ class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0( ) -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_0918.py b/githubkit/versions/v2022_11_28/models/group_0918.py index 1f7be7c63..f44772a3b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0918.py +++ b/githubkit/versions/v2022_11_28/models/group_0918.py @@ -16,16 +16,20 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0 +class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0 Examples: - {'teams': ['justice-league']} + {'apps': ['my-app']} """ - teams: List[str] = Field(description="The slug values for teams") + 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(ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_0919.py b/githubkit/versions/v2022_11_28/models/group_0919.py index cad6d2023..1f7be7c63 100644 --- a/githubkit/versions/v2022_11_28/models/group_0919.py +++ b/githubkit/versions/v2022_11_28/models/group_0919.py @@ -16,18 +16,16 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0 +class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0 Examples: - {'teams': ['my-team']} + {'teams': ['justice-league']} """ teams: List[str] = Field(description="The slug values for teams") -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_0920.py b/githubkit/versions/v2022_11_28/models/group_0920.py index a92d25c56..cad6d2023 100644 --- a/githubkit/versions/v2022_11_28/models/group_0920.py +++ b/githubkit/versions/v2022_11_28/models/group_0920.py @@ -16,10 +16,10 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0( +class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0( GitHubModel ): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0 + """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0 Examples: {'teams': ['my-team']} @@ -28,6 +28,6 @@ class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0( teams: List[str] = Field(description="The slug values for teams") -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_0921.py b/githubkit/versions/v2022_11_28/models/group_0921.py index 1c399dbec..a92d25c56 100644 --- a/githubkit/versions/v2022_11_28/models/group_0921.py +++ b/githubkit/versions/v2022_11_28/models/group_0921.py @@ -16,16 +16,18 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0 +class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0 Examples: - {'users': ['mona']} + {'teams': ['my-team']} """ - users: List[str] = Field(description="The username for users") + teams: List[str] = Field(description="The slug values for teams") -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_0922.py b/githubkit/versions/v2022_11_28/models/group_0922.py index 669ca7afa..1c399dbec 100644 --- a/githubkit/versions/v2022_11_28/models/group_0922.py +++ b/githubkit/versions/v2022_11_28/models/group_0922.py @@ -16,10 +16,8 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0 +class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0 Examples: {'users': ['mona']} @@ -28,6 +26,6 @@ class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0( users: List[str] = Field(description="The username for users") -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_0923.py b/githubkit/versions/v2022_11_28/models/group_0923.py index 4fc86a736..669ca7afa 100644 --- a/githubkit/versions/v2022_11_28/models/group_0923.py +++ b/githubkit/versions/v2022_11_28/models/group_0923.py @@ -16,10 +16,10 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0( +class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0( GitHubModel ): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0 + """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0 Examples: {'users': ['mona']} @@ -28,6 +28,6 @@ class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0( users: List[str] = Field(description="The username for users") -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_0924.py b/githubkit/versions/v2022_11_28/models/group_0924.py index 5fcd45c02..4fc86a736 100644 --- a/githubkit/versions/v2022_11_28/models/group_0924.py +++ b/githubkit/versions/v2022_11_28/models/group_0924.py @@ -9,17 +9,25 @@ from __future__ import annotations +from typing import List + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchRenamePostBody(GitHubModel): - """ReposOwnerRepoBranchesBranchRenamePostBody""" +class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0 + + Examples: + {'users': ['mona']} + """ - new_name: str = Field(description="The new name of the branch.") + users: List[str] = Field(description="The username for users") -model_rebuild(ReposOwnerRepoBranchesBranchRenamePostBody) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0) -__all__ = ("ReposOwnerRepoBranchesBranchRenamePostBody",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_0925.py b/githubkit/versions/v2022_11_28/models/group_0925.py index 95365e73c..5fcd45c02 100644 --- a/githubkit/versions/v2022_11_28/models/group_0925.py +++ b/githubkit/versions/v2022_11_28/models/group_0925.py @@ -9,117 +9,17 @@ from __future__ import annotations -from typing import List, Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCheckRunsPostBodyPropOutput(GitHubModel): - """ReposOwnerRepoCheckRunsPostBodyPropOutput - - 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, - 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""" +class ReposOwnerRepoBranchesBranchRenamePostBody(GitHubModel): + """ReposOwnerRepoBranchesBranchRenamePostBody""" - 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.", - ) + new_name: str = Field(description="The new name of the branch.") -model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropOutput) -model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems) -model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems) -model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropActionsItems) +model_rebuild(ReposOwnerRepoBranchesBranchRenamePostBody) -__all__ = ( - "ReposOwnerRepoCheckRunsPostBodyPropOutput", - "ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems", - "ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems", - "ReposOwnerRepoCheckRunsPostBodyPropActionsItems", -) +__all__ = ("ReposOwnerRepoBranchesBranchRenamePostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0926.py b/githubkit/versions/v2022_11_28/models/group_0926.py index 90ae33c42..95365e73c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0926.py +++ b/githubkit/versions/v2022_11_28/models/group_0926.py @@ -9,67 +9,117 @@ from __future__ import annotations -from datetime import datetime from typing import List, Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -from .group_0925 import ( - ReposOwnerRepoCheckRunsPostBodyPropOutput, - ReposOwnerRepoCheckRunsPostBodyPropActionsItems, -) +class ReposOwnerRepoCheckRunsPostBodyPropOutput(GitHubModel): + """ReposOwnerRepoCheckRunsPostBodyPropOutput -class ReposOwnerRepoCheckRunsPostBodyOneof0(ExtraGitHubModel): - """ReposOwnerRepoCheckRunsPostBodyOneof0""" + 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. + """ - name: str = Field( - description='The name of the check. For example, "code-coverage".' + 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.", ) - head_sha: str = Field(description="The SHA of the commit.") - details_url: Missing[str] = Field( + annotations: Missing[ + List[ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems] + ] = Field( + max_length=50, 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.", + 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`." ) - external_id: Missing[str] = Field( - default=UNSET, description="A reference for the run on the integrator's system." + start_line: int = Field( + description="The start line of the annotation. Line numbers start at 1." ) - status: Literal["completed"] = Field() - started_at: Missing[datetime] = Field( + end_line: int = Field(description="The end line of the annotation.") + start_column: Missing[int] = 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." + 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.", ) - completed_at: Missing[datetime] = Field( + end_column: Missing[int] = 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`.", + 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." ) - output: Missing[ReposOwnerRepoCheckRunsPostBodyPropOutput] = Field( + title: Missing[str] = 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.", + description="The title that represents the annotation. The maximum size is 255 characters.", ) - actions: Missing[List[ReposOwnerRepoCheckRunsPostBodyPropActionsItems]] = Field( - max_length=3, + raw_details: Missing[str] = Field( 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)."', + description="Details about this annotation. The maximum size is 64 KB.", ) -model_rebuild(ReposOwnerRepoCheckRunsPostBodyOneof0) +class ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems(GitHubModel): + """ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems""" -__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof0",) + 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(ReposOwnerRepoCheckRunsPostBodyPropOutput) +model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems) +model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems) +model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropActionsItems) + +__all__ = ( + "ReposOwnerRepoCheckRunsPostBodyPropOutput", + "ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems", + "ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems", + "ReposOwnerRepoCheckRunsPostBodyPropActionsItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0927.py b/githubkit/versions/v2022_11_28/models/group_0927.py index 4b213b46a..df2a00fd0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0927.py +++ b/githubkit/versions/v2022_11_28/models/group_0927.py @@ -18,14 +18,14 @@ from githubkit.typing import Missing from githubkit.compat import ExtraGitHubModel, model_rebuild -from .group_0925 import ( +from .group_0926 import ( ReposOwnerRepoCheckRunsPostBodyPropOutput, ReposOwnerRepoCheckRunsPostBodyPropActionsItems, ) -class ReposOwnerRepoCheckRunsPostBodyOneof1(ExtraGitHubModel): - """ReposOwnerRepoCheckRunsPostBodyOneof1""" +class ReposOwnerRepoCheckRunsPostBodyOneof0(ExtraGitHubModel): + """ReposOwnerRepoCheckRunsPostBodyOneof0""" name: str = Field( description='The name of the check. For example, "code-coverage".' @@ -38,25 +38,22 @@ class ReposOwnerRepoCheckRunsPostBodyOneof1(ExtraGitHubModel): external_id: Missing[str] = Field( default=UNSET, description="A reference for the run on the integrator's system." ) - status: Missing[Literal["queued", "in_progress"]] = Field(default=UNSET) + 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: Missing[ - Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "success", - "skipped", - "stale", - "timed_out", - ] + conclusion: 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.", + 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, @@ -73,6 +70,6 @@ class ReposOwnerRepoCheckRunsPostBodyOneof1(ExtraGitHubModel): ) -model_rebuild(ReposOwnerRepoCheckRunsPostBodyOneof1) +model_rebuild(ReposOwnerRepoCheckRunsPostBodyOneof0) -__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof1",) +__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_0928.py b/githubkit/versions/v2022_11_28/models/group_0928.py index bb4c2fc60..2b4421788 100644 --- a/githubkit/versions/v2022_11_28/models/group_0928.py +++ b/githubkit/versions/v2022_11_28/models/group_0928.py @@ -9,114 +9,70 @@ from __future__ import annotations +from datetime import datetime from typing import List, Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, model_rebuild +from .group_0926 import ( + ReposOwnerRepoCheckRunsPostBodyPropOutput, + ReposOwnerRepoCheckRunsPostBodyPropActionsItems, +) -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. - """ +class ReposOwnerRepoCheckRunsPostBodyOneof1(ExtraGitHubModel): + """ReposOwnerRepoCheckRunsPostBodyOneof1""" - 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, - 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)\".", + name: str = Field( + description='The name of the check. For example, "code-coverage".' ) - images: Missing[ - List[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems] - ] = Field( + head_sha: str = Field(description="The SHA of the commit.") + details_url: Missing[str] = Field( default=UNSET, - 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`." + 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.", ) - start_line: int = Field( - description="The start line of the annotation. Line numbers start at 1." + external_id: Missing[str] = Field( + default=UNSET, description="A reference for the run on the integrator's system." ) - end_line: int = Field(description="The end line of the annotation.") - start_column: Missing[int] = Field( + status: Missing[Literal["queued", "in_progress"]] = Field(default=UNSET) + started_at: Missing[datetime] = 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.", + 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`.", ) - end_column: Missing[int] = Field( + conclusion: Missing[ + Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "success", + "skipped", + "stale", + "timed_out", + ] + ] = 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." + 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.", ) - title: Missing[str] = Field( + completed_at: Missing[datetime] = Field( default=UNSET, - description="The title that represents the annotation. The maximum size is 255 characters.", + 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`.", ) - raw_details: Missing[str] = Field( + output: Missing[ReposOwnerRepoCheckRunsPostBodyPropOutput] = Field( default=UNSET, - description="Details about this annotation. The maximum size is 64 KB.", + 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.", ) - - -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.", + actions: Missing[List[ReposOwnerRepoCheckRunsPostBodyPropActionsItems]] = Field( + max_length=3, + 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)."', ) -model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput) -model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems) -model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems) -model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems) +model_rebuild(ReposOwnerRepoCheckRunsPostBodyOneof1) -__all__ = ( - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput", - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems", - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems", - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems", -) +__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_0929.py b/githubkit/versions/v2022_11_28/models/group_0929.py index 03a9dcce6..bb4c2fc60 100644 --- a/githubkit/versions/v2022_11_28/models/group_0929.py +++ b/githubkit/versions/v2022_11_28/models/group_0929.py @@ -9,69 +9,114 @@ from __future__ import annotations -from datetime import datetime from typing import List, Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -from .group_0928 import ( - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput, - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems, -) +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput(GitHubModel): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0(ExtraGitHubModel): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0""" + 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. + """ - name: Missing[str] = Field( + 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, default=UNSET, - description='The name of the check. For example, "code-coverage".', + 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)\".", ) - details_url: Missing[str] = Field( + images: Missing[ + List[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems] + ] = Field( default=UNSET, - description="The URL of the integrator's site that has the full details of the check.", + 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`." ) - external_id: Missing[str] = Field( - default=UNSET, description="A reference for the run on the integrator's system." + start_line: int = Field( + description="The start line of the annotation. Line numbers start at 1." ) - started_at: Missing[datetime] = Field( + end_line: int = Field(description="The end line of the annotation.") + start_column: Missing[int] = 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." + 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.", ) - completed_at: Missing[datetime] = Field( + end_column: Missing[int] = 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`.", + 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." ) - output: Missing[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput] = Field( + title: Missing[str] = 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.", + description="The title that represents the annotation. The maximum size is 255 characters.", ) - actions: Missing[ - List[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems] - ] = Field( - max_length=3, + raw_details: Missing[str] = Field( 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)."', + 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(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0) +model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput) +model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems) +model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems) +model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems) -__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0",) +__all__ = ( + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput", + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems", + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems", + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0930.py b/githubkit/versions/v2022_11_28/models/group_0930.py index b2f459d33..84fd97df6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0930.py +++ b/githubkit/versions/v2022_11_28/models/group_0930.py @@ -18,14 +18,14 @@ from githubkit.typing import Missing from githubkit.compat import ExtraGitHubModel, model_rebuild -from .group_0928 import ( +from .group_0929 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput, ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems, ) -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1(ExtraGitHubModel): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1""" +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0(ExtraGitHubModel): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0""" name: Missing[str] = Field( default=UNSET, @@ -42,21 +42,18 @@ class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1(ExtraGitHubModel): 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", - ] + status: Missing[Literal["completed"]] = Field(default=UNSET) + conclusion: 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.", + 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, @@ -75,6 +72,6 @@ class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1(ExtraGitHubModel): ) -model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1) +model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0) -__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1",) +__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_0931.py b/githubkit/versions/v2022_11_28/models/group_0931.py index 2a8e7cd54..09d6eea6d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0931.py +++ b/githubkit/versions/v2022_11_28/models/group_0931.py @@ -9,17 +9,72 @@ from __future__ import annotations +from datetime import datetime +from typing import List, Literal + from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.utils import UNSET +from githubkit.typing import Missing +from githubkit.compat import ExtraGitHubModel, model_rebuild + +from .group_0929 import ( + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput, + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems, +) -class ReposOwnerRepoCheckSuitesPostBody(GitHubModel): - """ReposOwnerRepoCheckSuitesPostBody""" +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1(ExtraGitHubModel): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1""" - head_sha: str = Field(description="The sha of the head commit.") + 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, + 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(ReposOwnerRepoCheckSuitesPostBody) +model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1) -__all__ = ("ReposOwnerRepoCheckSuitesPostBody",) +__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_0932.py b/githubkit/versions/v2022_11_28/models/group_0932.py index e31b287e9..2a8e7cd54 100644 --- a/githubkit/versions/v2022_11_28/models/group_0932.py +++ b/githubkit/versions/v2022_11_28/models/group_0932.py @@ -9,42 +9,17 @@ from __future__ import annotations -from typing import List - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCheckSuitesPreferencesPatchBody(GitHubModel): - """ReposOwnerRepoCheckSuitesPreferencesPatchBody""" - - 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 ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems( - GitHubModel -): - """ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems""" +class ReposOwnerRepoCheckSuitesPostBody(GitHubModel): + """ReposOwnerRepoCheckSuitesPostBody""" - 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.", - ) + head_sha: str = Field(description="The sha of the head commit.") -model_rebuild(ReposOwnerRepoCheckSuitesPreferencesPatchBody) -model_rebuild(ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems) +model_rebuild(ReposOwnerRepoCheckSuitesPostBody) -__all__ = ( - "ReposOwnerRepoCheckSuitesPreferencesPatchBody", - "ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems", -) +__all__ = ("ReposOwnerRepoCheckSuitesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0933.py b/githubkit/versions/v2022_11_28/models/group_0933.py index 69aeb49a5..e31b287e9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0933.py +++ b/githubkit/versions/v2022_11_28/models/group_0933.py @@ -13,18 +13,38 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0197 import CheckRun +class ReposOwnerRepoCheckSuitesPreferencesPatchBody(GitHubModel): + """ReposOwnerRepoCheckSuitesPreferencesPatchBody""" -class ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200(GitHubModel): - """ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200""" + 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() - check_runs: List[CheckRun] = Field() +class ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems( + GitHubModel +): + """ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems""" -model_rebuild(ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200) + 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__ = ("ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200",) + +model_rebuild(ReposOwnerRepoCheckSuitesPreferencesPatchBody) +model_rebuild(ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems) + +__all__ = ( + "ReposOwnerRepoCheckSuitesPreferencesPatchBody", + "ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0934.py b/githubkit/versions/v2022_11_28/models/group_0934.py index 14e8507cc..69aeb49a5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0934.py +++ b/githubkit/versions/v2022_11_28/models/group_0934.py @@ -9,36 +9,22 @@ from __future__ import annotations -from typing import Union, Literal -from typing_extensions import Annotated +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0197 import CheckRun -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.", - ) - ) +class ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200(GitHubModel): + """ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200""" + total_count: int = Field() + check_runs: List[CheckRun] = Field() -model_rebuild(ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody) -__all__ = ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody",) +model_rebuild(ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200) + +__all__ = ("ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0935.py b/githubkit/versions/v2022_11_28/models/group_0935.py index e03cf7d53..14e8507cc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0935.py +++ b/githubkit/versions/v2022_11_28/models/group_0935.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import List, Literal +from typing import Union, Literal +from typing_extensions import Annotated from pydantic import Field @@ -18,30 +19,26 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0(GitHubModel): - """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0""" +class ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody(GitHubModel): + """ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody""" - language: Literal[ - "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "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" + 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`." ) - 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, + dismissed_reason: Missing[ + Union[None, Literal["false positive", "won't fix", "used in tests"]] + ] = 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="**Required when the state is dismissed.** The reason for dismissing or closing the alert.", ) - repository_owners: Missing[List[str]] = Field( - max_length=1, - 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.", + 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.", + ) ) -model_rebuild(ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0) +model_rebuild(ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody) -__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0",) +__all__ = ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0936.py b/githubkit/versions/v2022_11_28/models/group_0936.py index 7716f42e6..e03cf7d53 100644 --- a/githubkit/versions/v2022_11_28/models/group_0936.py +++ b/githubkit/versions/v2022_11_28/models/group_0936.py @@ -18,8 +18,8 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1(GitHubModel): - """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1""" +class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0(GitHubModel): + """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0""" language: Literal[ "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "swift" @@ -27,12 +27,12 @@ class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1(GitHubModel) 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.", + 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: List[str] = Field( + repository_lists: Missing[List[str]] = Field( max_length=1, + 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( @@ -42,6 +42,6 @@ class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1(GitHubModel) ) -model_rebuild(ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1) +model_rebuild(ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0) -__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1",) +__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_0937.py b/githubkit/versions/v2022_11_28/models/group_0937.py index 42a935203..7716f42e6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0937.py +++ b/githubkit/versions/v2022_11_28/models/group_0937.py @@ -18,8 +18,8 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2(GitHubModel): - """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2""" +class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1(GitHubModel): + """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1""" language: Literal[ "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "swift" @@ -31,17 +31,17 @@ class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2(GitHubModel) 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( + repository_lists: List[str] = Field( max_length=1, - 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( + repository_owners: Missing[List[str]] = Field( max_length=1, + 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(ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2) +model_rebuild(ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1) -__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2",) +__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_0938.py b/githubkit/versions/v2022_11_28/models/group_0938.py index 97149be5e..42a935203 100644 --- a/githubkit/versions/v2022_11_28/models/group_0938.py +++ b/githubkit/versions/v2022_11_28/models/group_0938.py @@ -9,7 +9,7 @@ from __future__ import annotations -from datetime import datetime +from typing import List, Literal from pydantic import Field @@ -18,41 +18,30 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCodeScanningSarifsPostBody(GitHubModel): - """ReposOwnerRepoCodeScanningSarifsPostBody""" +class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2(GitHubModel): + """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2""" - 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.", + language: Literal[ + "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "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" ) - 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( + repositories: Missing[List[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.", + 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.", ) - started_at: Missing[datetime] = Field( + repository_lists: Missing[List[str]] = Field( + max_length=1, 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="List of repository lists to run the query against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", ) - 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.", + repository_owners: List[str] = Field( + max_length=1, + 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(ReposOwnerRepoCodeScanningSarifsPostBody) +model_rebuild(ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2) -__all__ = ("ReposOwnerRepoCodeScanningSarifsPostBody",) +__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2",) diff --git a/githubkit/versions/v2022_11_28/models/group_0939.py b/githubkit/versions/v2022_11_28/models/group_0939.py index 4f6d70305..97149be5e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0939.py +++ b/githubkit/versions/v2022_11_28/models/group_0939.py @@ -9,22 +9,50 @@ from __future__ import annotations -from typing import List +from datetime import datetime from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0078 import Codespace - -class ReposOwnerRepoCodespacesGetResponse200(GitHubModel): - """ReposOwnerRepoCodespacesGetResponse200""" - - total_count: int = Field() - codespaces: List[Codespace] = Field() - - -model_rebuild(ReposOwnerRepoCodespacesGetResponse200) - -__all__ = ("ReposOwnerRepoCodespacesGetResponse200",) +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_0940.py b/githubkit/versions/v2022_11_28/models/group_0940.py index fcbf9ab7e..4f6d70305 100644 --- a/githubkit/versions/v2022_11_28/models/group_0940.py +++ b/githubkit/versions/v2022_11_28/models/group_0940.py @@ -9,61 +9,22 @@ from __future__ import annotations -from typing import Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0078 import Codespace -class ReposOwnerRepoCodespacesPostBody(GitHubModel): - """ReposOwnerRepoCodespacesPostBody""" - 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 being deprecated.", - ) - 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).", - ) +class ReposOwnerRepoCodespacesGetResponse200(GitHubModel): + """ReposOwnerRepoCodespacesGetResponse200""" + total_count: int = Field() + codespaces: List[Codespace] = Field() -model_rebuild(ReposOwnerRepoCodespacesPostBody) -__all__ = ("ReposOwnerRepoCodespacesPostBody",) +model_rebuild(ReposOwnerRepoCodespacesGetResponse200) + +__all__ = ("ReposOwnerRepoCodespacesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0941.py b/githubkit/versions/v2022_11_28/models/group_0941.py index 94896c110..fcbf9ab7e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0941.py +++ b/githubkit/versions/v2022_11_28/models/group_0941.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List +from typing import Literal from pydantic import Field @@ -18,29 +18,52 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCodespacesDevcontainersGetResponse200(GitHubModel): - """ReposOwnerRepoCodespacesDevcontainersGetResponse200""" - - total_count: int = 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(ReposOwnerRepoCodespacesDevcontainersGetResponse200) -model_rebuild(ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems) - -__all__ = ( - "ReposOwnerRepoCodespacesDevcontainersGetResponse200", - "ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems", -) +class ReposOwnerRepoCodespacesPostBody(GitHubModel): + """ReposOwnerRepoCodespacesPostBody""" + + 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 being deprecated.", + ) + 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(ReposOwnerRepoCodespacesPostBody) + +__all__ = ("ReposOwnerRepoCodespacesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0942.py b/githubkit/versions/v2022_11_28/models/group_0942.py index 962138324..94896c110 100644 --- a/githubkit/versions/v2022_11_28/models/group_0942.py +++ b/githubkit/versions/v2022_11_28/models/group_0942.py @@ -13,18 +13,34 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0077 import CodespaceMachine - -class ReposOwnerRepoCodespacesMachinesGetResponse200(GitHubModel): - """ReposOwnerRepoCodespacesMachinesGetResponse200""" +class ReposOwnerRepoCodespacesDevcontainersGetResponse200(GitHubModel): + """ReposOwnerRepoCodespacesDevcontainersGetResponse200""" total_count: int = Field() - machines: List[CodespaceMachine] = 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(ReposOwnerRepoCodespacesMachinesGetResponse200) +model_rebuild(ReposOwnerRepoCodespacesDevcontainersGetResponse200) +model_rebuild(ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems) -__all__ = ("ReposOwnerRepoCodespacesMachinesGetResponse200",) +__all__ = ( + "ReposOwnerRepoCodespacesDevcontainersGetResponse200", + "ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0943.py b/githubkit/versions/v2022_11_28/models/group_0943.py index cbb5b1e1b..962138324 100644 --- a/githubkit/versions/v2022_11_28/models/group_0943.py +++ b/githubkit/versions/v2022_11_28/models/group_0943.py @@ -9,39 +9,22 @@ from __future__ import annotations -from typing import Union +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser +from .group_0077 import CodespaceMachine -class ReposOwnerRepoCodespacesNewGetResponse200(GitHubModel): - """ReposOwnerRepoCodespacesNewGetResponse200""" +class ReposOwnerRepoCodespacesMachinesGetResponse200(GitHubModel): + """ReposOwnerRepoCodespacesMachinesGetResponse200""" - billable_owner: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) - defaults: Missing[ReposOwnerRepoCodespacesNewGetResponse200PropDefaults] = Field( - default=UNSET - ) + total_count: int = Field() + machines: List[CodespaceMachine] = Field() -class ReposOwnerRepoCodespacesNewGetResponse200PropDefaults(GitHubModel): - """ReposOwnerRepoCodespacesNewGetResponse200PropDefaults""" +model_rebuild(ReposOwnerRepoCodespacesMachinesGetResponse200) - location: str = Field() - devcontainer_path: Union[str, None] = Field() - - -model_rebuild(ReposOwnerRepoCodespacesNewGetResponse200) -model_rebuild(ReposOwnerRepoCodespacesNewGetResponse200PropDefaults) - -__all__ = ( - "ReposOwnerRepoCodespacesNewGetResponse200", - "ReposOwnerRepoCodespacesNewGetResponse200PropDefaults", -) +__all__ = ("ReposOwnerRepoCodespacesMachinesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0944.py b/githubkit/versions/v2022_11_28/models/group_0944.py index e99811a75..cbb5b1e1b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0944.py +++ b/githubkit/versions/v2022_11_28/models/group_0944.py @@ -9,36 +9,39 @@ from __future__ import annotations -from typing import List -from datetime import datetime +from typing import Union from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0001 import SimpleUser -class ReposOwnerRepoCodespacesSecretsGetResponse200(GitHubModel): - """ReposOwnerRepoCodespacesSecretsGetResponse200""" - total_count: int = Field() - secrets: List[RepoCodespacesSecret] = Field() +class ReposOwnerRepoCodespacesNewGetResponse200(GitHubModel): + """ReposOwnerRepoCodespacesNewGetResponse200""" + billable_owner: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) + defaults: Missing[ReposOwnerRepoCodespacesNewGetResponse200PropDefaults] = Field( + default=UNSET + ) -class RepoCodespacesSecret(GitHubModel): - """Codespaces Secret - Set repository secrets for GitHub Codespaces. - """ +class ReposOwnerRepoCodespacesNewGetResponse200PropDefaults(GitHubModel): + """ReposOwnerRepoCodespacesNewGetResponse200PropDefaults""" - name: str = Field(description="The name of the secret.") - created_at: datetime = Field() - updated_at: datetime = Field() + location: str = Field() + devcontainer_path: Union[str, None] = Field() -model_rebuild(ReposOwnerRepoCodespacesSecretsGetResponse200) -model_rebuild(RepoCodespacesSecret) +model_rebuild(ReposOwnerRepoCodespacesNewGetResponse200) +model_rebuild(ReposOwnerRepoCodespacesNewGetResponse200PropDefaults) __all__ = ( - "ReposOwnerRepoCodespacesSecretsGetResponse200", - "RepoCodespacesSecret", + "ReposOwnerRepoCodespacesNewGetResponse200", + "ReposOwnerRepoCodespacesNewGetResponse200PropDefaults", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0945.py b/githubkit/versions/v2022_11_28/models/group_0945.py index ceb4366fc..e99811a75 100644 --- a/githubkit/versions/v2022_11_28/models/group_0945.py +++ b/githubkit/versions/v2022_11_28/models/group_0945.py @@ -9,26 +9,36 @@ from __future__ import annotations +from typing import List +from datetime import datetime + from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCodespacesSecretsSecretNamePutBody(GitHubModel): - """ReposOwnerRepoCodespacesSecretsSecretNamePutBody""" +class ReposOwnerRepoCodespacesSecretsGetResponse200(GitHubModel): + """ReposOwnerRepoCodespacesSecretsGetResponse200""" + + total_count: int = Field() + secrets: List[RepoCodespacesSecret] = Field() + + +class RepoCodespacesSecret(GitHubModel): + """Codespaces Secret + + Set repository secrets for GitHub Codespaces. + """ - 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." - ) + name: str = Field(description="The name of the secret.") + created_at: datetime = Field() + updated_at: datetime = Field() -model_rebuild(ReposOwnerRepoCodespacesSecretsSecretNamePutBody) +model_rebuild(ReposOwnerRepoCodespacesSecretsGetResponse200) +model_rebuild(RepoCodespacesSecret) -__all__ = ("ReposOwnerRepoCodespacesSecretsSecretNamePutBody",) +__all__ = ( + "ReposOwnerRepoCodespacesSecretsGetResponse200", + "RepoCodespacesSecret", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0946.py b/githubkit/versions/v2022_11_28/models/group_0946.py index e02fc904b..ceb4366fc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0946.py +++ b/githubkit/versions/v2022_11_28/models/group_0946.py @@ -16,15 +16,19 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCollaboratorsUsernamePutBody(GitHubModel): - """ReposOwnerRepoCollaboratorsUsernamePutBody""" +class ReposOwnerRepoCodespacesSecretsSecretNamePutBody(GitHubModel): + """ReposOwnerRepoCodespacesSecretsSecretNamePutBody""" - permission: Missing[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 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="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(ReposOwnerRepoCollaboratorsUsernamePutBody) +model_rebuild(ReposOwnerRepoCodespacesSecretsSecretNamePutBody) -__all__ = ("ReposOwnerRepoCollaboratorsUsernamePutBody",) +__all__ = ("ReposOwnerRepoCodespacesSecretsSecretNamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0947.py b/githubkit/versions/v2022_11_28/models/group_0947.py index 75effd211..e02fc904b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0947.py +++ b/githubkit/versions/v2022_11_28/models/group_0947.py @@ -11,15 +11,20 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCommentsCommentIdPatchBody(GitHubModel): - """ReposOwnerRepoCommentsCommentIdPatchBody""" +class ReposOwnerRepoCollaboratorsUsernamePutBody(GitHubModel): + """ReposOwnerRepoCollaboratorsUsernamePutBody""" - body: str = Field(description="The contents of the comment") + 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(ReposOwnerRepoCommentsCommentIdPatchBody) +model_rebuild(ReposOwnerRepoCollaboratorsUsernamePutBody) -__all__ = ("ReposOwnerRepoCommentsCommentIdPatchBody",) +__all__ = ("ReposOwnerRepoCollaboratorsUsernamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0948.py b/githubkit/versions/v2022_11_28/models/group_0948.py index 496e2b84a..75effd211 100644 --- a/githubkit/versions/v2022_11_28/models/group_0948.py +++ b/githubkit/versions/v2022_11_28/models/group_0948.py @@ -9,23 +9,17 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCommentsCommentIdReactionsPostBody(GitHubModel): - """ReposOwnerRepoCommentsCommentIdReactionsPostBody""" +class ReposOwnerRepoCommentsCommentIdPatchBody(GitHubModel): + """ReposOwnerRepoCommentsCommentIdPatchBody""" - 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." - ) + body: str = Field(description="The contents of the comment") -model_rebuild(ReposOwnerRepoCommentsCommentIdReactionsPostBody) +model_rebuild(ReposOwnerRepoCommentsCommentIdPatchBody) -__all__ = ("ReposOwnerRepoCommentsCommentIdReactionsPostBody",) +__all__ = ("ReposOwnerRepoCommentsCommentIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0949.py b/githubkit/versions/v2022_11_28/models/group_0949.py index 7a8745468..496e2b84a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0949.py +++ b/githubkit/versions/v2022_11_28/models/group_0949.py @@ -9,29 +9,23 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCommitsCommitShaCommentsPostBody(GitHubModel): - """ReposOwnerRepoCommitsCommitShaCommentsPostBody""" +class ReposOwnerRepoCommentsCommentIdReactionsPostBody(GitHubModel): + """ReposOwnerRepoCommentsCommentIdReactionsPostBody""" - 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="**Deprecated**. Use **position** parameter instead. Line number in the file to comment on.", + 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." ) -model_rebuild(ReposOwnerRepoCommitsCommitShaCommentsPostBody) +model_rebuild(ReposOwnerRepoCommentsCommentIdReactionsPostBody) -__all__ = ("ReposOwnerRepoCommitsCommitShaCommentsPostBody",) +__all__ = ("ReposOwnerRepoCommentsCommentIdReactionsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0950.py b/githubkit/versions/v2022_11_28/models/group_0950.py index 4aa5ba73b..7a8745468 100644 --- a/githubkit/versions/v2022_11_28/models/group_0950.py +++ b/githubkit/versions/v2022_11_28/models/group_0950.py @@ -9,22 +9,29 @@ from __future__ import annotations -from typing import List - from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0197 import CheckRun - -class ReposOwnerRepoCommitsRefCheckRunsGetResponse200(GitHubModel): - """ReposOwnerRepoCommitsRefCheckRunsGetResponse200""" +class ReposOwnerRepoCommitsCommitShaCommentsPostBody(GitHubModel): + """ReposOwnerRepoCommitsCommitShaCommentsPostBody""" - total_count: int = Field() - check_runs: List[CheckRun] = Field() + 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="**Deprecated**. Use **position** parameter instead. Line number in the file to comment on.", + ) -model_rebuild(ReposOwnerRepoCommitsRefCheckRunsGetResponse200) +model_rebuild(ReposOwnerRepoCommitsCommitShaCommentsPostBody) -__all__ = ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200",) +__all__ = ("ReposOwnerRepoCommitsCommitShaCommentsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0951.py b/githubkit/versions/v2022_11_28/models/group_0951.py index ed215f98b..4aa5ba73b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0951.py +++ b/githubkit/versions/v2022_11_28/models/group_0951.py @@ -9,73 +9,22 @@ from __future__ import annotations +from typing import List + from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0197 import CheckRun -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 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`. - """ +class ReposOwnerRepoCommitsRefCheckRunsGetResponse200(GitHubModel): + """ReposOwnerRepoCommitsRefCheckRunsGetResponse200""" - 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) + total_count: int = Field() + check_runs: List[CheckRun] = Field() -model_rebuild(ReposOwnerRepoContentsPathPutBody) -model_rebuild(ReposOwnerRepoContentsPathPutBodyPropCommitter) -model_rebuild(ReposOwnerRepoContentsPathPutBodyPropAuthor) +model_rebuild(ReposOwnerRepoCommitsRefCheckRunsGetResponse200) -__all__ = ( - "ReposOwnerRepoContentsPathPutBody", - "ReposOwnerRepoContentsPathPutBodyPropCommitter", - "ReposOwnerRepoContentsPathPutBodyPropAuthor", -) +__all__ = ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0952.py b/githubkit/versions/v2022_11_28/models/group_0952.py index 887992d4b..ed215f98b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0952.py +++ b/githubkit/versions/v2022_11_28/models/group_0952.py @@ -16,59 +16,66 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoContentsPathDeleteBody(GitHubModel): - """ReposOwnerRepoContentsPathDeleteBody""" +class ReposOwnerRepoContentsPathPutBody(GitHubModel): + """ReposOwnerRepoContentsPathPutBody""" message: str = Field(description="The commit message.") - sha: str = Field(description="The blob SHA of the file being deleted.") + 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", + description="The branch name. Default: the repository’s default branch.", ) - committer: Missing[ReposOwnerRepoContentsPathDeleteBodyPropCommitter] = Field( - default=UNSET, description="object containing information about the committer." + committer: Missing[ReposOwnerRepoContentsPathPutBodyPropCommitter] = Field( + default=UNSET, + description="The person that committed the file. Default: the authenticated user.", ) - author: Missing[ReposOwnerRepoContentsPathDeleteBodyPropAuthor] = Field( - default=UNSET, description="object containing information about the author." + author: Missing[ReposOwnerRepoContentsPathPutBodyPropAuthor] = Field( + default=UNSET, + description="The author of the file. Default: The `committer` or the authenticated user if you omit `committer`.", ) -class ReposOwnerRepoContentsPathDeleteBodyPropCommitter(GitHubModel): - """ReposOwnerRepoContentsPathDeleteBodyPropCommitter +class ReposOwnerRepoContentsPathPutBodyPropCommitter(GitHubModel): + """ReposOwnerRepoContentsPathPutBodyPropCommitter - object containing information about the committer. + The person that committed the file. Default: the authenticated user. """ - name: Missing[str] = Field( - default=UNSET, description="The name of the author (or committer) of the commit" + 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: Missing[str] = Field( - default=UNSET, - description="The email of the author (or committer) of the commit", + 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 ReposOwnerRepoContentsPathDeleteBodyPropAuthor(GitHubModel): - """ReposOwnerRepoContentsPathDeleteBodyPropAuthor +class ReposOwnerRepoContentsPathPutBodyPropAuthor(GitHubModel): + """ReposOwnerRepoContentsPathPutBodyPropAuthor - object containing information about the author. + The author of the file. Default: The `committer` or the authenticated user if + you omit `committer`. """ - name: Missing[str] = Field( - default=UNSET, description="The name of the author (or committer) of the commit" + 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: Missing[str] = Field( - default=UNSET, - description="The email of the author (or committer) of the commit", + 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(ReposOwnerRepoContentsPathDeleteBody) -model_rebuild(ReposOwnerRepoContentsPathDeleteBodyPropCommitter) -model_rebuild(ReposOwnerRepoContentsPathDeleteBodyPropAuthor) +model_rebuild(ReposOwnerRepoContentsPathPutBody) +model_rebuild(ReposOwnerRepoContentsPathPutBodyPropCommitter) +model_rebuild(ReposOwnerRepoContentsPathPutBodyPropAuthor) __all__ = ( - "ReposOwnerRepoContentsPathDeleteBody", - "ReposOwnerRepoContentsPathDeleteBodyPropCommitter", - "ReposOwnerRepoContentsPathDeleteBodyPropAuthor", + "ReposOwnerRepoContentsPathPutBody", + "ReposOwnerRepoContentsPathPutBodyPropCommitter", + "ReposOwnerRepoContentsPathPutBodyPropAuthor", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0953.py b/githubkit/versions/v2022_11_28/models/group_0953.py index d872bec34..887992d4b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0953.py +++ b/githubkit/versions/v2022_11_28/models/group_0953.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.utils import UNSET @@ -18,27 +16,59 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoDependabotAlertsAlertNumberPatchBody(GitHubModel): - """ReposOwnerRepoDependabotAlertsAlertNumberPatchBody""" +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. + """ - state: Literal["dismissed", "open"] = Field( - description="The state of the Dependabot alert.\nA `dismissed_reason` must be provided when setting the state to `dismissed`." + name: Missing[str] = Field( + default=UNSET, description="The name of the author (or committer) of the commit" ) - dismissed_reason: Missing[ - Literal[ - "fix_started", "inaccurate", "no_bandwidth", "not_used", "tolerable_risk" - ] - ] = Field( + email: Missing[str] = Field( default=UNSET, - description="**Required when `state` is `dismissed`.** A reason for dismissing the alert.", + 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" ) - dismissed_comment: Missing[str] = Field( - max_length=280, + email: Missing[str] = Field( default=UNSET, - description="An optional comment associated with dismissing the alert.", + description="The email of the author (or committer) of the commit", ) -model_rebuild(ReposOwnerRepoDependabotAlertsAlertNumberPatchBody) +model_rebuild(ReposOwnerRepoContentsPathDeleteBody) +model_rebuild(ReposOwnerRepoContentsPathDeleteBodyPropCommitter) +model_rebuild(ReposOwnerRepoContentsPathDeleteBodyPropAuthor) -__all__ = ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBody",) +__all__ = ( + "ReposOwnerRepoContentsPathDeleteBody", + "ReposOwnerRepoContentsPathDeleteBodyPropCommitter", + "ReposOwnerRepoContentsPathDeleteBodyPropAuthor", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0954.py b/githubkit/versions/v2022_11_28/models/group_0954.py index 6b696bdc7..d872bec34 100644 --- a/githubkit/versions/v2022_11_28/models/group_0954.py +++ b/githubkit/versions/v2022_11_28/models/group_0954.py @@ -9,36 +9,36 @@ from __future__ import annotations -from typing import List -from datetime import datetime +from typing import Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoDependabotSecretsGetResponse200(GitHubModel): - """ReposOwnerRepoDependabotSecretsGetResponse200""" +class ReposOwnerRepoDependabotAlertsAlertNumberPatchBody(GitHubModel): + """ReposOwnerRepoDependabotAlertsAlertNumberPatchBody""" - total_count: int = Field() - secrets: List[DependabotSecret] = Field() + 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.", + ) -class DependabotSecret(GitHubModel): - """Dependabot Secret +model_rebuild(ReposOwnerRepoDependabotAlertsAlertNumberPatchBody) - 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__ = ( - "ReposOwnerRepoDependabotSecretsGetResponse200", - "DependabotSecret", -) +__all__ = ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0955.py b/githubkit/versions/v2022_11_28/models/group_0955.py index 438319910..6b696bdc7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0955.py +++ b/githubkit/versions/v2022_11_28/models/group_0955.py @@ -9,26 +9,36 @@ from __future__ import annotations +from typing import List +from datetime import datetime + from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoDependabotSecretsSecretNamePutBody(GitHubModel): - """ReposOwnerRepoDependabotSecretsSecretNamePutBody""" +class ReposOwnerRepoDependabotSecretsGetResponse200(GitHubModel): + """ReposOwnerRepoDependabotSecretsGetResponse200""" + + total_count: int = Field() + secrets: List[DependabotSecret] = Field() + + +class DependabotSecret(GitHubModel): + """Dependabot Secret + + Set secrets for Dependabot. + """ - 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/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." - ) + name: str = Field(description="The name of the secret.") + created_at: datetime = Field() + updated_at: datetime = Field() -model_rebuild(ReposOwnerRepoDependabotSecretsSecretNamePutBody) +model_rebuild(ReposOwnerRepoDependabotSecretsGetResponse200) +model_rebuild(DependabotSecret) -__all__ = ("ReposOwnerRepoDependabotSecretsSecretNamePutBody",) +__all__ = ( + "ReposOwnerRepoDependabotSecretsGetResponse200", + "DependabotSecret", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0956.py b/githubkit/versions/v2022_11_28/models/group_0956.py index d8abaeb32..438319910 100644 --- a/githubkit/versions/v2022_11_28/models/group_0956.py +++ b/githubkit/versions/v2022_11_28/models/group_0956.py @@ -11,22 +11,24 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoDependencyGraphSnapshotsPostResponse201(GitHubModel): - """ReposOwnerRepoDependencyGraphSnapshotsPostResponse201""" +class ReposOwnerRepoDependabotSecretsSecretNamePutBody(GitHubModel): + """ReposOwnerRepoDependabotSecretsSecretNamePutBody""" - 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.' + 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/dependabot/secrets#get-a-repository-public-key) endpoint.", ) - message: str = Field( - description="A message providing further details about the result, such as why the dependencies were not updated." + key_id: Missing[str] = Field( + default=UNSET, description="ID of the key you used to encrypt the secret." ) -model_rebuild(ReposOwnerRepoDependencyGraphSnapshotsPostResponse201) +model_rebuild(ReposOwnerRepoDependabotSecretsSecretNamePutBody) -__all__ = ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201",) +__all__ = ("ReposOwnerRepoDependabotSecretsSecretNamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0957.py b/githubkit/versions/v2022_11_28/models/group_0957.py index 6b4363613..d8abaeb32 100644 --- a/githubkit/versions/v2022_11_28/models/group_0957.py +++ b/githubkit/versions/v2022_11_28/models/group_0957.py @@ -9,61 +9,24 @@ from __future__ import annotations -from typing import List, Union - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoDeploymentsPostBody(GitHubModel): - """ReposOwnerRepoDeploymentsPostBody""" +class ReposOwnerRepoDependencyGraphSnapshotsPostResponse201(GitHubModel): + """ReposOwnerRepoDependencyGraphSnapshotsPostResponse201""" - 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) + 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.' ) - environment: Missing[str] = Field( - default=UNSET, - description="Name for the target deployment environment (e.g., `production`, `staging`, `qa`).", + message: str = Field( + description="A message providing further details about the result, such as why the dependencies were not updated." ) - 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(ReposOwnerRepoDependencyGraphSnapshotsPostResponse201) -__all__ = ( - "ReposOwnerRepoDeploymentsPostBody", - "ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0", -) +__all__ = ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201",) diff --git a/githubkit/versions/v2022_11_28/models/group_0958.py b/githubkit/versions/v2022_11_28/models/group_0958.py index 8fe47fba1..6b4363613 100644 --- a/githubkit/versions/v2022_11_28/models/group_0958.py +++ b/githubkit/versions/v2022_11_28/models/group_0958.py @@ -9,19 +9,61 @@ from __future__ import annotations +from typing import List, Union + from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild + + +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/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 ReposOwnerRepoDeploymentsPostResponse202(GitHubModel): - """ReposOwnerRepoDeploymentsPostResponse202""" - message: Missing[str] = Field(default=UNSET) +class ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0(ExtraGitHubModel): + """ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0""" -model_rebuild(ReposOwnerRepoDeploymentsPostResponse202) +model_rebuild(ReposOwnerRepoDeploymentsPostBody) +model_rebuild(ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0) -__all__ = ("ReposOwnerRepoDeploymentsPostResponse202",) +__all__ = ( + "ReposOwnerRepoDeploymentsPostBody", + "ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0959.py b/githubkit/versions/v2022_11_28/models/group_0959.py index b51ea5c18..8fe47fba1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0959.py +++ b/githubkit/versions/v2022_11_28/models/group_0959.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.utils import UNSET @@ -18,40 +16,12 @@ from githubkit.compat import GitHubModel, model_rebuild -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. **Note:** 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",) +class ReposOwnerRepoDeploymentsPostResponse202(GitHubModel): + """ReposOwnerRepoDeploymentsPostResponse202""" + + message: Missing[str] = Field(default=UNSET) + + +model_rebuild(ReposOwnerRepoDeploymentsPostResponse202) + +__all__ = ("ReposOwnerRepoDeploymentsPostResponse202",) diff --git a/githubkit/versions/v2022_11_28/models/group_0960.py b/githubkit/versions/v2022_11_28/models/group_0960.py index 019ffdc28..b51ea5c18 100644 --- a/githubkit/versions/v2022_11_28/models/group_0960.py +++ b/githubkit/versions/v2022_11_28/models/group_0960.py @@ -9,39 +9,49 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoDispatchesPostBody(GitHubModel): - """ReposOwnerRepoDispatchesPostBody""" +class ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody(GitHubModel): + """ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody""" - event_type: str = Field( - min_length=1, - max_length=100, - description="A custom webhook event name. Must be 100 characters or fewer.", + 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." ) - client_payload: Missing[ReposOwnerRepoDispatchesPostBodyPropClientPayload] = Field( + target_url: 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.", + 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. **Note:** 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`", ) -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. - """ - - -model_rebuild(ReposOwnerRepoDispatchesPostBody) -model_rebuild(ReposOwnerRepoDispatchesPostBodyPropClientPayload) +model_rebuild(ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody) -__all__ = ( - "ReposOwnerRepoDispatchesPostBody", - "ReposOwnerRepoDispatchesPostBodyPropClientPayload", -) +__all__ = ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0961.py b/githubkit/versions/v2022_11_28/models/group_0961.py index 645c9cbd8..019ffdc28 100644 --- a/githubkit/versions/v2022_11_28/models/group_0961.py +++ b/githubkit/versions/v2022_11_28/models/group_0961.py @@ -9,61 +9,39 @@ from __future__ import annotations -from typing import List, Union, Literal - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - -from .group_0248 import DeploymentBranchPolicySettings +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild -class ReposOwnerRepoEnvironmentsEnvironmentNamePutBody(GitHubModel): - """ReposOwnerRepoEnvironmentsEnvironmentNamePutBody""" +class ReposOwnerRepoDispatchesPostBody(GitHubModel): + """ReposOwnerRepoDispatchesPostBody""" - 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.", + event_type: str = Field( + min_length=1, + max_length=100, + description="A custom webhook event name. Must be 100 characters or fewer.", ) - reviewers: Missing[ - Union[ - List[ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems], - None, - ] - ] = Field( + client_payload: Missing[ReposOwnerRepoDispatchesPostBodyPropClientPayload] = 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`.", - ) + 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.", ) -class ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems(GitHubModel): - """ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems""" +class ReposOwnerRepoDispatchesPostBodyPropClientPayload(ExtraGitHubModel): + """ReposOwnerRepoDispatchesPostBodyPropClientPayload - type: Missing[Literal["User", "Team"]] = Field( - default=UNSET, description="The type of reviewer." - ) - id: Missing[int] = Field( - default=UNSET, - description="The id of the user or team who can review the deployment", - ) + 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. + """ -model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNamePutBody) -model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems) +model_rebuild(ReposOwnerRepoDispatchesPostBody) +model_rebuild(ReposOwnerRepoDispatchesPostBodyPropClientPayload) __all__ = ( - "ReposOwnerRepoEnvironmentsEnvironmentNamePutBody", - "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems", + "ReposOwnerRepoDispatchesPostBody", + "ReposOwnerRepoDispatchesPostBodyPropClientPayload", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0962.py b/githubkit/versions/v2022_11_28/models/group_0962.py index 164fcd76f..645c9cbd8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0962.py +++ b/githubkit/versions/v2022_11_28/models/group_0962.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Literal +from typing import List, Union, Literal from pydantic import Field @@ -17,43 +17,53 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0248 import DeploymentBranchPolicySettings -class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200( - GitHubModel -): - """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200""" - total_count: int = Field( - description="The number of deployment branch policies for the environment." - ) - branch_policies: List[DeploymentBranchPolicy] = Field() +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).", + ) + 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 DeploymentBranchPolicy(GitHubModel): - """Deployment branch policy - Details of a deployment branch or tag policy. - """ +class ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems(GitHubModel): + """ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems""" - id: Missing[int] = Field( - default=UNSET, description="The unique identifier of the branch or tag policy." + type: Missing[Literal["User", "Team"]] = Field( + default=UNSET, description="The type of reviewer." ) - node_id: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field( + id: Missing[int] = 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." + description="The id of the user or team who can review the deployment", ) -model_rebuild( - ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200 -) -model_rebuild(DeploymentBranchPolicy) +model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNamePutBody) +model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems) __all__ = ( - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200", - "DeploymentBranchPolicy", + "ReposOwnerRepoEnvironmentsEnvironmentNamePutBody", + "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0963.py b/githubkit/versions/v2022_11_28/models/group_0963.py index b159fbf0c..164fcd76f 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 List, Literal + from pydantic import Field from githubkit.utils import UNSET @@ -16,21 +18,42 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody( +class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200( GitHubModel ): - """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody""" + """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200""" + + total_count: int = Field( + description="The number of deployment branch policies for the environment." + ) + branch_policies: List[DeploymentBranchPolicy] = Field() + - integration_id: Missing[int] = 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( default=UNSET, - description="The ID of the custom app that will be enabled on the environment.", + 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( - ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody + ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200 ) +model_rebuild(DeploymentBranchPolicy) __all__ = ( - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody", + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200", + "DeploymentBranchPolicy", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0964.py b/githubkit/versions/v2022_11_28/models/group_0964.py index 134b41b74..b159fbf0c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0964.py +++ b/githubkit/versions/v2022_11_28/models/group_0964.py @@ -9,37 +9,28 @@ from __future__ import annotations -from typing import List - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0254 import CustomDeploymentRuleApp - -class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200( +class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody( GitHubModel ): - """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetRespons - e200 - """ + """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody""" - total_count: Missing[int] = Field( + integration_id: Missing[int] = Field( default=UNSET, - description="The total number of custom deployment protection rule integrations available for this environment.", + description="The ID of the custom app that will be enabled on the environment.", ) - available_custom_deployment_protection_rule_integrations: Missing[ - List[CustomDeploymentRuleApp] - ] = Field(default=UNSET) model_rebuild( - ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200 + ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody ) __all__ = ( - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200", + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0965.py b/githubkit/versions/v2022_11_28/models/group_0965.py index 03ddf4d4d..134b41b74 100644 --- a/githubkit/versions/v2022_11_28/models/group_0965.py +++ b/githubkit/versions/v2022_11_28/models/group_0965.py @@ -13,18 +13,33 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0165 import ActionsSecret +from .group_0254 import CustomDeploymentRuleApp -class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200(GitHubModel): - """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200""" +class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200( + GitHubModel +): + """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetRespons + e200 + """ - total_count: int = Field() - secrets: List[ActionsSecret] = Field() + total_count: Missing[int] = Field( + default=UNSET, + 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(ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200) +model_rebuild( + ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200 +) -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200",) +__all__ = ( + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0966.py b/githubkit/versions/v2022_11_28/models/group_0966.py index aec8c7a15..03ddf4d4d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0966.py +++ b/githubkit/versions/v2022_11_28/models/group_0966.py @@ -9,21 +9,22 @@ from __future__ import annotations +from typing import List + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from .group_0165 import ActionsSecret + -class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody(GitHubModel): - """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody""" +class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200(GitHubModel): + """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200""" - 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.") + total_count: int = Field() + secrets: List[ActionsSecret] = Field() -model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody) +model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200) -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody",) +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0967.py b/githubkit/versions/v2022_11_28/models/group_0967.py index 02bd96dc7..aec8c7a15 100644 --- a/githubkit/versions/v2022_11_28/models/group_0967.py +++ b/githubkit/versions/v2022_11_28/models/group_0967.py @@ -9,22 +9,21 @@ from __future__ import annotations -from typing import List - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0166 import ActionsVariable - -class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200(GitHubModel): - """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200""" +class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody(GitHubModel): + """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody""" - total_count: int = Field() - variables: List[ActionsVariable] = 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 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(ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200) +model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody) -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200",) +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0968.py b/githubkit/versions/v2022_11_28/models/group_0968.py index 376060834..02bd96dc7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0968.py +++ b/githubkit/versions/v2022_11_28/models/group_0968.py @@ -9,18 +9,22 @@ from __future__ import annotations +from typing import List + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from .group_0166 import ActionsVariable + -class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody(GitHubModel): - """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody""" +class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200(GitHubModel): + """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200""" - name: str = Field(description="The name of the variable.") - value: str = Field(description="The value of the variable.") + total_count: int = Field() + variables: List[ActionsVariable] = Field() -model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody) +model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200) -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody",) +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0969.py b/githubkit/versions/v2022_11_28/models/group_0969.py index 4bf82006d..376060834 100644 --- a/githubkit/versions/v2022_11_28/models/group_0969.py +++ b/githubkit/versions/v2022_11_28/models/group_0969.py @@ -11,18 +11,16 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody(GitHubModel): - """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody""" +class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody(GitHubModel): + """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody""" - name: Missing[str] = Field(default=UNSET, description="The name of the variable.") - value: Missing[str] = Field(default=UNSET, description="The value of the variable.") + name: str = Field(description="The name of the variable.") + value: str = Field(description="The value of the variable.") -model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody) +model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody) -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody",) +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0970.py b/githubkit/versions/v2022_11_28/models/group_0970.py index 0fe1a32f9..4bf82006d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0970.py +++ b/githubkit/versions/v2022_11_28/models/group_0970.py @@ -16,23 +16,13 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoForksPostBody(GitHubModel): - """ReposOwnerRepoForksPostBody""" - - 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.", - ) - default_branch_only: Missing[bool] = Field( - default=UNSET, - description="When forking from an existing repository, fork with only the default branch.", - ) - - -model_rebuild(ReposOwnerRepoForksPostBody) - -__all__ = ("ReposOwnerRepoForksPostBody",) +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_0971.py b/githubkit/versions/v2022_11_28/models/group_0971.py index 5ef2b62bc..0fe1a32f9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0971.py +++ b/githubkit/versions/v2022_11_28/models/group_0971.py @@ -16,16 +16,23 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoGitBlobsPostBody(GitHubModel): - """ReposOwnerRepoGitBlobsPostBody""" +class ReposOwnerRepoForksPostBody(GitHubModel): + """ReposOwnerRepoForksPostBody""" - content: str = Field(description="The new blob's content.") - encoding: Missing[str] = Field( + organization: Missing[str] = Field( default=UNSET, - description='The encoding used for `content`. Currently, `"utf-8"` and `"base64"` are supported.', + 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.", + ) + default_branch_only: Missing[bool] = Field( + default=UNSET, + description="When forking from an existing repository, fork with only the default branch.", ) -model_rebuild(ReposOwnerRepoGitBlobsPostBody) +model_rebuild(ReposOwnerRepoForksPostBody) -__all__ = ("ReposOwnerRepoGitBlobsPostBody",) +__all__ = ("ReposOwnerRepoForksPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0972.py b/githubkit/versions/v2022_11_28/models/group_0972.py index 56b388fb9..5ef2b62bc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0972.py +++ b/githubkit/versions/v2022_11_28/models/group_0972.py @@ -9,9 +9,6 @@ from __future__ import annotations -from typing import List -from datetime import datetime - from pydantic import Field from githubkit.utils import UNSET @@ -19,74 +16,16 @@ from githubkit.compat import GitHubModel, model_rebuild -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 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 ReposOwnerRepoGitBlobsPostBody(GitHubModel): + """ReposOwnerRepoGitBlobsPostBody""" - 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( + content: str = Field(description="The new blob's content.") + encoding: Missing[str] = 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 encoding used for `content`. Currently, `"utf-8"` and `"base64"` are supported.', ) -model_rebuild(ReposOwnerRepoGitCommitsPostBody) -model_rebuild(ReposOwnerRepoGitCommitsPostBodyPropAuthor) -model_rebuild(ReposOwnerRepoGitCommitsPostBodyPropCommitter) +model_rebuild(ReposOwnerRepoGitBlobsPostBody) -__all__ = ( - "ReposOwnerRepoGitCommitsPostBody", - "ReposOwnerRepoGitCommitsPostBodyPropAuthor", - "ReposOwnerRepoGitCommitsPostBodyPropCommitter", -) +__all__ = ("ReposOwnerRepoGitBlobsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0973.py b/githubkit/versions/v2022_11_28/models/group_0973.py index e02988ad3..56b388fb9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0973.py +++ b/githubkit/versions/v2022_11_28/models/group_0973.py @@ -9,20 +9,84 @@ from __future__ import annotations +from typing import List +from datetime import datetime + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoGitRefsPostBody(GitHubModel): - """ReposOwnerRepoGitRefsPostBody""" +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 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. + """ - 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." + 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`.", ) - sha: str = Field(description="The SHA1 value for this reference.") -model_rebuild(ReposOwnerRepoGitRefsPostBody) +model_rebuild(ReposOwnerRepoGitCommitsPostBody) +model_rebuild(ReposOwnerRepoGitCommitsPostBodyPropAuthor) +model_rebuild(ReposOwnerRepoGitCommitsPostBodyPropCommitter) -__all__ = ("ReposOwnerRepoGitRefsPostBody",) +__all__ = ( + "ReposOwnerRepoGitCommitsPostBody", + "ReposOwnerRepoGitCommitsPostBodyPropAuthor", + "ReposOwnerRepoGitCommitsPostBodyPropCommitter", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0974.py b/githubkit/versions/v2022_11_28/models/group_0974.py index 457380b7b..e02988ad3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0974.py +++ b/githubkit/versions/v2022_11_28/models/group_0974.py @@ -11,21 +11,18 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoGitRefsRefPatchBody(GitHubModel): - """ReposOwnerRepoGitRefsRefPatchBody""" +class ReposOwnerRepoGitRefsPostBody(GitHubModel): + """ReposOwnerRepoGitRefsPostBody""" - 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.", + 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(ReposOwnerRepoGitRefsRefPatchBody) +model_rebuild(ReposOwnerRepoGitRefsPostBody) -__all__ = ("ReposOwnerRepoGitRefsRefPatchBody",) +__all__ = ("ReposOwnerRepoGitRefsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0975.py b/githubkit/versions/v2022_11_28/models/group_0975.py index 74d3527c4..457380b7b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0975.py +++ b/githubkit/versions/v2022_11_28/models/group_0975.py @@ -9,9 +9,6 @@ from __future__ import annotations -from typing import Literal -from datetime import datetime - from pydantic import Field from githubkit.utils import UNSET @@ -19,43 +16,16 @@ from githubkit.compat import GitHubModel, model_rebuild -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 ReposOwnerRepoGitRefsRefPatchBody(GitHubModel): + """ReposOwnerRepoGitRefsRefPatchBody""" - 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( + sha: str = Field(description="The SHA1 value to set this reference to") + force: Missing[bool] = 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`.", + 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(ReposOwnerRepoGitTagsPostBody) -model_rebuild(ReposOwnerRepoGitTagsPostBodyPropTagger) +model_rebuild(ReposOwnerRepoGitRefsRefPatchBody) -__all__ = ( - "ReposOwnerRepoGitTagsPostBody", - "ReposOwnerRepoGitTagsPostBodyPropTagger", -) +__all__ = ("ReposOwnerRepoGitRefsRefPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0976.py b/githubkit/versions/v2022_11_28/models/group_0976.py index 43ce478ab..74d3527c4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0976.py +++ b/githubkit/versions/v2022_11_28/models/group_0976.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal +from datetime import datetime from pydantic import Field @@ -18,45 +19,43 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoGitTreesPostBody(GitHubModel): - """ReposOwnerRepoGitTreesPostBody""" +class ReposOwnerRepoGitTagsPostBody(GitHubModel): + """ReposOwnerRepoGitTagsPostBody""" - tree: List[ReposOwnerRepoGitTreesPostBodyPropTreeItems] = Field( - description="Objects (of `path`, `mode`, `type`, and `sha`) specifying a tree structure." + tag: str = Field( + description='The tag\'s name. This is typically a version (e.g., "v0.0.1").' ) - base_tree: Missing[str] = Field( + 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="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.\n", + description="An object with information about the individual creating the tag.", ) -class ReposOwnerRepoGitTreesPostBodyPropTreeItems(GitHubModel): - """ReposOwnerRepoGitTreesPostBodyPropTreeItems""" +class ReposOwnerRepoGitTagsPostBodyPropTagger(GitHubModel): + """ReposOwnerRepoGitTagsPostBodyPropTagger - 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( + 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="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.", + 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(ReposOwnerRepoGitTreesPostBody) -model_rebuild(ReposOwnerRepoGitTreesPostBodyPropTreeItems) +model_rebuild(ReposOwnerRepoGitTagsPostBody) +model_rebuild(ReposOwnerRepoGitTagsPostBodyPropTagger) __all__ = ( - "ReposOwnerRepoGitTreesPostBody", - "ReposOwnerRepoGitTreesPostBodyPropTreeItems", + "ReposOwnerRepoGitTagsPostBody", + "ReposOwnerRepoGitTagsPostBodyPropTagger", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0977.py b/githubkit/versions/v2022_11_28/models/group_0977.py index b31d4a3e7..43ce478ab 100644 --- a/githubkit/versions/v2022_11_28/models/group_0977.py +++ b/githubkit/versions/v2022_11_28/models/group_0977.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Union +from typing import List, Union, Literal from pydantic import Field @@ -18,51 +18,45 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoHooksPostBody(GitHubModel): - """ReposOwnerRepoHooksPostBody""" +class ReposOwnerRepoGitTreesPostBody(GitHubModel): + """ReposOwnerRepoGitTreesPostBody""" - 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.", + tree: List[ReposOwnerRepoGitTreesPostBodyPropTreeItems] = Field( + description="Objects (of `path`, `mode`, `type`, and `sha`) specifying a tree structure." ) - active: Missing[bool] = Field( + base_tree: Missing[str] = Field( default=UNSET, - description="Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.", + 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.\n", ) -class ReposOwnerRepoHooksPostBodyPropConfig(GitHubModel): - """ReposOwnerRepoHooksPostBodyPropConfig +class ReposOwnerRepoGitTreesPostBodyPropTreeItems(GitHubModel): + """ReposOwnerRepoGitTreesPostBodyPropTreeItems""" - 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." + 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`." ) - content_type: Missing[str] = Field( + sha: Missing[Union[str, None]] = Field( default=UNSET, - description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", + 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.", ) - secret: Missing[str] = Field( + content: 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).", + 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.", ) - insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoHooksPostBody) -model_rebuild(ReposOwnerRepoHooksPostBodyPropConfig) +model_rebuild(ReposOwnerRepoGitTreesPostBody) +model_rebuild(ReposOwnerRepoGitTreesPostBodyPropTreeItems) __all__ = ( - "ReposOwnerRepoHooksPostBody", - "ReposOwnerRepoHooksPostBodyPropConfig", + "ReposOwnerRepoGitTreesPostBody", + "ReposOwnerRepoGitTreesPostBodyPropTreeItems", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0978.py b/githubkit/versions/v2022_11_28/models/group_0978.py index 0a1447fc8..b31d4a3e7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0978.py +++ b/githubkit/versions/v2022_11_28/models/group_0978.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List +from typing import List, Union from pydantic import Field @@ -17,35 +17,52 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0007 import WebhookConfig +class ReposOwnerRepoHooksPostBody(GitHubModel): + """ReposOwnerRepoHooksPostBody""" -class ReposOwnerRepoHooksHookIdPatchBody(GitHubModel): - """ReposOwnerRepoHooksHookIdPatchBody""" - - config: Missing[WebhookConfig] = Field( + 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, - title="Webhook Configuration", - description="Configuration object of the webhook", + 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. This replaces the entire array of events.", + description="Determines what [events](https://docs.github.com/webhooks/event-payloads) the hook is triggered for.", ) - add_events: Missing[List[str]] = Field( + active: Missing[bool] = Field( default=UNSET, - description="Determines a list of events to be added to the list of events that the Hook triggers for.", + 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. + """ + + url: Missing[str] = Field( + default=UNSET, description="The URL to which the payloads will be delivered." ) - remove_events: Missing[List[str]] = Field( + content_type: Missing[str] = Field( default=UNSET, - description="Determines a list of events to be removed from the list of events that the Hook triggers for.", + description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", ) - active: Missing[bool] = Field( + secret: Missing[str] = Field( default=UNSET, - description="Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.", + 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(ReposOwnerRepoHooksHookIdPatchBody) +model_rebuild(ReposOwnerRepoHooksPostBody) +model_rebuild(ReposOwnerRepoHooksPostBodyPropConfig) -__all__ = ("ReposOwnerRepoHooksHookIdPatchBody",) +__all__ = ( + "ReposOwnerRepoHooksPostBody", + "ReposOwnerRepoHooksPostBodyPropConfig", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0979.py b/githubkit/versions/v2022_11_28/models/group_0979.py index b307ef298..0a1447fc8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0979.py +++ b/githubkit/versions/v2022_11_28/models/group_0979.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import List from pydantic import Field @@ -17,24 +17,35 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0007 import WebhookConfig -class ReposOwnerRepoHooksHookIdConfigPatchBody(GitHubModel): - """ReposOwnerRepoHooksHookIdConfigPatchBody""" - url: Missing[str] = Field( - default=UNSET, description="The URL to which the payloads will be delivered." +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.", ) - content_type: Missing[str] = Field( + remove_events: Missing[List[str]] = Field( default=UNSET, - description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", + description="Determines a list of events to be removed from the list of events that the Hook triggers for.", ) - secret: Missing[str] = Field( + active: 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="Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.", ) - insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoHooksHookIdConfigPatchBody) +model_rebuild(ReposOwnerRepoHooksHookIdPatchBody) -__all__ = ("ReposOwnerRepoHooksHookIdConfigPatchBody",) +__all__ = ("ReposOwnerRepoHooksHookIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0980.py b/githubkit/versions/v2022_11_28/models/group_0980.py index 9ec5ec399..b307ef298 100644 --- a/githubkit/versions/v2022_11_28/models/group_0980.py +++ b/githubkit/versions/v2022_11_28/models/group_0980.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field @@ -18,28 +18,23 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoImportPutBody(GitHubModel): - """ReposOwnerRepoImportPutBody""" +class ReposOwnerRepoHooksHookIdConfigPatchBody(GitHubModel): + """ReposOwnerRepoHooksHookIdConfigPatchBody""" - 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`.", + url: Missing[str] = Field( + default=UNSET, description="The URL to which the payloads will be delivered." ) - vcs_password: Missing[str] = Field( + content_type: Missing[str] = Field( default=UNSET, - description="If authentication is required, the password to provide to `vcs_url`.", + description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", ) - tfvc_project: Missing[str] = Field( + secret: Missing[str] = Field( default=UNSET, - description="For a tfvc import, the name of the project that is being imported.", + 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(ReposOwnerRepoImportPutBody) +model_rebuild(ReposOwnerRepoHooksHookIdConfigPatchBody) -__all__ = ("ReposOwnerRepoImportPutBody",) +__all__ = ("ReposOwnerRepoHooksHookIdConfigPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0981.py b/githubkit/versions/v2022_11_28/models/group_0981.py index c2aa14687..9ec5ec399 100644 --- a/githubkit/versions/v2022_11_28/models/group_0981.py +++ b/githubkit/versions/v2022_11_28/models/group_0981.py @@ -18,20 +18,21 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoImportPatchBody(GitHubModel): - """ReposOwnerRepoImportPatchBody""" +class ReposOwnerRepoImportPutBody(GitHubModel): + """ReposOwnerRepoImportPutBody""" - vcs_username: Missing[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 username to provide to the originating repository.", + 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_password: Missing[str] = Field( + vcs_username: Missing[str] = Field( default=UNSET, - description="The password to provide to the originating repository.", + description="If authentication is required, the username to provide to `vcs_url`.", ) - vcs: Missing[Literal["subversion", "tfvc", "git", "mercurial"]] = Field( + vcs_password: Missing[str] = Field( default=UNSET, - description="The type of version control system you are migrating from.", + description="If authentication is required, the password to provide to `vcs_url`.", ) tfvc_project: Missing[str] = Field( default=UNSET, @@ -39,6 +40,6 @@ class ReposOwnerRepoImportPatchBody(GitHubModel): ) -model_rebuild(ReposOwnerRepoImportPatchBody) +model_rebuild(ReposOwnerRepoImportPutBody) -__all__ = ("ReposOwnerRepoImportPatchBody",) +__all__ = ("ReposOwnerRepoImportPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0982.py b/githubkit/versions/v2022_11_28/models/group_0982.py index c5a5b2258..c2aa14687 100644 --- a/githubkit/versions/v2022_11_28/models/group_0982.py +++ b/githubkit/versions/v2022_11_28/models/group_0982.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.utils import UNSET @@ -16,13 +18,27 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoImportAuthorsAuthorIdPatchBody(GitHubModel): - """ReposOwnerRepoImportAuthorsAuthorIdPatchBody""" +class ReposOwnerRepoImportPatchBody(GitHubModel): + """ReposOwnerRepoImportPatchBody""" - email: Missing[str] = Field(default=UNSET, description="The new Git author email.") - name: Missing[str] = Field(default=UNSET, description="The new Git author name.") + 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="For a tfvc import, the name of the project that is being imported.", + ) -model_rebuild(ReposOwnerRepoImportAuthorsAuthorIdPatchBody) +model_rebuild(ReposOwnerRepoImportPatchBody) -__all__ = ("ReposOwnerRepoImportAuthorsAuthorIdPatchBody",) +__all__ = ("ReposOwnerRepoImportPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0983.py b/githubkit/versions/v2022_11_28/models/group_0983.py index 7727d20f6..c5a5b2258 100644 --- a/githubkit/versions/v2022_11_28/models/group_0983.py +++ b/githubkit/versions/v2022_11_28/models/group_0983.py @@ -9,21 +9,20 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoImportLfsPatchBody(GitHubModel): - """ReposOwnerRepoImportLfsPatchBody""" +class ReposOwnerRepoImportAuthorsAuthorIdPatchBody(GitHubModel): + """ReposOwnerRepoImportAuthorsAuthorIdPatchBody""" - 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." - ) + 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(ReposOwnerRepoImportLfsPatchBody) +model_rebuild(ReposOwnerRepoImportAuthorsAuthorIdPatchBody) -__all__ = ("ReposOwnerRepoImportLfsPatchBody",) +__all__ = ("ReposOwnerRepoImportAuthorsAuthorIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0984.py b/githubkit/versions/v2022_11_28/models/group_0984.py index 759975570..7727d20f6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0984.py +++ b/githubkit/versions/v2022_11_28/models/group_0984.py @@ -9,13 +9,21 @@ from __future__ import annotations +from typing import Literal + +from pydantic import Field + from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoInteractionLimitsGetResponse200Anyof1(GitHubModel): - """ReposOwnerRepoInteractionLimitsGetResponse200Anyof1""" +class ReposOwnerRepoImportLfsPatchBody(GitHubModel): + """ReposOwnerRepoImportLfsPatchBody""" + + 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(ReposOwnerRepoInteractionLimitsGetResponse200Anyof1) +model_rebuild(ReposOwnerRepoImportLfsPatchBody) -__all__ = ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1",) +__all__ = ("ReposOwnerRepoImportLfsPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0985.py b/githubkit/versions/v2022_11_28/models/group_0985.py index d06271828..759975570 100644 --- a/githubkit/versions/v2022_11_28/models/group_0985.py +++ b/githubkit/versions/v2022_11_28/models/group_0985.py @@ -9,26 +9,13 @@ from __future__ import annotations -from typing import Literal - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoInvitationsInvitationIdPatchBody(GitHubModel): - """ReposOwnerRepoInvitationsInvitationIdPatchBody""" - - 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`.", - ) - ) +class ReposOwnerRepoInteractionLimitsGetResponse200Anyof1(GitHubModel): + """ReposOwnerRepoInteractionLimitsGetResponse200Anyof1""" -model_rebuild(ReposOwnerRepoInvitationsInvitationIdPatchBody) +model_rebuild(ReposOwnerRepoInteractionLimitsGetResponse200Anyof1) -__all__ = ("ReposOwnerRepoInvitationsInvitationIdPatchBody",) +__all__ = ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_0986.py b/githubkit/versions/v2022_11_28/models/group_0986.py index e40165dc9..d06271828 100644 --- a/githubkit/versions/v2022_11_28/models/group_0986.py +++ b/githubkit/versions/v2022_11_28/models/group_0986.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Union +from typing import Literal from pydantic import Field @@ -18,41 +18,17 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoIssuesPostBody(GitHubModel): - """ReposOwnerRepoIssuesPostBody""" +class ReposOwnerRepoInvitationsInvitationIdPatchBody(GitHubModel): + """ReposOwnerRepoInvitationsInvitationIdPatchBody""" - 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 deprecated.**_", + 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`.", + ) ) - 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._", - ) - - -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(ReposOwnerRepoInvitationsInvitationIdPatchBody) -__all__ = ( - "ReposOwnerRepoIssuesPostBody", - "ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1", -) +__all__ = ("ReposOwnerRepoInvitationsInvitationIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0987.py b/githubkit/versions/v2022_11_28/models/group_0987.py index 2e91230e7..e40165dc9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0987.py +++ b/githubkit/versions/v2022_11_28/models/group_0987.py @@ -9,17 +9,50 @@ from __future__ import annotations +from typing import List, Union + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing 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",) +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 deprecated.**_", + ) + 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._", + ) + + +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_0988.py b/githubkit/versions/v2022_11_28/models/group_0988.py index 429ace692..2e91230e7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0988.py +++ b/githubkit/versions/v2022_11_28/models/group_0988.py @@ -9,23 +9,17 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody(GitHubModel): - """ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody""" +class ReposOwnerRepoIssuesCommentsCommentIdPatchBody(GitHubModel): + """ReposOwnerRepoIssuesCommentsCommentIdPatchBody""" - 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." - ) + body: str = Field(description="The contents of the comment.") -model_rebuild(ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody) +model_rebuild(ReposOwnerRepoIssuesCommentsCommentIdPatchBody) -__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody",) +__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0989.py b/githubkit/versions/v2022_11_28/models/group_0989.py index f4cf48489..429ace692 100644 --- a/githubkit/versions/v2022_11_28/models/group_0989.py +++ b/githubkit/versions/v2022_11_28/models/group_0989.py @@ -9,63 +9,23 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoIssuesIssueNumberPatchBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberPatchBody""" +class ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody(GitHubModel): + """ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody""" - 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 deprecated.**", - ) - 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]] + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" ] = 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.", + description="The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the issue comment." ) -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(ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody) -__all__ = ( - "ReposOwnerRepoIssuesIssueNumberPatchBody", - "ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1", -) +__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0990.py b/githubkit/versions/v2022_11_28/models/group_0990.py index e809e4006..f4cf48489 100644 --- a/githubkit/versions/v2022_11_28/models/group_0990.py +++ b/githubkit/versions/v2022_11_28/models/group_0990.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List +from typing import List, Union, Literal from pydantic import Field @@ -18,15 +18,54 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoIssuesIssueNumberAssigneesPostBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberAssigneesPostBody""" +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 deprecated.**", + ) + 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 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="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.", ) -model_rebuild(ReposOwnerRepoIssuesIssueNumberAssigneesPostBody) +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) -__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBody",) +__all__ = ( + "ReposOwnerRepoIssuesIssueNumberPatchBody", + "ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0991.py b/githubkit/versions/v2022_11_28/models/group_0991.py index 5d857cf8c..e809e4006 100644 --- a/githubkit/versions/v2022_11_28/models/group_0991.py +++ b/githubkit/versions/v2022_11_28/models/group_0991.py @@ -18,15 +18,15 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody""" +class ReposOwnerRepoIssuesIssueNumberAssigneesPostBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberAssigneesPostBody""" 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._", + 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(ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody) +model_rebuild(ReposOwnerRepoIssuesIssueNumberAssigneesPostBody) -__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0992.py b/githubkit/versions/v2022_11_28/models/group_0992.py index 49a6d6da0..5d857cf8c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0992.py +++ b/githubkit/versions/v2022_11_28/models/group_0992.py @@ -9,17 +9,24 @@ from __future__ import annotations +from typing import List + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoIssuesIssueNumberCommentsPostBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberCommentsPostBody""" +class ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody""" - body: str = Field(description="The contents of the comment.") + 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(ReposOwnerRepoIssuesIssueNumberCommentsPostBody) +model_rebuild(ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody) -__all__ = ("ReposOwnerRepoIssuesIssueNumberCommentsPostBody",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0993.py b/githubkit/versions/v2022_11_28/models/group_0993.py index bb9a1cd53..49a6d6da0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0993.py +++ b/githubkit/versions/v2022_11_28/models/group_0993.py @@ -9,25 +9,17 @@ from __future__ import annotations -from typing import List - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0""" +class ReposOwnerRepoIssuesIssueNumberCommentsPostBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberCommentsPostBody""" - labels: Missing[List[str]] = Field( - min_length=1, - 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)."', - ) + body: str = Field(description="The contents of the comment.") -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0) +model_rebuild(ReposOwnerRepoIssuesIssueNumberCommentsPostBody) -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberCommentsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0994.py b/githubkit/versions/v2022_11_28/models/group_0994.py index 0ed7e108e..bb9a1cd53 100644 --- a/githubkit/versions/v2022_11_28/models/group_0994.py +++ b/githubkit/versions/v2022_11_28/models/group_0994.py @@ -18,24 +18,16 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2""" +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0""" - labels: Missing[ - List[ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems] - ] = Field(min_length=1, default=UNSET) + labels: Missing[List[str]] = Field( + min_length=1, + 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)."', + ) -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems""" +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0) - name: str = Field() - - -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2) -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems) - -__all__ = ( - "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2", - "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems", -) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_0995.py b/githubkit/versions/v2022_11_28/models/group_0995.py index d59513ace..0ed7e108e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0995.py +++ b/githubkit/versions/v2022_11_28/models/group_0995.py @@ -9,17 +9,33 @@ from __future__ import annotations +from typing import List + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items""" +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2""" + + labels: Missing[ + List[ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems] + ] = Field(min_length=1, default=UNSET) + + +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems""" name: str = Field() -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems) -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items",) +__all__ = ( + "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2", + "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0996.py b/githubkit/versions/v2022_11_28/models/group_0996.py index 36033eda7..d59513ace 100644 --- a/githubkit/versions/v2022_11_28/models/group_0996.py +++ b/githubkit/versions/v2022_11_28/models/group_0996.py @@ -9,25 +9,17 @@ from __future__ import annotations -from typing import List - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0""" +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items""" - labels: Missing[List[str]] = Field( - min_length=1, - 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)."', - ) + name: str = Field() -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items) -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items",) diff --git a/githubkit/versions/v2022_11_28/models/group_0997.py b/githubkit/versions/v2022_11_28/models/group_0997.py index 0d0e29232..36033eda7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0997.py +++ b/githubkit/versions/v2022_11_28/models/group_0997.py @@ -18,24 +18,16 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2""" +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0""" - labels: Missing[ - List[ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems] - ] = Field(min_length=1, default=UNSET) + labels: Missing[List[str]] = Field( + min_length=1, + 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)."', + ) -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems""" +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0) - name: str = Field() - - -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2) -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems) - -__all__ = ( - "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2", - "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems", -) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_0998.py b/githubkit/versions/v2022_11_28/models/group_0998.py index dfb903bb9..0d0e29232 100644 --- a/githubkit/versions/v2022_11_28/models/group_0998.py +++ b/githubkit/versions/v2022_11_28/models/group_0998.py @@ -9,17 +9,33 @@ from __future__ import annotations +from typing import List + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items""" +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2""" + + labels: Missing[ + List[ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems] + ] = Field(min_length=1, default=UNSET) + + +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems""" name: str = Field() -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems) -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items",) +__all__ = ( + "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2", + "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0999.py b/githubkit/versions/v2022_11_28/models/group_0999.py index 5769fdef9..dfb903bb9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0999.py +++ b/githubkit/versions/v2022_11_28/models/group_0999.py @@ -9,26 +9,17 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoIssuesIssueNumberLockPutBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLockPutBody""" +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items""" - 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`", - ) - ) + name: str = Field() -model_rebuild(ReposOwnerRepoIssuesIssueNumberLockPutBody) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items) -__all__ = ("ReposOwnerRepoIssuesIssueNumberLockPutBody",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items",) diff --git a/githubkit/versions/v2022_11_28/models/group_1000.py b/githubkit/versions/v2022_11_28/models/group_1000.py index 4d12ca0e6..5769fdef9 100644 --- a/githubkit/versions/v2022_11_28/models/group_1000.py +++ b/githubkit/versions/v2022_11_28/models/group_1000.py @@ -13,19 +13,22 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoIssuesIssueNumberReactionsPostBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberReactionsPostBody""" +class ReposOwnerRepoIssuesIssueNumberLockPutBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLockPutBody""" - 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." + 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(ReposOwnerRepoIssuesIssueNumberReactionsPostBody) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLockPutBody) -__all__ = ("ReposOwnerRepoIssuesIssueNumberReactionsPostBody",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLockPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1001.py b/githubkit/versions/v2022_11_28/models/group_1001.py index 22c941a84..4d12ca0e6 100644 --- a/githubkit/versions/v2022_11_28/models/group_1001.py +++ b/githubkit/versions/v2022_11_28/models/group_1001.py @@ -9,24 +9,23 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoKeysPostBody(GitHubModel): - """ReposOwnerRepoKeysPostBody""" +class ReposOwnerRepoIssuesIssueNumberReactionsPostBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberReactionsPostBody""" - 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/)."', + 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(ReposOwnerRepoKeysPostBody) +model_rebuild(ReposOwnerRepoIssuesIssueNumberReactionsPostBody) -__all__ = ("ReposOwnerRepoKeysPostBody",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberReactionsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1002.py b/githubkit/versions/v2022_11_28/models/group_1002.py index c9c52cd3c..22c941a84 100644 --- a/githubkit/versions/v2022_11_28/models/group_1002.py +++ b/githubkit/versions/v2022_11_28/models/group_1002.py @@ -16,22 +16,17 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoLabelsPostBody(GitHubModel): - """ReposOwnerRepoLabelsPostBody""" +class ReposOwnerRepoKeysPostBody(GitHubModel): + """ReposOwnerRepoKeysPostBody""" - 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( + 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="A short description of the label. Must be 100 characters or fewer.", + 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(ReposOwnerRepoLabelsPostBody) +model_rebuild(ReposOwnerRepoKeysPostBody) -__all__ = ("ReposOwnerRepoLabelsPostBody",) +__all__ = ("ReposOwnerRepoKeysPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1003.py b/githubkit/versions/v2022_11_28/models/group_1003.py index 99482c11e..c9c52cd3c 100644 --- a/githubkit/versions/v2022_11_28/models/group_1003.py +++ b/githubkit/versions/v2022_11_28/models/group_1003.py @@ -16,12 +16,11 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoLabelsNamePatchBody(GitHubModel): - """ReposOwnerRepoLabelsNamePatchBody""" +class ReposOwnerRepoLabelsPostBody(GitHubModel): + """ReposOwnerRepoLabelsPostBody""" - 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)."', + 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, @@ -33,6 +32,6 @@ class ReposOwnerRepoLabelsNamePatchBody(GitHubModel): ) -model_rebuild(ReposOwnerRepoLabelsNamePatchBody) +model_rebuild(ReposOwnerRepoLabelsPostBody) -__all__ = ("ReposOwnerRepoLabelsNamePatchBody",) +__all__ = ("ReposOwnerRepoLabelsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1004.py b/githubkit/versions/v2022_11_28/models/group_1004.py index 7be32859a..99482c11e 100644 --- a/githubkit/versions/v2022_11_28/models/group_1004.py +++ b/githubkit/versions/v2022_11_28/models/group_1004.py @@ -11,17 +11,28 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoMergeUpstreamPostBody(GitHubModel): - """ReposOwnerRepoMergeUpstreamPostBody""" +class ReposOwnerRepoLabelsNamePatchBody(GitHubModel): + """ReposOwnerRepoLabelsNamePatchBody""" - branch: str = Field( - description="The name of the branch which should be updated to match upstream." + 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.", ) -model_rebuild(ReposOwnerRepoMergeUpstreamPostBody) +model_rebuild(ReposOwnerRepoLabelsNamePatchBody) -__all__ = ("ReposOwnerRepoMergeUpstreamPostBody",) +__all__ = ("ReposOwnerRepoLabelsNamePatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1005.py b/githubkit/versions/v2022_11_28/models/group_1005.py index 052d6bba0..7be32859a 100644 --- a/githubkit/versions/v2022_11_28/models/group_1005.py +++ b/githubkit/versions/v2022_11_28/models/group_1005.py @@ -11,26 +11,17 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoMergesPostBody(GitHubModel): - """ReposOwnerRepoMergesPostBody""" +class ReposOwnerRepoMergeUpstreamPostBody(GitHubModel): + """ReposOwnerRepoMergeUpstreamPostBody""" - 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.", + branch: str = Field( + description="The name of the branch which should be updated to match upstream." ) -model_rebuild(ReposOwnerRepoMergesPostBody) +model_rebuild(ReposOwnerRepoMergeUpstreamPostBody) -__all__ = ("ReposOwnerRepoMergesPostBody",) +__all__ = ("ReposOwnerRepoMergeUpstreamPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1006.py b/githubkit/versions/v2022_11_28/models/group_1006.py index 4db27f8af..052d6bba0 100644 --- a/githubkit/versions/v2022_11_28/models/group_1006.py +++ b/githubkit/versions/v2022_11_28/models/group_1006.py @@ -9,9 +9,6 @@ from __future__ import annotations -from typing import Literal -from datetime import datetime - from pydantic import Field from githubkit.utils import UNSET @@ -19,23 +16,21 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoMilestonesPostBody(GitHubModel): - """ReposOwnerRepoMilestonesPostBody""" +class ReposOwnerRepoMergesPostBody(GitHubModel): + """ReposOwnerRepoMergesPostBody""" - 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`.", + base: str = Field( + description="The name of the base branch that the head will be merged into." ) - description: Missing[str] = Field( - default=UNSET, description="A description of the milestone." + head: str = Field( + description="The head to merge. This can be a branch name or a commit SHA1." ) - due_on: Missing[datetime] = Field( + commit_message: Missing[str] = 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`.", + description="Commit message to use for the merge commit. If omitted, a default message will be used.", ) -model_rebuild(ReposOwnerRepoMilestonesPostBody) +model_rebuild(ReposOwnerRepoMergesPostBody) -__all__ = ("ReposOwnerRepoMilestonesPostBody",) +__all__ = ("ReposOwnerRepoMergesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1007.py b/githubkit/versions/v2022_11_28/models/group_1007.py index 66f746617..4db27f8af 100644 --- a/githubkit/versions/v2022_11_28/models/group_1007.py +++ b/githubkit/versions/v2022_11_28/models/group_1007.py @@ -19,12 +19,10 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoMilestonesMilestoneNumberPatchBody(GitHubModel): - """ReposOwnerRepoMilestonesMilestoneNumberPatchBody""" +class ReposOwnerRepoMilestonesPostBody(GitHubModel): + """ReposOwnerRepoMilestonesPostBody""" - title: Missing[str] = Field( - default=UNSET, description="The title of the milestone." - ) + 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`.", @@ -38,6 +36,6 @@ class ReposOwnerRepoMilestonesMilestoneNumberPatchBody(GitHubModel): ) -model_rebuild(ReposOwnerRepoMilestonesMilestoneNumberPatchBody) +model_rebuild(ReposOwnerRepoMilestonesPostBody) -__all__ = ("ReposOwnerRepoMilestonesMilestoneNumberPatchBody",) +__all__ = ("ReposOwnerRepoMilestonesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1008.py b/githubkit/versions/v2022_11_28/models/group_1008.py index ee1af04ff..66f746617 100644 --- a/githubkit/versions/v2022_11_28/models/group_1008.py +++ b/githubkit/versions/v2022_11_28/models/group_1008.py @@ -9,6 +9,7 @@ from __future__ import annotations +from typing import Literal from datetime import datetime from pydantic import Field @@ -18,15 +19,25 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoNotificationsPutBody(GitHubModel): - """ReposOwnerRepoNotificationsPutBody""" +class ReposOwnerRepoMilestonesMilestoneNumberPatchBody(GitHubModel): + """ReposOwnerRepoMilestonesMilestoneNumberPatchBody""" - last_read_at: Missing[datetime] = Field( + 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="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="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(ReposOwnerRepoNotificationsPutBody) +model_rebuild(ReposOwnerRepoMilestonesMilestoneNumberPatchBody) -__all__ = ("ReposOwnerRepoNotificationsPutBody",) +__all__ = ("ReposOwnerRepoMilestonesMilestoneNumberPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1009.py b/githubkit/versions/v2022_11_28/models/group_1009.py index 2b5b85a37..ee1af04ff 100644 --- a/githubkit/versions/v2022_11_28/models/group_1009.py +++ b/githubkit/versions/v2022_11_28/models/group_1009.py @@ -9,6 +9,8 @@ from __future__ import annotations +from datetime import datetime + from pydantic import Field from githubkit.utils import UNSET @@ -16,13 +18,15 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoNotificationsPutResponse202(GitHubModel): - """ReposOwnerRepoNotificationsPutResponse202""" +class ReposOwnerRepoNotificationsPutBody(GitHubModel): + """ReposOwnerRepoNotificationsPutBody""" - message: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + 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.", + ) -model_rebuild(ReposOwnerRepoNotificationsPutResponse202) +model_rebuild(ReposOwnerRepoNotificationsPutBody) -__all__ = ("ReposOwnerRepoNotificationsPutResponse202",) +__all__ = ("ReposOwnerRepoNotificationsPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1010.py b/githubkit/versions/v2022_11_28/models/group_1010.py index aaa502a31..2b5b85a37 100644 --- a/githubkit/versions/v2022_11_28/models/group_1010.py +++ b/githubkit/versions/v2022_11_28/models/group_1010.py @@ -9,27 +9,20 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoPagesPutBodyPropSourceAnyof1(GitHubModel): - """ReposOwnerRepoPagesPutBodyPropSourceAnyof1 - - Update the source for the repository. Must include the branch name and path. - """ +class ReposOwnerRepoNotificationsPutResponse202(GitHubModel): + """ReposOwnerRepoNotificationsPutResponse202""" - 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`." - ) + message: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoPagesPutBodyPropSourceAnyof1) +model_rebuild(ReposOwnerRepoNotificationsPutResponse202) -__all__ = ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1",) +__all__ = ("ReposOwnerRepoNotificationsPutResponse202",) diff --git a/githubkit/versions/v2022_11_28/models/group_1011.py b/githubkit/versions/v2022_11_28/models/group_1011.py index ac79ead04..aaa502a31 100644 --- a/githubkit/versions/v2022_11_28/models/group_1011.py +++ b/githubkit/versions/v2022_11_28/models/group_1011.py @@ -9,39 +9,27 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_1010 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 +class ReposOwnerRepoPagesPutBodyPropSourceAnyof1(GitHubModel): + """ReposOwnerRepoPagesPutBodyPropSourceAnyof1 -class ReposOwnerRepoPagesPutBodyAnyof0(GitHubModel): - """ReposOwnerRepoPagesPutBodyAnyof0""" + Update the source for the repository. Must include the branch name and path. + """ - 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)."', + branch: str = Field( + description="The repository branch used to publish your site's source files." ) - https_enforced: Missing[bool] = Field( - default=UNSET, - description="Specify whether HTTPS should be enforced for the repository.", + path: Literal["/", "/docs"] = Field( + description="The repository directory that includes the source files for the Pages site. Allowed paths are `/` or `/docs`." ) - 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(ReposOwnerRepoPagesPutBodyAnyof0) +model_rebuild(ReposOwnerRepoPagesPutBodyPropSourceAnyof1) -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof0",) +__all__ = ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_1012.py b/githubkit/versions/v2022_11_28/models/group_1012.py index c0e601b6f..71ba741da 100644 --- a/githubkit/versions/v2022_11_28/models/group_1012.py +++ b/githubkit/versions/v2022_11_28/models/group_1012.py @@ -17,11 +17,11 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_1010 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 +from .group_1011 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 -class ReposOwnerRepoPagesPutBodyAnyof1(GitHubModel): - """ReposOwnerRepoPagesPutBodyAnyof1""" +class ReposOwnerRepoPagesPutBodyAnyof0(GitHubModel): + """ReposOwnerRepoPagesPutBodyAnyof0""" cname: Missing[Union[str, None]] = Field( default=UNSET, @@ -31,16 +31,17 @@ class ReposOwnerRepoPagesPutBodyAnyof1(GitHubModel): 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.", + 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: Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1, - ] = Field() + source: Missing[ + Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1, + ] + ] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoPagesPutBodyAnyof1) +model_rebuild(ReposOwnerRepoPagesPutBodyAnyof0) -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof1",) +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_1013.py b/githubkit/versions/v2022_11_28/models/group_1013.py index a3af5ed33..6136b4b03 100644 --- a/githubkit/versions/v2022_11_28/models/group_1013.py +++ b/githubkit/versions/v2022_11_28/models/group_1013.py @@ -17,14 +17,15 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_1010 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 +from .group_1011 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 -class ReposOwnerRepoPagesPutBodyAnyof2(GitHubModel): - """ReposOwnerRepoPagesPutBodyAnyof2""" +class ReposOwnerRepoPagesPutBodyAnyof1(GitHubModel): + """ReposOwnerRepoPagesPutBodyAnyof1""" - 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)."' + 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, @@ -34,14 +35,12 @@ class ReposOwnerRepoPagesPutBodyAnyof2(GitHubModel): 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) + source: Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1, + ] = Field() -model_rebuild(ReposOwnerRepoPagesPutBodyAnyof2) +model_rebuild(ReposOwnerRepoPagesPutBodyAnyof1) -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof2",) +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_1014.py b/githubkit/versions/v2022_11_28/models/group_1014.py index c63807895..c6ce34a91 100644 --- a/githubkit/versions/v2022_11_28/models/group_1014.py +++ b/githubkit/versions/v2022_11_28/models/group_1014.py @@ -17,15 +17,14 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_1010 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 +from .group_1011 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 -class ReposOwnerRepoPagesPutBodyAnyof3(GitHubModel): - """ReposOwnerRepoPagesPutBodyAnyof3""" +class ReposOwnerRepoPagesPutBodyAnyof2(GitHubModel): + """ReposOwnerRepoPagesPutBodyAnyof2""" - 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)."', + 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, @@ -43,6 +42,6 @@ class ReposOwnerRepoPagesPutBodyAnyof3(GitHubModel): ] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoPagesPutBodyAnyof3) +model_rebuild(ReposOwnerRepoPagesPutBodyAnyof2) -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof3",) +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof2",) diff --git a/githubkit/versions/v2022_11_28/models/group_1015.py b/githubkit/versions/v2022_11_28/models/group_1015.py index f112c3414..bd7c77884 100644 --- a/githubkit/versions/v2022_11_28/models/group_1015.py +++ b/githubkit/versions/v2022_11_28/models/group_1015.py @@ -17,18 +17,19 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_1010 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 +from .group_1011 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 -class ReposOwnerRepoPagesPutBodyAnyof4(GitHubModel): - """ReposOwnerRepoPagesPutBodyAnyof4""" +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/pages/configuring-a-custom-domain-for-your-github-pages-site)."', ) - https_enforced: bool = Field( - description="Specify whether HTTPS should be enforced for the repository." + 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, @@ -42,6 +43,6 @@ class ReposOwnerRepoPagesPutBodyAnyof4(GitHubModel): ] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoPagesPutBodyAnyof4) +model_rebuild(ReposOwnerRepoPagesPutBodyAnyof3) -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof4",) +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof3",) diff --git a/githubkit/versions/v2022_11_28/models/group_1016.py b/githubkit/versions/v2022_11_28/models/group_1016.py index a34439e2e..668fdb7cd 100644 --- a/githubkit/versions/v2022_11_28/models/group_1016.py +++ b/githubkit/versions/v2022_11_28/models/group_1016.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from pydantic import Field @@ -17,22 +17,31 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_1011 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 -class ReposOwnerRepoPagesPostBodyPropSource(GitHubModel): - """ReposOwnerRepoPagesPostBodyPropSource - The source branch and directory used to publish your Pages site. - """ +class ReposOwnerRepoPagesPutBodyAnyof4(GitHubModel): + """ReposOwnerRepoPagesPutBodyAnyof4""" - branch: str = Field( - description="The repository branch used to publish your site's source files." + 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." ) - path: Missing[Literal["/", "/docs"]] = Field( + build_type: Missing[Literal["legacy", "workflow"]] = Field( default=UNSET, - description="The repository directory that includes the source files for the Pages site. Allowed paths are `/` or `/docs`. Default: `/`", + 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(ReposOwnerRepoPagesPostBodyPropSource) +model_rebuild(ReposOwnerRepoPagesPutBodyAnyof4) -__all__ = ("ReposOwnerRepoPagesPostBodyPropSource",) +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof4",) diff --git a/githubkit/versions/v2022_11_28/models/group_1017.py b/githubkit/versions/v2022_11_28/models/group_1017.py index 84e2797eb..a34439e2e 100644 --- a/githubkit/versions/v2022_11_28/models/group_1017.py +++ b/githubkit/versions/v2022_11_28/models/group_1017.py @@ -17,21 +17,22 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_1016 import ReposOwnerRepoPagesPostBodyPropSource +class ReposOwnerRepoPagesPostBodyPropSource(GitHubModel): + """ReposOwnerRepoPagesPostBodyPropSource -class ReposOwnerRepoPagesPostBodyAnyof0(GitHubModel): - """ReposOwnerRepoPagesPostBodyAnyof0""" + The source branch and directory used to publish your Pages site. + """ - build_type: Missing[Literal["legacy", "workflow"]] = Field( - default=UNSET, - description='The process in which the Page will be built. Possible values are `"legacy"` and `"workflow"`.', + branch: str = Field( + description="The repository branch used to publish your site's source files." ) - source: ReposOwnerRepoPagesPostBodyPropSource = Field( - description="The source branch and directory used to publish your Pages site." + 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(ReposOwnerRepoPagesPostBodyAnyof0) +model_rebuild(ReposOwnerRepoPagesPostBodyPropSource) -__all__ = ("ReposOwnerRepoPagesPostBodyAnyof0",) +__all__ = ("ReposOwnerRepoPagesPostBodyPropSource",) diff --git a/githubkit/versions/v2022_11_28/models/group_1018.py b/githubkit/versions/v2022_11_28/models/group_1018.py index 510bba10d..5a1d55fc0 100644 --- a/githubkit/versions/v2022_11_28/models/group_1018.py +++ b/githubkit/versions/v2022_11_28/models/group_1018.py @@ -17,21 +17,21 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_1016 import ReposOwnerRepoPagesPostBodyPropSource +from .group_1017 import ReposOwnerRepoPagesPostBodyPropSource -class ReposOwnerRepoPagesPostBodyAnyof1(GitHubModel): - """ReposOwnerRepoPagesPostBodyAnyof1""" +class ReposOwnerRepoPagesPostBodyAnyof0(GitHubModel): + """ReposOwnerRepoPagesPostBodyAnyof0""" - 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( + build_type: Missing[Literal["legacy", "workflow"]] = Field( default=UNSET, - description="The source branch and directory used to publish your Pages site.", + 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." ) -model_rebuild(ReposOwnerRepoPagesPostBodyAnyof1) +model_rebuild(ReposOwnerRepoPagesPostBodyAnyof0) -__all__ = ("ReposOwnerRepoPagesPostBodyAnyof1",) +__all__ = ("ReposOwnerRepoPagesPostBodyAnyof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_1019.py b/githubkit/versions/v2022_11_28/models/group_1019.py index 983710249..0e60f52fb 100644 --- a/githubkit/versions/v2022_11_28/models/group_1019.py +++ b/githubkit/versions/v2022_11_28/models/group_1019.py @@ -9,40 +9,29 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_1017 import ReposOwnerRepoPagesPostBodyPropSource -class ReposOwnerRepoPagesDeploymentsPostBody(GitHubModel): - """ReposOwnerRepoPagesDeploymentsPostBody - The object used to create GitHub Pages deployment - """ +class ReposOwnerRepoPagesPostBodyAnyof1(GitHubModel): + """ReposOwnerRepoPagesPostBodyAnyof1""" - 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.", + build_type: Literal["legacy", "workflow"] = Field( + description='The process in which the Page will be built. Possible values are `"legacy"` and `"workflow"`.' ) - environment: Missing[str] = Field( + source: Missing[ReposOwnerRepoPagesPostBodyPropSource] = 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." + description="The source branch and directory used to publish your Pages site.", ) -model_rebuild(ReposOwnerRepoPagesDeploymentsPostBody) +model_rebuild(ReposOwnerRepoPagesPostBodyAnyof1) -__all__ = ("ReposOwnerRepoPagesDeploymentsPostBody",) +__all__ = ("ReposOwnerRepoPagesPostBodyAnyof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_1020.py b/githubkit/versions/v2022_11_28/models/group_1020.py index c70eda7b0..983710249 100644 --- a/githubkit/versions/v2022_11_28/models/group_1020.py +++ b/githubkit/versions/v2022_11_28/models/group_1020.py @@ -11,17 +11,38 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200(GitHubModel): - """ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200""" +class ReposOwnerRepoPagesDeploymentsPostBody(GitHubModel): + """ReposOwnerRepoPagesDeploymentsPostBody - enabled: bool = Field( - description="Whether or not private vulnerability reporting is enabled for the repository." + 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(ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200) +model_rebuild(ReposOwnerRepoPagesDeploymentsPostBody) -__all__ = ("ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200",) +__all__ = ("ReposOwnerRepoPagesDeploymentsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1021.py b/githubkit/versions/v2022_11_28/models/group_1021.py index 64fb2be93..c70eda7b0 100644 --- a/githubkit/versions/v2022_11_28/models/group_1021.py +++ b/githubkit/versions/v2022_11_28/models/group_1021.py @@ -11,20 +11,17 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoProjectsPostBody(GitHubModel): - """ReposOwnerRepoProjectsPostBody""" +class ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200(GitHubModel): + """ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200""" - name: str = Field(description="The name of the project.") - body: Missing[str] = Field( - default=UNSET, description="The description of the project." + enabled: bool = Field( + description="Whether or not private vulnerability reporting is enabled for the repository." ) -model_rebuild(ReposOwnerRepoProjectsPostBody) +model_rebuild(ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200) -__all__ = ("ReposOwnerRepoProjectsPostBody",) +__all__ = ("ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_1022.py b/githubkit/versions/v2022_11_28/models/group_1022.py index edc2a9d3f..64fb2be93 100644 --- a/githubkit/versions/v2022_11_28/models/group_1022.py +++ b/githubkit/versions/v2022_11_28/models/group_1022.py @@ -9,23 +9,22 @@ from __future__ import annotations -from typing import List - from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0098 import CustomPropertyValue - -class ReposOwnerRepoPropertiesValuesPatchBody(GitHubModel): - """ReposOwnerRepoPropertiesValuesPatchBody""" +class ReposOwnerRepoProjectsPostBody(GitHubModel): + """ReposOwnerRepoProjectsPostBody""" - properties: List[CustomPropertyValue] = Field( - description="A list of custom property names and associated values to apply to the repositories." + name: str = Field(description="The name of the project.") + body: Missing[str] = Field( + default=UNSET, description="The description of the project." ) -model_rebuild(ReposOwnerRepoPropertiesValuesPatchBody) +model_rebuild(ReposOwnerRepoProjectsPostBody) -__all__ = ("ReposOwnerRepoPropertiesValuesPatchBody",) +__all__ = ("ReposOwnerRepoProjectsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1023.py b/githubkit/versions/v2022_11_28/models/group_1023.py index 3acd4d021..edc2a9d3f 100644 --- a/githubkit/versions/v2022_11_28/models/group_1023.py +++ b/githubkit/versions/v2022_11_28/models/group_1023.py @@ -9,47 +9,23 @@ from __future__ import annotations +from typing import List + from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0098 import CustomPropertyValue -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.", +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(ReposOwnerRepoPullsPostBody) +model_rebuild(ReposOwnerRepoPropertiesValuesPatchBody) -__all__ = ("ReposOwnerRepoPullsPostBody",) +__all__ = ("ReposOwnerRepoPropertiesValuesPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1024.py b/githubkit/versions/v2022_11_28/models/group_1024.py index b48ea50a0..3acd4d021 100644 --- a/githubkit/versions/v2022_11_28/models/group_1024.py +++ b/githubkit/versions/v2022_11_28/models/group_1024.py @@ -11,15 +11,45 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing 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",) +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_1025.py b/githubkit/versions/v2022_11_28/models/group_1025.py index 21b71134d..b48ea50a0 100644 --- a/githubkit/versions/v2022_11_28/models/group_1025.py +++ b/githubkit/versions/v2022_11_28/models/group_1025.py @@ -9,23 +9,17 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody(GitHubModel): - """ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody""" +class ReposOwnerRepoPullsCommentsCommentIdPatchBody(GitHubModel): + """ReposOwnerRepoPullsCommentsCommentIdPatchBody""" - 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." - ) + body: str = Field(description="The text of the reply to the review comment.") -model_rebuild(ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody) +model_rebuild(ReposOwnerRepoPullsCommentsCommentIdPatchBody) -__all__ = ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody",) +__all__ = ("ReposOwnerRepoPullsCommentsCommentIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1026.py b/githubkit/versions/v2022_11_28/models/group_1026.py index 1c64cabce..21b71134d 100644 --- a/githubkit/versions/v2022_11_28/models/group_1026.py +++ b/githubkit/versions/v2022_11_28/models/group_1026.py @@ -13,34 +13,19 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoPullsPullNumberPatchBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberPatchBody""" +class ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody(GitHubModel): + """ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody""" - 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.", - ) - 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.", + 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(ReposOwnerRepoPullsPullNumberPatchBody) +model_rebuild(ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody) -__all__ = ("ReposOwnerRepoPullsPullNumberPatchBody",) +__all__ = ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1027.py b/githubkit/versions/v2022_11_28/models/group_1027.py index a1c5168af..1c64cabce 100644 --- a/githubkit/versions/v2022_11_28/models/group_1027.py +++ b/githubkit/versions/v2022_11_28/models/group_1027.py @@ -18,48 +18,29 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoPullsPullNumberCodespacesPostBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberCodespacesPostBody""" +class ReposOwnerRepoPullsPullNumberPatchBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberPatchBody""" - 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 being deprecated.", - ) - client_ip: Missing[str] = Field( - default=UNSET, - description="IP for location auto-detection when proxying a request", + title: Missing[str] = Field( + default=UNSET, description="The title of the pull request." ) - machine: Missing[str] = Field( - default=UNSET, description="Machine type to use for this codespace" + body: Missing[str] = Field( + default=UNSET, description="The contents of the pull request." ) - devcontainer_path: Missing[str] = Field( + state: Missing[Literal["open", "closed"]] = Field( default=UNSET, - description="Path to devcontainer.json config to use for this codespace", + description="State of this Pull Request. Either `open` or `closed`.", ) - multi_repo_permissions_opt_out: Missing[bool] = Field( + base: Missing[str] = 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" + 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.", ) - retention_period_minutes: Missing[int] = Field( + maintainer_can_modify: Missing[bool] = 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="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(ReposOwnerRepoPullsPullNumberCodespacesPostBody) +model_rebuild(ReposOwnerRepoPullsPullNumberPatchBody) -__all__ = ("ReposOwnerRepoPullsPullNumberCodespacesPostBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1028.py b/githubkit/versions/v2022_11_28/models/group_1028.py index 00908b602..a1c5168af 100644 --- a/githubkit/versions/v2022_11_28/models/group_1028.py +++ b/githubkit/versions/v2022_11_28/models/group_1028.py @@ -18,45 +18,48 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoPullsPullNumberCommentsPostBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberCommentsPostBody""" +class ReposOwnerRepoPullsPullNumberCodespacesPostBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberCodespacesPostBody""" - 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( + location: Missing[str] = Field( default=UNSET, - description='**This parameter is deprecated. 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.', + description="The requested location for a new codespace. Best efforts are made to respect this upon creation. Assigned by IP if not provided.", ) - side: Missing[Literal["LEFT", "RIGHT"]] = Field( + geo: Missing[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] = 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.', + description="The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is being deprecated.", ) - line: Missing[int] = Field( + client_ip: Missing[str] = 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="IP for location auto-detection when proxying a request", + ) + machine: Missing[str] = Field( + default=UNSET, description="Machine type to use for this codespace" ) - start_line: Missing[int] = Field( + devcontainer_path: 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="Path to devcontainer.json config to use for this codespace", ) - start_side: Missing[Literal["LEFT", "RIGHT", "side"]] = Field( + multi_repo_permissions_opt_out: Missing[bool] = 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="Whether to authorize requested permissions from devcontainer.json", ) - in_reply_to: Missing[int] = Field( + working_directory: Missing[str] = Field( + default=UNSET, description="Working directory for this codespace" + ) + idle_timeout_minutes: 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.', + description="Time in minutes before codespace stops from inactivity", + ) + display_name: Missing[str] = Field( + default=UNSET, description="Display name for this codespace" ) - subject_type: Missing[Literal["line", "file"]] = Field( - default=UNSET, description="The level at which the comment is targeted." + 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(ReposOwnerRepoPullsPullNumberCommentsPostBody) +model_rebuild(ReposOwnerRepoPullsPullNumberCodespacesPostBody) -__all__ = ("ReposOwnerRepoPullsPullNumberCommentsPostBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberCodespacesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1029.py b/githubkit/versions/v2022_11_28/models/group_1029.py index 19ce96346..00908b602 100644 --- a/githubkit/versions/v2022_11_28/models/group_1029.py +++ b/githubkit/versions/v2022_11_28/models/group_1029.py @@ -9,17 +9,54 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody""" +class ReposOwnerRepoPullsPullNumberCommentsPostBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberCommentsPostBody""" body: str = Field(description="The text of the review comment.") - - -model_rebuild(ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody) - -__all__ = ("ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody",) + 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 deprecated. 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_1030.py b/githubkit/versions/v2022_11_28/models/group_1030.py index bc574dd95..19ce96346 100644 --- a/githubkit/versions/v2022_11_28/models/group_1030.py +++ b/githubkit/versions/v2022_11_28/models/group_1030.py @@ -9,33 +9,17 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoPullsPullNumberMergePutBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberMergePutBody""" +class ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody""" - 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." - ) + body: str = Field(description="The text of the review comment.") -model_rebuild(ReposOwnerRepoPullsPullNumberMergePutBody) +model_rebuild(ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody) -__all__ = ("ReposOwnerRepoPullsPullNumberMergePutBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1031.py b/githubkit/versions/v2022_11_28/models/group_1031.py index eaa87fc99..bc574dd95 100644 --- a/githubkit/versions/v2022_11_28/models/group_1031.py +++ b/githubkit/versions/v2022_11_28/models/group_1031.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.utils import UNSET @@ -16,13 +18,24 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoPullsPullNumberMergePutResponse405(GitHubModel): - """ReposOwnerRepoPullsPullNumberMergePutResponse405""" +class ReposOwnerRepoPullsPullNumberMergePutBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberMergePutBody""" - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) + 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." + ) -model_rebuild(ReposOwnerRepoPullsPullNumberMergePutResponse405) +model_rebuild(ReposOwnerRepoPullsPullNumberMergePutBody) -__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse405",) +__all__ = ("ReposOwnerRepoPullsPullNumberMergePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1032.py b/githubkit/versions/v2022_11_28/models/group_1032.py index ff106781d..eaa87fc99 100644 --- a/githubkit/versions/v2022_11_28/models/group_1032.py +++ b/githubkit/versions/v2022_11_28/models/group_1032.py @@ -16,13 +16,13 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoPullsPullNumberMergePutResponse409(GitHubModel): - """ReposOwnerRepoPullsPullNumberMergePutResponse409""" +class ReposOwnerRepoPullsPullNumberMergePutResponse405(GitHubModel): + """ReposOwnerRepoPullsPullNumberMergePutResponse405""" message: Missing[str] = Field(default=UNSET) documentation_url: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoPullsPullNumberMergePutResponse409) +model_rebuild(ReposOwnerRepoPullsPullNumberMergePutResponse405) -__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse409",) +__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse405",) diff --git a/githubkit/versions/v2022_11_28/models/group_1033.py b/githubkit/versions/v2022_11_28/models/group_1033.py index 1fa538765..ff106781d 100644 --- a/githubkit/versions/v2022_11_28/models/group_1033.py +++ b/githubkit/versions/v2022_11_28/models/group_1033.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import List - from pydantic import Field from githubkit.utils import UNSET @@ -18,17 +16,13 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0(GitHubModel): - """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0""" +class ReposOwnerRepoPullsPullNumberMergePutResponse409(GitHubModel): + """ReposOwnerRepoPullsPullNumberMergePutResponse409""" - 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." - ) + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0) +model_rebuild(ReposOwnerRepoPullsPullNumberMergePutResponse409) -__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0",) +__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse409",) diff --git a/githubkit/versions/v2022_11_28/models/group_1034.py b/githubkit/versions/v2022_11_28/models/group_1034.py index 6f77dbb5a..1fa538765 100644 --- a/githubkit/versions/v2022_11_28/models/group_1034.py +++ b/githubkit/versions/v2022_11_28/models/group_1034.py @@ -18,17 +18,17 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1(GitHubModel): - """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1""" +class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0(GitHubModel): + """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0""" - reviewers: Missing[List[str]] = Field( - default=UNSET, description="An array of user `login`s that will be requested." + reviewers: List[str] = Field( + 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." + team_reviewers: Missing[List[str]] = Field( + default=UNSET, description="An array of team `slug`s that will be requested." ) -model_rebuild(ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1) +model_rebuild(ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0) -__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1",) +__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_1035.py b/githubkit/versions/v2022_11_28/models/group_1035.py index 0adaf0241..6f77dbb5a 100644 --- a/githubkit/versions/v2022_11_28/models/group_1035.py +++ b/githubkit/versions/v2022_11_28/models/group_1035.py @@ -18,17 +18,17 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody""" +class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1(GitHubModel): + """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1""" - reviewers: List[str] = Field( - description="An array of user `login`s that will be removed." + reviewers: Missing[List[str]] = Field( + default=UNSET, 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 removed." + team_reviewers: List[str] = Field( + description="An array of team `slug`s that will be requested." ) -model_rebuild(ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody) +model_rebuild(ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1) -__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_1036.py b/githubkit/versions/v2022_11_28/models/group_1036.py index 85f6e83b1..0adaf0241 100644 --- a/githubkit/versions/v2022_11_28/models/group_1036.py +++ b/githubkit/versions/v2022_11_28/models/group_1036.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Literal +from typing import List from pydantic import Field @@ -18,50 +18,17 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoPullsPullNumberReviewsPostBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberReviewsPostBody""" +class ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody""" - 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.", + reviewers: List[str] = Field( + description="An array of user `login`s that will be removed." ) - 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.", + team_reviewers: Missing[List[str]] = Field( + default=UNSET, description="An array of team `slug`s that will be removed." ) - 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/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(ReposOwnerRepoPullsPullNumberReviewsPostBody) -model_rebuild(ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems) +model_rebuild(ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody) -__all__ = ( - "ReposOwnerRepoPullsPullNumberReviewsPostBody", - "ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems", -) +__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1037.py b/githubkit/versions/v2022_11_28/models/group_1037.py index 60600e7a7..85f6e83b1 100644 --- a/githubkit/versions/v2022_11_28/models/group_1037.py +++ b/githubkit/versions/v2022_11_28/models/group_1037.py @@ -9,17 +9,59 @@ from __future__ import annotations +from typing import List, Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody""" +class ReposOwnerRepoPullsPullNumberReviewsPostBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberReviewsPostBody""" + + 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/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""" - body: str = Field(description="The body text of the pull request review.") + 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(ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody) +model_rebuild(ReposOwnerRepoPullsPullNumberReviewsPostBody) +model_rebuild(ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems) -__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody",) +__all__ = ( + "ReposOwnerRepoPullsPullNumberReviewsPostBody", + "ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_1038.py b/githubkit/versions/v2022_11_28/models/group_1038.py index 857baf92a..60600e7a7 100644 --- a/githubkit/versions/v2022_11_28/models/group_1038.py +++ b/githubkit/versions/v2022_11_28/models/group_1038.py @@ -9,24 +9,17 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody""" +class ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody""" - message: str = Field( - description="The message for the pull request review dismissal" - ) - event: Missing[Literal["DISMISS"]] = Field(default=UNSET) + body: str = Field(description="The body text of the pull request review.") -model_rebuild(ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody) +model_rebuild(ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody) -__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1039.py b/githubkit/versions/v2022_11_28/models/group_1039.py index 63a7f87ba..857baf92a 100644 --- a/githubkit/versions/v2022_11_28/models/group_1039.py +++ b/githubkit/versions/v2022_11_28/models/group_1039.py @@ -18,17 +18,15 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody""" +class ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody""" - 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." + message: str = Field( + description="The message for the pull request review dismissal" ) + event: Missing[Literal["DISMISS"]] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody) +model_rebuild(ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody) -__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1040.py b/githubkit/versions/v2022_11_28/models/group_1040.py index 34c70f7f9..63a7f87ba 100644 --- a/githubkit/versions/v2022_11_28/models/group_1040.py +++ b/githubkit/versions/v2022_11_28/models/group_1040.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.utils import UNSET @@ -16,15 +18,17 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoPullsPullNumberUpdateBranchPutBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberUpdateBranchPutBody""" +class ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody""" - 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.", + 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." ) -model_rebuild(ReposOwnerRepoPullsPullNumberUpdateBranchPutBody) +model_rebuild(ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody) -__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1041.py b/githubkit/versions/v2022_11_28/models/group_1041.py index 862b6ba8f..34c70f7f9 100644 --- a/githubkit/versions/v2022_11_28/models/group_1041.py +++ b/githubkit/versions/v2022_11_28/models/group_1041.py @@ -16,13 +16,15 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202(GitHubModel): - """ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202""" +class ReposOwnerRepoPullsPullNumberUpdateBranchPutBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberUpdateBranchPutBody""" - message: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + 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.", + ) -model_rebuild(ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202) +model_rebuild(ReposOwnerRepoPullsPullNumberUpdateBranchPutBody) -__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202",) +__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1042.py b/githubkit/versions/v2022_11_28/models/group_1042.py index 333f37ec9..862b6ba8f 100644 --- a/githubkit/versions/v2022_11_28/models/group_1042.py +++ b/githubkit/versions/v2022_11_28/models/group_1042.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.utils import UNSET @@ -18,40 +16,13 @@ from githubkit.compat import GitHubModel, model_rebuild -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/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 ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202(GitHubModel): + """ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202""" + + message: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202) + +__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202",) diff --git a/githubkit/versions/v2022_11_28/models/group_1043.py b/githubkit/versions/v2022_11_28/models/group_1043.py index f49d56bca..333f37ec9 100644 --- a/githubkit/versions/v2022_11_28/models/group_1043.py +++ b/githubkit/versions/v2022_11_28/models/group_1043.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.utils import UNSET @@ -16,17 +18,40 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoReleasesAssetsAssetIdPatchBody(GitHubModel): - """ReposOwnerRepoReleasesAssetsAssetIdPatchBody""" +class ReposOwnerRepoReleasesPostBody(GitHubModel): + """ReposOwnerRepoReleasesPostBody""" - name: Missing[str] = Field(default=UNSET, description="The file name of the asset.") - label: Missing[str] = 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/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="An alternate short description of the asset. Used in place of the filename.", + 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.", ) - state: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoReleasesAssetsAssetIdPatchBody) +model_rebuild(ReposOwnerRepoReleasesPostBody) -__all__ = ("ReposOwnerRepoReleasesAssetsAssetIdPatchBody",) +__all__ = ("ReposOwnerRepoReleasesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1044.py b/githubkit/versions/v2022_11_28/models/group_1044.py index 3944a35e1..f49d56bca 100644 --- a/githubkit/versions/v2022_11_28/models/group_1044.py +++ b/githubkit/versions/v2022_11_28/models/group_1044.py @@ -16,26 +16,17 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoReleasesGenerateNotesPostBody(GitHubModel): - """ReposOwnerRepoReleasesGenerateNotesPostBody""" +class ReposOwnerRepoReleasesAssetsAssetIdPatchBody(GitHubModel): + """ReposOwnerRepoReleasesAssetsAssetIdPatchBody""" - 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( + name: Missing[str] = Field(default=UNSET, description="The file name of the asset.") + label: 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.", + description="An alternate short description of the asset. Used in place of the filename.", ) + state: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoReleasesGenerateNotesPostBody) +model_rebuild(ReposOwnerRepoReleasesAssetsAssetIdPatchBody) -__all__ = ("ReposOwnerRepoReleasesGenerateNotesPostBody",) +__all__ = ("ReposOwnerRepoReleasesAssetsAssetIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1045.py b/githubkit/versions/v2022_11_28/models/group_1045.py index 297752b28..3944a35e1 100644 --- a/githubkit/versions/v2022_11_28/models/group_1045.py +++ b/githubkit/versions/v2022_11_28/models/group_1045.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.utils import UNSET @@ -18,36 +16,26 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoReleasesReleaseIdPatchBody(GitHubModel): - """ReposOwnerRepoReleasesReleaseIdPatchBody""" +class ReposOwnerRepoReleasesGenerateNotesPostBody(GitHubModel): + """ReposOwnerRepoReleasesGenerateNotesPostBody""" - 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." + tag_name: str = Field( + description="The tag name for the release. This can be an existing tag or a new one." ) - draft: Missing[bool] = Field( - default=UNSET, - description="`true` makes the release a draft, and `false` publishes the release.", - ) - prerelease: Missing[bool] = Field( + target_commitish: Missing[str] = Field( default=UNSET, - description="`true` to identify the release as a prerelease, `false` to identify the release as a full release.", + 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.", ) - make_latest: Missing[Literal["true", "false", "legacy"]] = Field( + previous_tag_name: Missing[str] = 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="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.", ) - discussion_category_name: Missing[str] = Field( + configuration_file_path: 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)."', + 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(ReposOwnerRepoReleasesReleaseIdPatchBody) +model_rebuild(ReposOwnerRepoReleasesGenerateNotesPostBody) -__all__ = ("ReposOwnerRepoReleasesReleaseIdPatchBody",) +__all__ = ("ReposOwnerRepoReleasesGenerateNotesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1046.py b/githubkit/versions/v2022_11_28/models/group_1046.py index 8f99969f6..297752b28 100644 --- a/githubkit/versions/v2022_11_28/models/group_1046.py +++ b/githubkit/versions/v2022_11_28/models/group_1046.py @@ -13,17 +13,41 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoReleasesReleaseIdReactionsPostBody(GitHubModel): - """ReposOwnerRepoReleasesReleaseIdReactionsPostBody""" +class ReposOwnerRepoReleasesReleaseIdPatchBody(GitHubModel): + """ReposOwnerRepoReleasesReleaseIdPatchBody""" - 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." + 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(ReposOwnerRepoReleasesReleaseIdReactionsPostBody) +model_rebuild(ReposOwnerRepoReleasesReleaseIdPatchBody) -__all__ = ("ReposOwnerRepoReleasesReleaseIdReactionsPostBody",) +__all__ = ("ReposOwnerRepoReleasesReleaseIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1047.py b/githubkit/versions/v2022_11_28/models/group_1047.py index 6f918765e..8f99969f6 100644 --- a/githubkit/versions/v2022_11_28/models/group_1047.py +++ b/githubkit/versions/v2022_11_28/models/group_1047.py @@ -9,87 +9,21 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0115 import RepositoryRuleUpdate -from .group_0139 import RepositoryRuleOneof17 -from .group_0135 import RepositoryRuleWorkflows -from .group_0120 import RepositoryRulePullRequest -from .group_0137 import RepositoryRuleCodeScanning -from .group_0103 import RepositoryRulesetConditions -from .group_0102 import RepositoryRulesetBypassActor -from .group_0132 import RepositoryRuleTagNamePattern -from .group_0130 import RepositoryRuleBranchNamePattern -from .group_0118 import RepositoryRuleRequiredDeployments -from .group_0122 import RepositoryRuleRequiredStatusChecks -from .group_0124 import RepositoryRuleCommitMessagePattern -from .group_0128 import RepositoryRuleCommitterEmailPattern -from .group_0126 import RepositoryRuleCommitAuthorEmailPattern -from .group_0117 import RepositoryRuleOneof15, RepositoryRuleRequiredLinearHistory -from .group_0114 import ( - RepositoryRuleOneof14, - RepositoryRuleOneof16, - RepositoryRuleCreation, - RepositoryRuleDeletion, - RepositoryRuleNonFastForward, - RepositoryRuleRequiredSignatures, -) +class ReposOwnerRepoReleasesReleaseIdReactionsPostBody(GitHubModel): + """ReposOwnerRepoReleasesReleaseIdReactionsPostBody""" -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\n\n**Note**: The `push` target is in beta and is subject to change.", - ) - 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", + 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." ) - rules: Missing[ - List[ - Union[ - RepositoryRuleCreation, - RepositoryRuleUpdate, - RepositoryRuleDeletion, - RepositoryRuleRequiredLinearHistory, - RepositoryRuleRequiredDeployments, - RepositoryRuleRequiredSignatures, - RepositoryRulePullRequest, - RepositoryRuleRequiredStatusChecks, - RepositoryRuleNonFastForward, - RepositoryRuleCommitMessagePattern, - RepositoryRuleCommitAuthorEmailPattern, - RepositoryRuleCommitterEmailPattern, - RepositoryRuleBranchNamePattern, - RepositoryRuleTagNamePattern, - RepositoryRuleOneof14, - RepositoryRuleOneof15, - RepositoryRuleOneof16, - RepositoryRuleOneof17, - RepositoryRuleWorkflows, - RepositoryRuleCodeScanning, - ] - ] - ] = Field(default=UNSET, description="An array of rules within the ruleset.") -model_rebuild(ReposOwnerRepoRulesetsPostBody) +model_rebuild(ReposOwnerRepoReleasesReleaseIdReactionsPostBody) -__all__ = ("ReposOwnerRepoRulesetsPostBody",) +__all__ = ("ReposOwnerRepoReleasesReleaseIdReactionsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1048.py b/githubkit/versions/v2022_11_28/models/group_1048.py index 4d828c114..6f918765e 100644 --- a/githubkit/versions/v2022_11_28/models/group_1048.py +++ b/githubkit/versions/v2022_11_28/models/group_1048.py @@ -42,17 +42,16 @@ ) -class ReposOwnerRepoRulesetsRulesetIdPutBody(GitHubModel): - """ReposOwnerRepoRulesetsRulesetIdPutBody""" +class ReposOwnerRepoRulesetsPostBody(GitHubModel): + """ReposOwnerRepoRulesetsPostBody""" - name: Missing[str] = Field(default=UNSET, description="The name of the ruleset.") + name: str = Field(description="The name of the ruleset.") target: Missing[Literal["branch", "tag", "push"]] = Field( default=UNSET, description="The target of the ruleset\n\n**Note**: The `push` target is in beta and is subject to change.", ) - 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).", + 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, @@ -91,6 +90,6 @@ class ReposOwnerRepoRulesetsRulesetIdPutBody(GitHubModel): ] = Field(default=UNSET, description="An array of rules within the ruleset.") -model_rebuild(ReposOwnerRepoRulesetsRulesetIdPutBody) +model_rebuild(ReposOwnerRepoRulesetsPostBody) -__all__ = ("ReposOwnerRepoRulesetsRulesetIdPutBody",) +__all__ = ("ReposOwnerRepoRulesetsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1049.py b/githubkit/versions/v2022_11_28/models/group_1049.py index e2b827b1b..4d828c114 100644 --- a/githubkit/versions/v2022_11_28/models/group_1049.py +++ b/githubkit/versions/v2022_11_28/models/group_1049.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field @@ -17,25 +17,80 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0115 import RepositoryRuleUpdate +from .group_0139 import RepositoryRuleOneof17 +from .group_0135 import RepositoryRuleWorkflows +from .group_0120 import RepositoryRulePullRequest +from .group_0137 import RepositoryRuleCodeScanning +from .group_0103 import RepositoryRulesetConditions +from .group_0102 import RepositoryRulesetBypassActor +from .group_0132 import RepositoryRuleTagNamePattern +from .group_0130 import RepositoryRuleBranchNamePattern +from .group_0118 import RepositoryRuleRequiredDeployments +from .group_0122 import RepositoryRuleRequiredStatusChecks +from .group_0124 import RepositoryRuleCommitMessagePattern +from .group_0128 import RepositoryRuleCommitterEmailPattern +from .group_0126 import RepositoryRuleCommitAuthorEmailPattern +from .group_0117 import RepositoryRuleOneof15, RepositoryRuleRequiredLinearHistory +from .group_0114 import ( + RepositoryRuleOneof14, + RepositoryRuleOneof16, + RepositoryRuleCreation, + RepositoryRuleDeletion, + RepositoryRuleNonFastForward, + RepositoryRuleRequiredSignatures, +) -class ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody(GitHubModel): - """ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody""" - 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`." +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\n\n**Note**: The `push` target is in beta and is subject to change.", + ) + 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).", ) - resolution: Missing[ - Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] - ] = Field( + bypass_actors: Missing[List[RepositoryRulesetBypassActor]] = Field( default=UNSET, - description="**Required when the `state` is `resolved`.** The reason for resolving the alert.", + description="The actors that can bypass the rules in this ruleset", ) - resolution_comment: Missing[Union[str, None]] = Field( + conditions: Missing[RepositoryRulesetConditions] = Field( default=UNSET, - description="An optional comment when closing an alert. Cannot be updated or deleted. Must be `null` when changing `state` to `open`.", + title="Repository ruleset conditions for ref names", + description="Parameters for a repository ruleset ref name condition", ) + rules: Missing[ + List[ + Union[ + RepositoryRuleCreation, + RepositoryRuleUpdate, + RepositoryRuleDeletion, + RepositoryRuleRequiredLinearHistory, + RepositoryRuleRequiredDeployments, + RepositoryRuleRequiredSignatures, + RepositoryRulePullRequest, + RepositoryRuleRequiredStatusChecks, + RepositoryRuleNonFastForward, + RepositoryRuleCommitMessagePattern, + RepositoryRuleCommitAuthorEmailPattern, + RepositoryRuleCommitterEmailPattern, + RepositoryRuleBranchNamePattern, + RepositoryRuleTagNamePattern, + RepositoryRuleOneof14, + RepositoryRuleOneof15, + RepositoryRuleOneof16, + RepositoryRuleOneof17, + RepositoryRuleWorkflows, + RepositoryRuleCodeScanning, + ] + ] + ] = Field(default=UNSET, description="An array of rules within the ruleset.") -model_rebuild(ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody) +model_rebuild(ReposOwnerRepoRulesetsRulesetIdPutBody) -__all__ = ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody",) +__all__ = ("ReposOwnerRepoRulesetsRulesetIdPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1050.py b/githubkit/versions/v2022_11_28/models/group_1050.py index c68c08211..e2b827b1b 100644 --- a/githubkit/versions/v2022_11_28/models/group_1050.py +++ b/githubkit/versions/v2022_11_28/models/group_1050.py @@ -18,25 +18,24 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoStatusesShaPostBody(GitHubModel): - """ReposOwnerRepoStatusesShaPostBody""" +class ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody(GitHubModel): + """ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody""" - state: Literal["error", "failure", "pending", "success"] = Field( - description="The state of the status." + 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`." ) - target_url: Missing[Union[str, None]] = Field( + resolution: Missing[ + Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] + ] = 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="**Required when the `state` is `resolved`.** The reason for resolving the alert.", ) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="A short description of the status." - ) - context: Missing[str] = Field( + resolution_comment: Missing[Union[str, None]] = Field( default=UNSET, - description="A string label to differentiate this status from the status of other systems. This field is case-insensitive.", + description="An optional comment when closing an alert. Cannot be updated or deleted. Must be `null` when changing `state` to `open`.", ) -model_rebuild(ReposOwnerRepoStatusesShaPostBody) +model_rebuild(ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody) -__all__ = ("ReposOwnerRepoStatusesShaPostBody",) +__all__ = ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1051.py b/githubkit/versions/v2022_11_28/models/group_1051.py index 140c5808c..c68c08211 100644 --- a/githubkit/versions/v2022_11_28/models/group_1051.py +++ b/githubkit/versions/v2022_11_28/models/group_1051.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Union, Literal + from pydantic import Field from githubkit.utils import UNSET @@ -16,19 +18,25 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoSubscriptionPutBody(GitHubModel): - """ReposOwnerRepoSubscriptionPutBody""" +class ReposOwnerRepoStatusesShaPostBody(GitHubModel): + """ReposOwnerRepoStatusesShaPostBody""" - subscribed: 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="Determines if notifications should be received from this repository.", + 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." ) - ignored: Missing[bool] = Field( + context: Missing[str] = Field( default=UNSET, - description="Determines if all notifications should be blocked from this repository.", + description="A string label to differentiate this status from the status of other systems. This field is case-insensitive.", ) -model_rebuild(ReposOwnerRepoSubscriptionPutBody) +model_rebuild(ReposOwnerRepoStatusesShaPostBody) -__all__ = ("ReposOwnerRepoSubscriptionPutBody",) +__all__ = ("ReposOwnerRepoStatusesShaPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1052.py b/githubkit/versions/v2022_11_28/models/group_1052.py index 59aae89ec..140c5808c 100644 --- a/githubkit/versions/v2022_11_28/models/group_1052.py +++ b/githubkit/versions/v2022_11_28/models/group_1052.py @@ -11,17 +11,24 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoTagsProtectionPostBody(GitHubModel): - """ReposOwnerRepoTagsProtectionPostBody""" +class ReposOwnerRepoSubscriptionPutBody(GitHubModel): + """ReposOwnerRepoSubscriptionPutBody""" - pattern: str = Field( - description="An optional glob pattern to match against when enforcing tag protection." + 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(ReposOwnerRepoTagsProtectionPostBody) +model_rebuild(ReposOwnerRepoSubscriptionPutBody) -__all__ = ("ReposOwnerRepoTagsProtectionPostBody",) +__all__ = ("ReposOwnerRepoSubscriptionPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1053.py b/githubkit/versions/v2022_11_28/models/group_1053.py index e248ddcbd..59aae89ec 100644 --- a/githubkit/versions/v2022_11_28/models/group_1053.py +++ b/githubkit/versions/v2022_11_28/models/group_1053.py @@ -9,21 +9,19 @@ from __future__ import annotations -from typing import List - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoTopicsPutBody(GitHubModel): - """ReposOwnerRepoTopicsPutBody""" +class ReposOwnerRepoTagsProtectionPostBody(GitHubModel): + """ReposOwnerRepoTagsProtectionPostBody""" - 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` cannot contain uppercase letters." + pattern: str = Field( + description="An optional glob pattern to match against when enforcing tag protection." ) -model_rebuild(ReposOwnerRepoTopicsPutBody) +model_rebuild(ReposOwnerRepoTagsProtectionPostBody) -__all__ = ("ReposOwnerRepoTopicsPutBody",) +__all__ = ("ReposOwnerRepoTagsProtectionPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1054.py b/githubkit/versions/v2022_11_28/models/group_1054.py index 8e53926f6..e248ddcbd 100644 --- a/githubkit/versions/v2022_11_28/models/group_1054.py +++ b/githubkit/versions/v2022_11_28/models/group_1054.py @@ -13,26 +13,17 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoTransferPostBody(GitHubModel): - """ReposOwnerRepoTransferPostBody""" +class ReposOwnerRepoTopicsPutBody(GitHubModel): + """ReposOwnerRepoTopicsPutBody""" - 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.", + 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` cannot contain uppercase letters." ) -model_rebuild(ReposOwnerRepoTransferPostBody) +model_rebuild(ReposOwnerRepoTopicsPutBody) -__all__ = ("ReposOwnerRepoTransferPostBody",) +__all__ = ("ReposOwnerRepoTopicsPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1055.py b/githubkit/versions/v2022_11_28/models/group_1055.py index a7818cc81..8e53926f6 100644 --- a/githubkit/versions/v2022_11_28/models/group_1055.py +++ b/githubkit/versions/v2022_11_28/models/group_1055.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import List + from pydantic import Field from githubkit.utils import UNSET @@ -16,27 +18,21 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposTemplateOwnerTemplateRepoGeneratePostBody(GitHubModel): - """ReposTemplateOwnerTemplateRepoGeneratePostBody""" +class ReposOwnerRepoTransferPostBody(GitHubModel): + """ReposOwnerRepoTransferPostBody""" - 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.", + new_owner: str = Field( + description="The username or organization name the repository will be transferred to." ) - 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`.", + new_name: Missing[str] = Field( + default=UNSET, description="The new name to be given to the repository." ) - private: Missing[bool] = Field( + team_ids: Missing[List[int]] = Field( default=UNSET, - description="Either `true` to create a new private repository or `false` to create a new public one.", + description="ID of the team or teams to add to the repository. Teams can only be added to organization-owned repositories.", ) -model_rebuild(ReposTemplateOwnerTemplateRepoGeneratePostBody) +model_rebuild(ReposOwnerRepoTransferPostBody) -__all__ = ("ReposTemplateOwnerTemplateRepoGeneratePostBody",) +__all__ = ("ReposOwnerRepoTransferPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1056.py b/githubkit/versions/v2022_11_28/models/group_1056.py index ff25ca816..a7818cc81 100644 --- a/githubkit/versions/v2022_11_28/models/group_1056.py +++ b/githubkit/versions/v2022_11_28/models/group_1056.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Union, Literal - from pydantic import Field from githubkit.utils import UNSET @@ -18,32 +16,27 @@ from githubkit.compat import GitHubModel, model_rebuild -class TeamsTeamIdPatchBody(GitHubModel): - """TeamsTeamIdPatchBody""" +class ReposTemplateOwnerTemplateRepoGeneratePostBody(GitHubModel): + """ReposTemplateOwnerTemplateRepoGeneratePostBody""" - 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( + owner: Missing[str] = 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 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.", ) - 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.", + name: str = Field(description="The name of the new repository.") + description: Missing[str] = Field( + default=UNSET, description="A short description of the new repository." ) - permission: Missing[Literal["pull", "push", "admin"]] = Field( + include_all_branches: Missing[bool] = Field( default=UNSET, - description="**Deprecated**. The permission that new repositories will be added to the team with when none is specified.", + 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`.", ) - parent_team_id: Missing[Union[int, None]] = Field( - default=UNSET, description="The ID of a team to set as the parent team." + 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(TeamsTeamIdPatchBody) +model_rebuild(ReposTemplateOwnerTemplateRepoGeneratePostBody) -__all__ = ("TeamsTeamIdPatchBody",) +__all__ = ("ReposTemplateOwnerTemplateRepoGeneratePostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1057.py b/githubkit/versions/v2022_11_28/models/group_1057.py index 9e0151a61..ff25ca816 100644 --- a/githubkit/versions/v2022_11_28/models/group_1057.py +++ b/githubkit/versions/v2022_11_28/models/group_1057.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Union, Literal + from pydantic import Field from githubkit.utils import UNSET @@ -16,17 +18,32 @@ from githubkit.compat import GitHubModel, model_rebuild -class TeamsTeamIdDiscussionsPostBody(GitHubModel): - """TeamsTeamIdDiscussionsPostBody""" +class TeamsTeamIdPatchBody(GitHubModel): + """TeamsTeamIdPatchBody""" - title: str = Field(description="The discussion post's title.") - body: str = Field(description="The discussion post's body text.") - private: Missing[bool] = Field( + 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="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="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="**Deprecated**. 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(TeamsTeamIdDiscussionsPostBody) +model_rebuild(TeamsTeamIdPatchBody) -__all__ = ("TeamsTeamIdDiscussionsPostBody",) +__all__ = ("TeamsTeamIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1058.py b/githubkit/versions/v2022_11_28/models/group_1058.py index 8c9998ba6..9e0151a61 100644 --- a/githubkit/versions/v2022_11_28/models/group_1058.py +++ b/githubkit/versions/v2022_11_28/models/group_1058.py @@ -16,17 +16,17 @@ from githubkit.compat import GitHubModel, model_rebuild -class TeamsTeamIdDiscussionsDiscussionNumberPatchBody(GitHubModel): - """TeamsTeamIdDiscussionsDiscussionNumberPatchBody""" - - 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." +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.", ) -model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberPatchBody) +model_rebuild(TeamsTeamIdDiscussionsPostBody) -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberPatchBody",) +__all__ = ("TeamsTeamIdDiscussionsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1059.py b/githubkit/versions/v2022_11_28/models/group_1059.py index 2333d1363..8c9998ba6 100644 --- a/githubkit/versions/v2022_11_28/models/group_1059.py +++ b/githubkit/versions/v2022_11_28/models/group_1059.py @@ -11,15 +11,22 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody(GitHubModel): - """TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody""" +class TeamsTeamIdDiscussionsDiscussionNumberPatchBody(GitHubModel): + """TeamsTeamIdDiscussionsDiscussionNumberPatchBody""" - body: str = Field(description="The discussion comment's body text.") + 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(TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody) +model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberPatchBody) -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody",) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1060.py b/githubkit/versions/v2022_11_28/models/group_1060.py index a44a260ff..2333d1363 100644 --- a/githubkit/versions/v2022_11_28/models/group_1060.py +++ b/githubkit/versions/v2022_11_28/models/group_1060.py @@ -14,12 +14,12 @@ from githubkit.compat import GitHubModel, model_rebuild -class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody(GitHubModel): - """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" +class TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody(GitHubModel): + """TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody""" body: str = Field(description="The discussion comment's body text.") -model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody) +model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody) -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody",) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1061.py b/githubkit/versions/v2022_11_28/models/group_1061.py index df888d74e..a44a260ff 100644 --- a/githubkit/versions/v2022_11_28/models/group_1061.py +++ b/githubkit/versions/v2022_11_28/models/group_1061.py @@ -9,29 +9,17 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody( - GitHubModel -): - """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody""" +class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody(GitHubModel): + """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" - 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." - ) + body: str = Field(description="The discussion comment's body text.") -model_rebuild( - TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody -) +model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody) -__all__ = ( - "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody", -) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1062.py b/githubkit/versions/v2022_11_28/models/group_1062.py index 1657765ee..df888d74e 100644 --- a/githubkit/versions/v2022_11_28/models/group_1062.py +++ b/githubkit/versions/v2022_11_28/models/group_1062.py @@ -16,16 +16,22 @@ from githubkit.compat import GitHubModel, model_rebuild -class TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody(GitHubModel): - """TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody""" +class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody( + GitHubModel +): + """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody""" 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." + description="The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the team discussion comment." ) -model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody) +model_rebuild( + TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody +) -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody",) +__all__ = ( + "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody", +) diff --git a/githubkit/versions/v2022_11_28/models/group_1063.py b/githubkit/versions/v2022_11_28/models/group_1063.py index 913551bc8..1657765ee 100644 --- a/githubkit/versions/v2022_11_28/models/group_1063.py +++ b/githubkit/versions/v2022_11_28/models/group_1063.py @@ -13,19 +13,19 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class TeamsTeamIdMembershipsUsernamePutBody(GitHubModel): - """TeamsTeamIdMembershipsUsernamePutBody""" +class TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody(GitHubModel): + """TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody""" - role: Missing[Literal["member", "maintainer"]] = Field( - default=UNSET, description="The role that this user should have in the team." + 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(TeamsTeamIdMembershipsUsernamePutBody) +model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody) -__all__ = ("TeamsTeamIdMembershipsUsernamePutBody",) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1064.py b/githubkit/versions/v2022_11_28/models/group_1064.py index 7e46c7317..913551bc8 100644 --- a/githubkit/versions/v2022_11_28/models/group_1064.py +++ b/githubkit/versions/v2022_11_28/models/group_1064.py @@ -18,15 +18,14 @@ from githubkit.compat import GitHubModel, model_rebuild -class TeamsTeamIdProjectsProjectIdPutBody(GitHubModel): - """TeamsTeamIdProjectsProjectIdPutBody""" +class TeamsTeamIdMembershipsUsernamePutBody(GitHubModel): + """TeamsTeamIdMembershipsUsernamePutBody""" - 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).\"", + role: Missing[Literal["member", "maintainer"]] = Field( + default=UNSET, description="The role that this user should have in the team." ) -model_rebuild(TeamsTeamIdProjectsProjectIdPutBody) +model_rebuild(TeamsTeamIdMembershipsUsernamePutBody) -__all__ = ("TeamsTeamIdProjectsProjectIdPutBody",) +__all__ = ("TeamsTeamIdMembershipsUsernamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1065.py b/githubkit/versions/v2022_11_28/models/group_1065.py index 6162fd16b..7e46c7317 100644 --- a/githubkit/versions/v2022_11_28/models/group_1065.py +++ b/githubkit/versions/v2022_11_28/models/group_1065.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.utils import UNSET @@ -16,13 +18,15 @@ from githubkit.compat import GitHubModel, model_rebuild -class TeamsTeamIdProjectsProjectIdPutResponse403(GitHubModel): - """TeamsTeamIdProjectsProjectIdPutResponse403""" +class TeamsTeamIdProjectsProjectIdPutBody(GitHubModel): + """TeamsTeamIdProjectsProjectIdPutBody""" - message: Missing[str] = Field(default=UNSET) - documentation_url: 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(TeamsTeamIdProjectsProjectIdPutResponse403) +model_rebuild(TeamsTeamIdProjectsProjectIdPutBody) -__all__ = ("TeamsTeamIdProjectsProjectIdPutResponse403",) +__all__ = ("TeamsTeamIdProjectsProjectIdPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1066.py b/githubkit/versions/v2022_11_28/models/group_1066.py index 90c3c572e..6162fd16b 100644 --- a/githubkit/versions/v2022_11_28/models/group_1066.py +++ b/githubkit/versions/v2022_11_28/models/group_1066.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.utils import UNSET @@ -18,15 +16,13 @@ from githubkit.compat import GitHubModel, model_rebuild -class TeamsTeamIdReposOwnerRepoPutBody(GitHubModel): - """TeamsTeamIdReposOwnerRepoPutBody""" +class TeamsTeamIdProjectsProjectIdPutResponse403(GitHubModel): + """TeamsTeamIdProjectsProjectIdPutResponse403""" - 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.", - ) + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) -model_rebuild(TeamsTeamIdReposOwnerRepoPutBody) +model_rebuild(TeamsTeamIdProjectsProjectIdPutResponse403) -__all__ = ("TeamsTeamIdReposOwnerRepoPutBody",) +__all__ = ("TeamsTeamIdProjectsProjectIdPutResponse403",) diff --git a/githubkit/versions/v2022_11_28/models/group_1067.py b/githubkit/versions/v2022_11_28/models/group_1067.py index db0d2249c..90c3c572e 100644 --- a/githubkit/versions/v2022_11_28/models/group_1067.py +++ b/githubkit/versions/v2022_11_28/models/group_1067.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Literal from pydantic import Field @@ -18,33 +18,15 @@ from githubkit.compat import GitHubModel, model_rebuild -class UserPatchBody(GitHubModel): - """UserPatchBody""" +class TeamsTeamIdReposOwnerRepoPutBody(GitHubModel): + """TeamsTeamIdReposOwnerRepoPutBody""" - 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." + 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.", ) -model_rebuild(UserPatchBody) +model_rebuild(TeamsTeamIdReposOwnerRepoPutBody) -__all__ = ("UserPatchBody",) +__all__ = ("TeamsTeamIdReposOwnerRepoPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1068.py b/githubkit/versions/v2022_11_28/models/group_1068.py index d94c6a295..db0d2249c 100644 --- a/githubkit/versions/v2022_11_28/models/group_1068.py +++ b/githubkit/versions/v2022_11_28/models/group_1068.py @@ -9,22 +9,42 @@ from __future__ import annotations -from typing import List +from typing import Union from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0078 import Codespace - -class UserCodespacesGetResponse200(GitHubModel): - """UserCodespacesGetResponse200""" - - total_count: int = Field() - codespaces: List[Codespace] = Field() - - -model_rebuild(UserCodespacesGetResponse200) - -__all__ = ("UserCodespacesGetResponse200",) +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_1069.py b/githubkit/versions/v2022_11_28/models/group_1069.py index a33f8e1b9..d94c6a295 100644 --- a/githubkit/versions/v2022_11_28/models/group_1069.py +++ b/githubkit/versions/v2022_11_28/models/group_1069.py @@ -9,62 +9,22 @@ from __future__ import annotations -from typing import Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0078 import Codespace -class UserCodespacesPostBodyOneof0(GitHubModel): - """UserCodespacesPostBodyOneof0""" - 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 being deprecated.", - ) - 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).", - ) +class UserCodespacesGetResponse200(GitHubModel): + """UserCodespacesGetResponse200""" + total_count: int = Field() + codespaces: List[Codespace] = Field() -model_rebuild(UserCodespacesPostBodyOneof0) -__all__ = ("UserCodespacesPostBodyOneof0",) +model_rebuild(UserCodespacesGetResponse200) + +__all__ = ("UserCodespacesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_1070.py b/githubkit/versions/v2022_11_28/models/group_1070.py index b9b4defa0..a33f8e1b9 100644 --- a/githubkit/versions/v2022_11_28/models/group_1070.py +++ b/githubkit/versions/v2022_11_28/models/group_1070.py @@ -18,11 +18,13 @@ from githubkit.compat import GitHubModel, model_rebuild -class UserCodespacesPostBodyOneof1(GitHubModel): - """UserCodespacesPostBodyOneof1""" +class UserCodespacesPostBodyOneof0(GitHubModel): + """UserCodespacesPostBodyOneof0""" - pull_request: UserCodespacesPostBodyOneof1PropPullRequest = Field( - description="Pull request number for this codespace" + 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, @@ -32,6 +34,10 @@ class UserCodespacesPostBodyOneof1(GitHubModel): default=UNSET, description="The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is being deprecated.", ) + 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" ) @@ -39,6 +45,10 @@ class UserCodespacesPostBodyOneof1(GitHubModel): 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" ) @@ -46,22 +56,15 @@ class UserCodespacesPostBodyOneof1(GitHubModel): 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).", + ) -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(UserCodespacesPostBodyOneof0) -__all__ = ( - "UserCodespacesPostBodyOneof1", - "UserCodespacesPostBodyOneof1PropPullRequest", -) +__all__ = ("UserCodespacesPostBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_1071.py b/githubkit/versions/v2022_11_28/models/group_1071.py index 5d7718128..b9b4defa0 100644 --- a/githubkit/versions/v2022_11_28/models/group_1071.py +++ b/githubkit/versions/v2022_11_28/models/group_1071.py @@ -9,46 +9,59 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal +from typing import Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class UserCodespacesSecretsGetResponse200(GitHubModel): - """UserCodespacesSecretsGetResponse200""" +class UserCodespacesPostBodyOneof1(GitHubModel): + """UserCodespacesPostBodyOneof1""" - total_count: int = Field() - secrets: List[CodespacesSecret] = Field() + 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 being deprecated.", + ) + 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 CodespacesSecret(GitHubModel): - """Codespaces Secret +class UserCodespacesPostBodyOneof1PropPullRequest(GitHubModel): + """UserCodespacesPostBodyOneof1PropPullRequest - Secrets for a GitHub Codespace. + Pull request number for this 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" - ) + pull_request_number: int = Field(description="Pull request number") + repository_id: int = Field(description="Repository id for this codespace") -model_rebuild(UserCodespacesSecretsGetResponse200) -model_rebuild(CodespacesSecret) +model_rebuild(UserCodespacesPostBodyOneof1) +model_rebuild(UserCodespacesPostBodyOneof1PropPullRequest) __all__ = ( - "UserCodespacesSecretsGetResponse200", - "CodespacesSecret", + "UserCodespacesPostBodyOneof1", + "UserCodespacesPostBodyOneof1PropPullRequest", ) diff --git a/githubkit/versions/v2022_11_28/models/group_1072.py b/githubkit/versions/v2022_11_28/models/group_1072.py index 9fb8ed282..5d7718128 100644 --- a/githubkit/versions/v2022_11_28/models/group_1072.py +++ b/githubkit/versions/v2022_11_28/models/group_1072.py @@ -9,30 +9,46 @@ from __future__ import annotations -from typing import List, Union +from datetime import datetime +from typing import List, Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class UserCodespacesSecretsSecretNamePutBody(GitHubModel): - """UserCodespacesSecretsSecretNamePutBody""" +class UserCodespacesSecretsGetResponse200(GitHubModel): + """UserCodespacesSecretsGetResponse200""" - 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.", + 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" ) - 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.", + 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(UserCodespacesSecretsSecretNamePutBody) +model_rebuild(UserCodespacesSecretsGetResponse200) +model_rebuild(CodespacesSecret) -__all__ = ("UserCodespacesSecretsSecretNamePutBody",) +__all__ = ( + "UserCodespacesSecretsGetResponse200", + "CodespacesSecret", +) diff --git a/githubkit/versions/v2022_11_28/models/group_1073.py b/githubkit/versions/v2022_11_28/models/group_1073.py index b37a1df50..9fb8ed282 100644 --- a/githubkit/versions/v2022_11_28/models/group_1073.py +++ b/githubkit/versions/v2022_11_28/models/group_1073.py @@ -9,22 +9,30 @@ from __future__ import annotations -from typing import List +from typing import List, Union from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0055 import MinimalRepository +class UserCodespacesSecretsSecretNamePutBody(GitHubModel): + """UserCodespacesSecretsSecretNamePutBody""" -class UserCodespacesSecretsSecretNameRepositoriesGetResponse200(GitHubModel): - """UserCodespacesSecretsSecretNameRepositoriesGetResponse200""" + 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.", + ) - total_count: int = Field() - repositories: List[MinimalRepository] = Field() +model_rebuild(UserCodespacesSecretsSecretNamePutBody) -model_rebuild(UserCodespacesSecretsSecretNameRepositoriesGetResponse200) - -__all__ = ("UserCodespacesSecretsSecretNameRepositoriesGetResponse200",) +__all__ = ("UserCodespacesSecretsSecretNamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1074.py b/githubkit/versions/v2022_11_28/models/group_1074.py index f81f21b85..b37a1df50 100644 --- a/githubkit/versions/v2022_11_28/models/group_1074.py +++ b/githubkit/versions/v2022_11_28/models/group_1074.py @@ -15,15 +15,16 @@ from githubkit.compat import GitHubModel, model_rebuild +from .group_0055 import MinimalRepository -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/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." - ) +class UserCodespacesSecretsSecretNameRepositoriesGetResponse200(GitHubModel): + """UserCodespacesSecretsSecretNameRepositoriesGetResponse200""" + total_count: int = Field() + repositories: List[MinimalRepository] = Field() -model_rebuild(UserCodespacesSecretsSecretNameRepositoriesPutBody) -__all__ = ("UserCodespacesSecretsSecretNameRepositoriesPutBody",) +model_rebuild(UserCodespacesSecretsSecretNameRepositoriesGetResponse200) + +__all__ = ("UserCodespacesSecretsSecretNameRepositoriesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_1075.py b/githubkit/versions/v2022_11_28/models/group_1075.py index 5edeb55cb..f81f21b85 100644 --- a/githubkit/versions/v2022_11_28/models/group_1075.py +++ b/githubkit/versions/v2022_11_28/models/group_1075.py @@ -13,26 +13,17 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class UserCodespacesCodespaceNamePatchBody(GitHubModel): - """UserCodespacesCodespaceNamePatchBody""" +class UserCodespacesSecretsSecretNameRepositoriesPutBody(GitHubModel): + """UserCodespacesSecretsSecretNameRepositoriesPutBody""" - 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.", + 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." ) -model_rebuild(UserCodespacesCodespaceNamePatchBody) +model_rebuild(UserCodespacesSecretsSecretNameRepositoriesPutBody) -__all__ = ("UserCodespacesCodespaceNamePatchBody",) +__all__ = ("UserCodespacesSecretsSecretNameRepositoriesPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1076.py b/githubkit/versions/v2022_11_28/models/group_1076.py index d3bdc9f71..5edeb55cb 100644 --- a/githubkit/versions/v2022_11_28/models/group_1076.py +++ b/githubkit/versions/v2022_11_28/models/group_1076.py @@ -13,18 +13,26 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0077 import CodespaceMachine +class UserCodespacesCodespaceNamePatchBody(GitHubModel): + """UserCodespacesCodespaceNamePatchBody""" -class UserCodespacesCodespaceNameMachinesGetResponse200(GitHubModel): - """UserCodespacesCodespaceNameMachinesGetResponse200""" + 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.", + ) - total_count: int = Field() - machines: List[CodespaceMachine] = Field() +model_rebuild(UserCodespacesCodespaceNamePatchBody) -model_rebuild(UserCodespacesCodespaceNameMachinesGetResponse200) - -__all__ = ("UserCodespacesCodespaceNameMachinesGetResponse200",) +__all__ = ("UserCodespacesCodespaceNamePatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1077.py b/githubkit/versions/v2022_11_28/models/group_1077.py index 574036b59..d3bdc9f71 100644 --- a/githubkit/versions/v2022_11_28/models/group_1077.py +++ b/githubkit/versions/v2022_11_28/models/group_1077.py @@ -9,24 +9,22 @@ from __future__ import annotations +from typing import List + from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0077 import CodespaceMachine + -class UserCodespacesCodespaceNamePublishPostBody(GitHubModel): - """UserCodespacesCodespaceNamePublishPostBody""" +class UserCodespacesCodespaceNameMachinesGetResponse200(GitHubModel): + """UserCodespacesCodespaceNameMachinesGetResponse200""" - 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." - ) + total_count: int = Field() + machines: List[CodespaceMachine] = Field() -model_rebuild(UserCodespacesCodespaceNamePublishPostBody) +model_rebuild(UserCodespacesCodespaceNameMachinesGetResponse200) -__all__ = ("UserCodespacesCodespaceNamePublishPostBody",) +__all__ = ("UserCodespacesCodespaceNameMachinesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_1078.py b/githubkit/versions/v2022_11_28/models/group_1078.py index 04c6a0578..574036b59 100644 --- a/githubkit/versions/v2022_11_28/models/group_1078.py +++ b/githubkit/versions/v2022_11_28/models/group_1078.py @@ -9,21 +9,24 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class UserEmailVisibilityPatchBody(GitHubModel): - """UserEmailVisibilityPatchBody""" +class UserCodespacesCodespaceNamePublishPostBody(GitHubModel): + """UserCodespacesCodespaceNamePublishPostBody""" - visibility: Literal["public", "private"] = Field( - description="Denotes whether an email is publicly visible." + 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(UserEmailVisibilityPatchBody) +model_rebuild(UserCodespacesCodespaceNamePublishPostBody) -__all__ = ("UserEmailVisibilityPatchBody",) +__all__ = ("UserCodespacesCodespaceNamePublishPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1079.py b/githubkit/versions/v2022_11_28/models/group_1079.py index 40687cc1f..04c6a0578 100644 --- a/githubkit/versions/v2022_11_28/models/group_1079.py +++ b/githubkit/versions/v2022_11_28/models/group_1079.py @@ -9,25 +9,21 @@ from __future__ import annotations -from typing import List +from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class UserEmailsPostBodyOneof0(GitHubModel): - """UserEmailsPostBodyOneof0 +class UserEmailVisibilityPatchBody(GitHubModel): + """UserEmailVisibilityPatchBody""" - Examples: - {'emails': ['octocat@github.com', 'mona@github.com']} - """ - - emails: List[str] = Field( - 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." + visibility: Literal["public", "private"] = Field( + description="Denotes whether an email is publicly visible." ) -model_rebuild(UserEmailsPostBodyOneof0) +model_rebuild(UserEmailVisibilityPatchBody) -__all__ = ("UserEmailsPostBodyOneof0",) +__all__ = ("UserEmailVisibilityPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1080.py b/githubkit/versions/v2022_11_28/models/group_1080.py index c2aace7bb..40687cc1f 100644 --- a/githubkit/versions/v2022_11_28/models/group_1080.py +++ b/githubkit/versions/v2022_11_28/models/group_1080.py @@ -16,23 +16,18 @@ from githubkit.compat import GitHubModel, model_rebuild -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 UserEmailsPostBodyOneof0(GitHubModel): + """UserEmailsPostBodyOneof0 Examples: {'emails': ['octocat@github.com', 'mona@github.com']} """ emails: List[str] = Field( - description="Email addresses associated with the GitHub user account." + 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(UserEmailsDeleteBodyOneof0) +model_rebuild(UserEmailsPostBodyOneof0) -__all__ = ("UserEmailsDeleteBodyOneof0",) +__all__ = ("UserEmailsPostBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_1081.py b/githubkit/versions/v2022_11_28/models/group_1081.py index f6a483044..c2aace7bb 100644 --- a/githubkit/versions/v2022_11_28/models/group_1081.py +++ b/githubkit/versions/v2022_11_28/models/group_1081.py @@ -9,22 +9,30 @@ from __future__ import annotations +from typing import List + from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class UserGpgKeysPostBody(GitHubModel): - """UserGpgKeysPostBody""" +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: + {'emails': ['octocat@github.com', 'mona@github.com']} + """ - name: Missing[str] = Field( - default=UNSET, description="A descriptive name for the new key." + emails: List[str] = Field( + description="Email addresses associated with the GitHub user account." ) - armored_public_key: str = Field(description="A GPG key in ASCII-armored format.") -model_rebuild(UserGpgKeysPostBody) +model_rebuild(UserEmailsDeleteBodyOneof0) -__all__ = ("UserGpgKeysPostBody",) +__all__ = ("UserEmailsDeleteBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_1082.py b/githubkit/versions/v2022_11_28/models/group_1082.py index 50efae3c7..f6a483044 100644 --- a/githubkit/versions/v2022_11_28/models/group_1082.py +++ b/githubkit/versions/v2022_11_28/models/group_1082.py @@ -9,22 +9,22 @@ from __future__ import annotations -from typing import List - from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0015 import Installation - -class UserInstallationsGetResponse200(GitHubModel): - """UserInstallationsGetResponse200""" +class UserGpgKeysPostBody(GitHubModel): + """UserGpgKeysPostBody""" - total_count: int = Field() - installations: List[Installation] = Field() + 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(UserInstallationsGetResponse200) +model_rebuild(UserGpgKeysPostBody) -__all__ = ("UserInstallationsGetResponse200",) +__all__ = ("UserGpgKeysPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1083.py b/githubkit/versions/v2022_11_28/models/group_1083.py index 462d4423d..50efae3c7 100644 --- a/githubkit/versions/v2022_11_28/models/group_1083.py +++ b/githubkit/versions/v2022_11_28/models/group_1083.py @@ -13,21 +13,18 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0017 import Repository +from .group_0015 import Installation -class UserInstallationsInstallationIdRepositoriesGetResponse200(GitHubModel): - """UserInstallationsInstallationIdRepositoriesGetResponse200""" +class UserInstallationsGetResponse200(GitHubModel): + """UserInstallationsGetResponse200""" total_count: int = Field() - repository_selection: Missing[str] = Field(default=UNSET) - repositories: List[Repository] = Field() + installations: List[Installation] = Field() -model_rebuild(UserInstallationsInstallationIdRepositoriesGetResponse200) +model_rebuild(UserInstallationsGetResponse200) -__all__ = ("UserInstallationsInstallationIdRepositoriesGetResponse200",) +__all__ = ("UserInstallationsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_1084.py b/githubkit/versions/v2022_11_28/models/group_1084.py index 09cbf54e3..462d4423d 100644 --- a/githubkit/versions/v2022_11_28/models/group_1084.py +++ b/githubkit/versions/v2022_11_28/models/group_1084.py @@ -9,13 +9,25 @@ from __future__ import annotations +from typing import List + +from pydantic import Field + +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0017 import Repository + + +class UserInstallationsInstallationIdRepositoriesGetResponse200(GitHubModel): + """UserInstallationsInstallationIdRepositoriesGetResponse200""" -class UserInteractionLimitsGetResponse200Anyof1(GitHubModel): - """UserInteractionLimitsGetResponse200Anyof1""" + total_count: int = Field() + repository_selection: Missing[str] = Field(default=UNSET) + repositories: List[Repository] = Field() -model_rebuild(UserInteractionLimitsGetResponse200Anyof1) +model_rebuild(UserInstallationsInstallationIdRepositoriesGetResponse200) -__all__ = ("UserInteractionLimitsGetResponse200Anyof1",) +__all__ = ("UserInstallationsInstallationIdRepositoriesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_1085.py b/githubkit/versions/v2022_11_28/models/group_1085.py index c2167fcac..09cbf54e3 100644 --- a/githubkit/versions/v2022_11_28/models/group_1085.py +++ b/githubkit/versions/v2022_11_28/models/group_1085.py @@ -9,25 +9,13 @@ from __future__ import annotations -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -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 UserInteractionLimitsGetResponse200Anyof1(GitHubModel): + """UserInteractionLimitsGetResponse200Anyof1""" -model_rebuild(UserKeysPostBody) +model_rebuild(UserInteractionLimitsGetResponse200Anyof1) -__all__ = ("UserKeysPostBody",) +__all__ = ("UserInteractionLimitsGetResponse200Anyof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_1086.py b/githubkit/versions/v2022_11_28/models/group_1086.py index 9b771b5c3..c2167fcac 100644 --- a/githubkit/versions/v2022_11_28/models/group_1086.py +++ b/githubkit/versions/v2022_11_28/models/group_1086.py @@ -9,21 +9,25 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class UserMembershipsOrgsOrgPatchBody(GitHubModel): - """UserMembershipsOrgsOrgPatchBody""" +class UserKeysPostBody(GitHubModel): + """UserKeysPostBody""" - state: Literal["active"] = Field( - description='The state that the membership should be in. Only `"active"` will be accepted.' + 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(UserMembershipsOrgsOrgPatchBody) +model_rebuild(UserKeysPostBody) -__all__ = ("UserMembershipsOrgsOrgPatchBody",) +__all__ = ("UserKeysPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1087.py b/githubkit/versions/v2022_11_28/models/group_1087.py index 994900d2d..9b771b5c3 100644 --- a/githubkit/versions/v2022_11_28/models/group_1087.py +++ b/githubkit/versions/v2022_11_28/models/group_1087.py @@ -9,51 +9,21 @@ from __future__ import annotations -from typing import List, Literal +from typing import Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class UserMigrationsPostBody(GitHubModel): - """UserMigrationsPostBody""" +class UserMembershipsOrgsOrgPatchBody(GitHubModel): + """UserMembershipsOrgsOrgPatchBody""" - lock_repositories: Missing[bool] = Field( - default=UNSET, - description="Lock the repositories being migrated at the start of the migration", + state: Literal["active"] = Field( + description='The state that the membership should be in. Only `"active"` will be accepted.' ) - 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(UserMembershipsOrgsOrgPatchBody) -__all__ = ("UserMigrationsPostBody",) +__all__ = ("UserMembershipsOrgsOrgPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1088.py b/githubkit/versions/v2022_11_28/models/group_1088.py index e16a36610..994900d2d 100644 --- a/githubkit/versions/v2022_11_28/models/group_1088.py +++ b/githubkit/versions/v2022_11_28/models/group_1088.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import List, Literal from pydantic import Field @@ -18,15 +18,42 @@ from githubkit.compat import GitHubModel, model_rebuild -class UserProjectsPostBody(GitHubModel): - """UserProjectsPostBody""" +class UserMigrationsPostBody(GitHubModel): + """UserMigrationsPostBody""" - name: str = Field(description="Name of the project") - body: Missing[Union[str, None]] = Field( - default=UNSET, description="Body of the project" + 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(UserProjectsPostBody) +model_rebuild(UserMigrationsPostBody) -__all__ = ("UserProjectsPostBody",) +__all__ = ("UserMigrationsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1089.py b/githubkit/versions/v2022_11_28/models/group_1089.py index e0fe3d9d9..e16a36610 100644 --- a/githubkit/versions/v2022_11_28/models/group_1089.py +++ b/githubkit/versions/v2022_11_28/models/group_1089.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field @@ -18,93 +18,15 @@ from githubkit.compat import GitHubModel, model_rebuild -class UserReposPostBody(GitHubModel): - """UserReposPostBody""" +class UserProjectsPostBody(GitHubModel): + """UserProjectsPostBody""" - 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="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.", - ) - 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.", + name: str = Field(description="Name of the project") + body: Missing[Union[str, None]] = Field( + default=UNSET, description="Body of the project" ) -model_rebuild(UserReposPostBody) +model_rebuild(UserProjectsPostBody) -__all__ = ("UserReposPostBody",) +__all__ = ("UserProjectsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1090.py b/githubkit/versions/v2022_11_28/models/group_1090.py index 3f7092ec4..e0fe3d9d9 100644 --- a/githubkit/versions/v2022_11_28/models/group_1090.py +++ b/githubkit/versions/v2022_11_28/models/group_1090.py @@ -9,26 +9,102 @@ from __future__ import annotations -from typing import List +from typing import Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class UserSocialAccountsPostBody(GitHubModel): - """UserSocialAccountsPostBody +class UserReposPostBody(GitHubModel): + """UserReposPostBody""" - 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: 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="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.", + ) + 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(UserSocialAccountsPostBody) +model_rebuild(UserReposPostBody) -__all__ = ("UserSocialAccountsPostBody",) +__all__ = ("UserReposPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1091.py b/githubkit/versions/v2022_11_28/models/group_1091.py index a8664c5d3..3f7092ec4 100644 --- a/githubkit/versions/v2022_11_28/models/group_1091.py +++ b/githubkit/versions/v2022_11_28/models/group_1091.py @@ -16,8 +16,8 @@ from githubkit.compat import GitHubModel, model_rebuild -class UserSocialAccountsDeleteBody(GitHubModel): - """UserSocialAccountsDeleteBody +class UserSocialAccountsPostBody(GitHubModel): + """UserSocialAccountsPostBody Examples: {'account_urls': ['https://www.linkedin.com/company/github/', @@ -25,10 +25,10 @@ class UserSocialAccountsDeleteBody(GitHubModel): """ account_urls: List[str] = Field( - description="Full URLs for the social media profiles to delete." + description="Full URLs for the social media profiles to add." ) -model_rebuild(UserSocialAccountsDeleteBody) +model_rebuild(UserSocialAccountsPostBody) -__all__ = ("UserSocialAccountsDeleteBody",) +__all__ = ("UserSocialAccountsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1092.py b/githubkit/versions/v2022_11_28/models/group_1092.py index 4ac5db45a..a8664c5d3 100644 --- a/githubkit/versions/v2022_11_28/models/group_1092.py +++ b/githubkit/versions/v2022_11_28/models/group_1092.py @@ -9,25 +9,26 @@ from __future__ import annotations +from typing import List + from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class UserSshSigningKeysPostBody(GitHubModel): - """UserSshSigningKeysPostBody""" +class UserSocialAccountsDeleteBody(GitHubModel): + """UserSocialAccountsDeleteBody - 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)."', + 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(UserSshSigningKeysPostBody) +model_rebuild(UserSocialAccountsDeleteBody) -__all__ = ("UserSshSigningKeysPostBody",) +__all__ = ("UserSocialAccountsDeleteBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1093.py b/githubkit/versions/v2022_11_28/models/group_1093.py index 669461bb2..4ac5db45a 100644 --- a/githubkit/versions/v2022_11_28/models/group_1093.py +++ b/githubkit/versions/v2022_11_28/models/group_1093.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import List, Union - from pydantic import Field from githubkit.utils import UNSET @@ -18,166 +16,18 @@ from githubkit.compat import GitHubModel, model_rebuild -class UsersUsernameAttestationsSubjectDigestGetResponse200(GitHubModel): - """UsersUsernameAttestationsSubjectDigestGetResponse200""" - - attestations: Missing[ - List[UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems] - ] = Field(default=UNSET) - - -class UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems( - GitHubModel -): - """UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems""" - - bundle: Missing[SigstoreBundle0] = Field( - default=UNSET, title="Sigstore Bundle v0.1", description="Sigstore Bundle v0.1" - ) - repository_id: Missing[int] = Field(default=UNSET) - - -class SigstoreBundle0(GitHubModel): - """Sigstore Bundle v0.1 - - Sigstore Bundle v0.1 - """ - - media_type: Missing[str] = Field(default=UNSET, alias="mediaType") - verification_material: Missing[SigstoreBundle0PropVerificationMaterial] = Field( - default=UNSET, alias="verificationMaterial" - ) - dsse_envelope: Missing[SigstoreBundle0PropDsseEnvelope] = Field( - default=UNSET, alias="dsseEnvelope" - ) - - -class SigstoreBundle0PropDsseEnvelope(GitHubModel): - """SigstoreBundle0PropDsseEnvelope""" - - payload: Missing[str] = Field(default=UNSET) - payload_type: Missing[str] = Field(default=UNSET, alias="payloadType") - signatures: Missing[List[SigstoreBundle0PropDsseEnvelopePropSignaturesItems]] = ( - Field(default=UNSET) - ) - - -class SigstoreBundle0PropDsseEnvelopePropSignaturesItems(GitHubModel): - """SigstoreBundle0PropDsseEnvelopePropSignaturesItems""" - - sig: Missing[str] = Field(default=UNSET) - keyid: Missing[str] = Field(default=UNSET) - +class UserSshSigningKeysPostBody(GitHubModel): + """UserSshSigningKeysPostBody""" -class SigstoreBundle0PropVerificationMaterial(GitHubModel): - """SigstoreBundle0PropVerificationMaterial""" - - x_509_certificate_chain: Missing[ - SigstoreBundle0PropVerificationMaterialPropX509CertificateChain - ] = Field(default=UNSET, alias="x509CertificateChain") - tlog_entries: Missing[ - List[SigstoreBundle0PropVerificationMaterialPropTlogEntriesItems] - ] = Field(default=UNSET, alias="tlogEntries") - timestamp_verification_data: Missing[Union[str, None]] = Field( - default=UNSET, alias="timestampVerificationData" - ) - - -class SigstoreBundle0PropVerificationMaterialPropX509CertificateChain(GitHubModel): - """SigstoreBundle0PropVerificationMaterialPropX509CertificateChain""" - - certificates: Missing[ - List[ - SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItems - ] - ] = Field(default=UNSET) - - -class SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItems( - GitHubModel -): - """SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesI - tems - """ - - raw_bytes: Missing[str] = Field(default=UNSET, alias="rawBytes") - - -class SigstoreBundle0PropVerificationMaterialPropTlogEntriesItems(GitHubModel): - """SigstoreBundle0PropVerificationMaterialPropTlogEntriesItems""" - - log_index: Missing[str] = Field(default=UNSET, alias="logIndex") - log_id: Missing[ - SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogId - ] = Field(default=UNSET, alias="logId") - kind_version: Missing[ - SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersion - ] = Field(default=UNSET, alias="kindVersion") - integrated_time: Missing[str] = Field(default=UNSET, alias="integratedTime") - inclusion_promise: Missing[ - SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromise - ] = Field(default=UNSET, alias="inclusionPromise") - inclusion_proof: Missing[Union[str, None]] = Field( - default=UNSET, alias="inclusionProof" + title: Missing[str] = Field( + default=UNSET, description="A descriptive name for the new key." ) - canonicalized_body: Missing[str] = Field(default=UNSET, alias="canonicalizedBody") - - -class SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogId(GitHubModel): - """SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogId""" - - key_id: Missing[str] = Field(default=UNSET, alias="keyId") - - -class SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersion( - GitHubModel -): - """SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersion""" - - kind: Missing[str] = Field(default=UNSET) - version: Missing[str] = Field(default=UNSET) - - -class SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromise( - GitHubModel -): - """SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromise""" - - signed_entry_timestamp: Missing[str] = Field( - default=UNSET, alias="signedEntryTimestamp" + 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(UsersUsernameAttestationsSubjectDigestGetResponse200) -model_rebuild(UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems) -model_rebuild(SigstoreBundle0) -model_rebuild(SigstoreBundle0PropDsseEnvelope) -model_rebuild(SigstoreBundle0PropDsseEnvelopePropSignaturesItems) -model_rebuild(SigstoreBundle0PropVerificationMaterial) -model_rebuild(SigstoreBundle0PropVerificationMaterialPropX509CertificateChain) -model_rebuild( - SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItems -) -model_rebuild(SigstoreBundle0PropVerificationMaterialPropTlogEntriesItems) -model_rebuild(SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogId) -model_rebuild( - SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersion -) -model_rebuild( - SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromise -) +model_rebuild(UserSshSigningKeysPostBody) -__all__ = ( - "UsersUsernameAttestationsSubjectDigestGetResponse200", - "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems", - "SigstoreBundle0", - "SigstoreBundle0PropDsseEnvelope", - "SigstoreBundle0PropDsseEnvelopePropSignaturesItems", - "SigstoreBundle0PropVerificationMaterial", - "SigstoreBundle0PropVerificationMaterialPropX509CertificateChain", - "SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItems", - "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItems", - "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogId", - "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersion", - "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromise", -) +__all__ = ("UserSshSigningKeysPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1094.py b/githubkit/versions/v2022_11_28/models/group_1094.py new file mode 100644 index 000000000..669461bb2 --- /dev/null +++ b/githubkit/versions/v2022_11_28/models/group_1094.py @@ -0,0 +1,183 @@ +"""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 List, Union + +from pydantic import Field + +from githubkit.utils import UNSET +from githubkit.typing import Missing +from githubkit.compat import GitHubModel, model_rebuild + + +class UsersUsernameAttestationsSubjectDigestGetResponse200(GitHubModel): + """UsersUsernameAttestationsSubjectDigestGetResponse200""" + + attestations: Missing[ + List[UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems] + ] = Field(default=UNSET) + + +class UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems( + GitHubModel +): + """UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems""" + + bundle: Missing[SigstoreBundle0] = Field( + default=UNSET, title="Sigstore Bundle v0.1", description="Sigstore Bundle v0.1" + ) + repository_id: Missing[int] = Field(default=UNSET) + + +class SigstoreBundle0(GitHubModel): + """Sigstore Bundle v0.1 + + Sigstore Bundle v0.1 + """ + + media_type: Missing[str] = Field(default=UNSET, alias="mediaType") + verification_material: Missing[SigstoreBundle0PropVerificationMaterial] = Field( + default=UNSET, alias="verificationMaterial" + ) + dsse_envelope: Missing[SigstoreBundle0PropDsseEnvelope] = Field( + default=UNSET, alias="dsseEnvelope" + ) + + +class SigstoreBundle0PropDsseEnvelope(GitHubModel): + """SigstoreBundle0PropDsseEnvelope""" + + payload: Missing[str] = Field(default=UNSET) + payload_type: Missing[str] = Field(default=UNSET, alias="payloadType") + signatures: Missing[List[SigstoreBundle0PropDsseEnvelopePropSignaturesItems]] = ( + Field(default=UNSET) + ) + + +class SigstoreBundle0PropDsseEnvelopePropSignaturesItems(GitHubModel): + """SigstoreBundle0PropDsseEnvelopePropSignaturesItems""" + + sig: Missing[str] = Field(default=UNSET) + keyid: Missing[str] = Field(default=UNSET) + + +class SigstoreBundle0PropVerificationMaterial(GitHubModel): + """SigstoreBundle0PropVerificationMaterial""" + + x_509_certificate_chain: Missing[ + SigstoreBundle0PropVerificationMaterialPropX509CertificateChain + ] = Field(default=UNSET, alias="x509CertificateChain") + tlog_entries: Missing[ + List[SigstoreBundle0PropVerificationMaterialPropTlogEntriesItems] + ] = Field(default=UNSET, alias="tlogEntries") + timestamp_verification_data: Missing[Union[str, None]] = Field( + default=UNSET, alias="timestampVerificationData" + ) + + +class SigstoreBundle0PropVerificationMaterialPropX509CertificateChain(GitHubModel): + """SigstoreBundle0PropVerificationMaterialPropX509CertificateChain""" + + certificates: Missing[ + List[ + SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItems + ] + ] = Field(default=UNSET) + + +class SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItems( + GitHubModel +): + """SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesI + tems + """ + + raw_bytes: Missing[str] = Field(default=UNSET, alias="rawBytes") + + +class SigstoreBundle0PropVerificationMaterialPropTlogEntriesItems(GitHubModel): + """SigstoreBundle0PropVerificationMaterialPropTlogEntriesItems""" + + log_index: Missing[str] = Field(default=UNSET, alias="logIndex") + log_id: Missing[ + SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogId + ] = Field(default=UNSET, alias="logId") + kind_version: Missing[ + SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersion + ] = Field(default=UNSET, alias="kindVersion") + integrated_time: Missing[str] = Field(default=UNSET, alias="integratedTime") + inclusion_promise: Missing[ + SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromise + ] = Field(default=UNSET, alias="inclusionPromise") + inclusion_proof: Missing[Union[str, None]] = Field( + default=UNSET, alias="inclusionProof" + ) + canonicalized_body: Missing[str] = Field(default=UNSET, alias="canonicalizedBody") + + +class SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogId(GitHubModel): + """SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogId""" + + key_id: Missing[str] = Field(default=UNSET, alias="keyId") + + +class SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersion( + GitHubModel +): + """SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersion""" + + kind: Missing[str] = Field(default=UNSET) + version: Missing[str] = Field(default=UNSET) + + +class SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromise( + GitHubModel +): + """SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromise""" + + signed_entry_timestamp: Missing[str] = Field( + default=UNSET, alias="signedEntryTimestamp" + ) + + +model_rebuild(UsersUsernameAttestationsSubjectDigestGetResponse200) +model_rebuild(UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems) +model_rebuild(SigstoreBundle0) +model_rebuild(SigstoreBundle0PropDsseEnvelope) +model_rebuild(SigstoreBundle0PropDsseEnvelopePropSignaturesItems) +model_rebuild(SigstoreBundle0PropVerificationMaterial) +model_rebuild(SigstoreBundle0PropVerificationMaterialPropX509CertificateChain) +model_rebuild( + SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItems +) +model_rebuild(SigstoreBundle0PropVerificationMaterialPropTlogEntriesItems) +model_rebuild(SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogId) +model_rebuild( + SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersion +) +model_rebuild( + SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromise +) + +__all__ = ( + "UsersUsernameAttestationsSubjectDigestGetResponse200", + "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems", + "SigstoreBundle0", + "SigstoreBundle0PropDsseEnvelope", + "SigstoreBundle0PropDsseEnvelopePropSignaturesItems", + "SigstoreBundle0PropVerificationMaterial", + "SigstoreBundle0PropVerificationMaterialPropX509CertificateChain", + "SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItems", + "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItems", + "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogId", + "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersion", + "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromise", +) diff --git a/githubkit/versions/v2022_11_28/rest/actions.py b/githubkit/versions/v2022_11_28/rest/actions.py index de4a4d2bc..56dd1d47d 100644 --- a/githubkit/versions/v2022_11_28/rest/actions.py +++ b/githubkit/versions/v2022_11_28/rest/actions.py @@ -14,7 +14,7 @@ from pydantic import BaseModel -from githubkit.typing import Missing +from githubkit.typing import Missing, UnsetType from githubkit.utils import UNSET, exclude_unset from githubkit.compat import model_dump, type_validate_python @@ -287,7 +287,7 @@ def set_github_actions_permissions_organization( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, enabled_repositories: Literal["all", "none", "selected"], allowed_actions: Missing[Literal["all", "local_only", "selected"]] = UNSET, @@ -337,7 +337,7 @@ async def async_set_github_actions_permissions_organization( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, enabled_repositories: Literal["all", "none", "selected"], allowed_actions: Missing[Literal["all", "local_only", "selected"]] = UNSET, @@ -445,7 +445,7 @@ def set_selected_repositories_enabled_github_actions_organization( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, selected_repository_ids: List[int], ) -> Response: ... @@ -494,7 +494,7 @@ async def async_set_selected_repositories_enabled_github_actions_organization( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, selected_repository_ids: List[int], ) -> Response: ... @@ -661,7 +661,7 @@ def set_allowed_actions_organization( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, github_owned_allowed: Missing[bool] = UNSET, verified_allowed: Missing[bool] = UNSET, @@ -712,7 +712,7 @@ async def async_set_allowed_actions_organization( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, github_owned_allowed: Missing[bool] = UNSET, verified_allowed: Missing[bool] = UNSET, @@ -805,7 +805,7 @@ def set_github_actions_default_workflow_permissions_organization( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, default_workflow_permissions: Missing[Literal["read", "write"]] = UNSET, can_approve_pull_request_reviews: Missing[bool] = UNSET, @@ -855,7 +855,7 @@ async def async_set_github_actions_default_workflow_permissions_organization( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, default_workflow_permissions: Missing[Literal["read", "write"]] = UNSET, can_approve_pull_request_reviews: Missing[bool] = UNSET, @@ -1013,7 +1013,7 @@ def generate_runner_jitconfig_for_org( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, runner_group_id: int, @@ -1077,7 +1077,7 @@ async def async_generate_runner_jitconfig_for_org( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, runner_group_id: int, @@ -1365,7 +1365,7 @@ def set_custom_labels_for_self_hosted_runner_for_org( org: str, runner_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, labels: List[str], ) -> Response[OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200]: ... @@ -1427,7 +1427,7 @@ async def async_set_custom_labels_for_self_hosted_runner_for_org( org: str, runner_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, labels: List[str], ) -> Response[OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200]: ... @@ -1489,7 +1489,7 @@ def add_custom_labels_to_self_hosted_runner_for_org( org: str, runner_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, labels: List[str], ) -> Response[OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200]: ... @@ -1551,7 +1551,7 @@ async def async_add_custom_labels_to_self_hosted_runner_for_org( org: str, runner_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, labels: List[str], ) -> Response[OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200]: ... @@ -1875,7 +1875,7 @@ def create_or_update_org_secret( org: str, secret_name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, encrypted_value: Missing[str] = UNSET, key_id: Missing[str] = UNSET, @@ -1931,7 +1931,7 @@ async def async_create_or_update_org_secret( org: str, secret_name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, encrypted_value: Missing[str] = UNSET, key_id: Missing[str] = UNSET, @@ -2085,7 +2085,7 @@ def set_selected_repos_for_org_secret( org: str, secret_name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, selected_repository_ids: List[int], ) -> Response: ... @@ -2139,7 +2139,7 @@ async def async_set_selected_repos_for_org_secret( org: str, secret_name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, selected_repository_ids: List[int], ) -> Response: ... @@ -2333,7 +2333,7 @@ def create_org_variable( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, value: str, @@ -2386,7 +2386,7 @@ async def async_create_org_variable( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, value: str, @@ -2523,7 +2523,7 @@ def update_org_variable( org: str, name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, value: Missing[str] = UNSET, visibility: Missing[Literal["all", "private", "selected"]] = UNSET, @@ -2577,7 +2577,7 @@ async def async_update_org_variable( org: str, name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, value: Missing[str] = UNSET, visibility: Missing[Literal["all", "private", "selected"]] = UNSET, @@ -2693,7 +2693,7 @@ def set_selected_repos_for_org_variable( org: str, name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, selected_repository_ids: List[int], ) -> Response: ... @@ -2748,7 +2748,7 @@ async def async_set_selected_repos_for_org_variable( org: str, name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, selected_repository_ids: List[int], ) -> Response: ... @@ -3403,7 +3403,7 @@ def re_run_job_for_workflow_run( repo: str, job_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, enable_debug_logging: Missing[bool] = UNSET, ) -> Response[EmptyObject]: ... @@ -3474,7 +3474,7 @@ async def async_re_run_job_for_workflow_run( repo: str, job_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, enable_debug_logging: Missing[bool] = UNSET, ) -> Response[EmptyObject]: ... @@ -3593,7 +3593,7 @@ def set_custom_oidc_sub_claim_for_repo( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, use_default: bool, include_claim_keys: Missing[List[str]] = UNSET, @@ -3659,7 +3659,7 @@ async def async_set_custom_oidc_sub_claim_for_repo( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, use_default: bool, include_claim_keys: Missing[List[str]] = UNSET, @@ -3889,7 +3889,7 @@ def set_github_actions_permissions_repository( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, enabled: bool, allowed_actions: Missing[Literal["all", "local_only", "selected"]] = UNSET, @@ -3942,7 +3942,7 @@ async def async_set_github_actions_permissions_repository( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, enabled: bool, allowed_actions: Missing[Literal["all", "local_only", "selected"]] = UNSET, @@ -4039,7 +4039,7 @@ def set_workflow_access_to_repository( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, access_level: Literal["none", "user", "organization"], ) -> Response: ... @@ -4091,7 +4091,7 @@ async def async_set_workflow_access_to_repository( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, access_level: Literal["none", "user", "organization"], ) -> Response: ... @@ -4187,7 +4187,7 @@ def set_allowed_actions_repository( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, github_owned_allowed: Missing[bool] = UNSET, verified_allowed: Missing[bool] = UNSET, @@ -4241,7 +4241,7 @@ async def async_set_allowed_actions_repository( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, github_owned_allowed: Missing[bool] = UNSET, verified_allowed: Missing[bool] = UNSET, @@ -4339,7 +4339,7 @@ def set_github_actions_default_workflow_permissions_repository( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, default_workflow_permissions: Missing[Literal["read", "write"]] = UNSET, can_approve_pull_request_reviews: Missing[bool] = UNSET, @@ -4393,7 +4393,7 @@ async def async_set_github_actions_default_workflow_permissions_repository( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, default_workflow_permissions: Missing[Literal["read", "write"]] = UNSET, can_approve_pull_request_reviews: Missing[bool] = UNSET, @@ -4559,7 +4559,7 @@ def generate_runner_jitconfig_for_repo( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, runner_group_id: int, @@ -4628,7 +4628,7 @@ async def async_generate_runner_jitconfig_for_repo( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, runner_group_id: int, @@ -4931,7 +4931,7 @@ def set_custom_labels_for_self_hosted_runner_for_repo( repo: str, runner_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, labels: List[str], ) -> Response[OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200]: ... @@ -4998,7 +4998,7 @@ async def async_set_custom_labels_for_self_hosted_runner_for_repo( repo: str, runner_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, labels: List[str], ) -> Response[OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200]: ... @@ -5065,7 +5065,7 @@ def add_custom_labels_to_self_hosted_runner_for_repo( repo: str, runner_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, labels: List[str], ) -> Response[OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200]: ... @@ -5132,7 +5132,7 @@ async def async_add_custom_labels_to_self_hosted_runner_for_repo( repo: str, runner_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, labels: List[str], ) -> Response[OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200]: ... @@ -5951,7 +5951,7 @@ def review_custom_gates_for_run( repo: str, run_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, environment_name: str, comment: str, @@ -5964,7 +5964,7 @@ def review_custom_gates_for_run( repo: str, run_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, environment_name: str, state: Literal["approved", "rejected"], @@ -6035,7 +6035,7 @@ async def async_review_custom_gates_for_run( repo: str, run_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, environment_name: str, comment: str, @@ -6048,7 +6048,7 @@ async def async_review_custom_gates_for_run( repo: str, run_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, environment_name: str, state: Literal["approved", "rejected"], @@ -6377,7 +6377,7 @@ def review_pending_deployments_for_run( repo: str, run_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, environment_ids: List[int], state: Literal["approved", "rejected"], @@ -6444,7 +6444,7 @@ async def async_review_pending_deployments_for_run( repo: str, run_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, environment_ids: List[int], state: Literal["approved", "rejected"], @@ -6513,7 +6513,7 @@ def re_run_workflow( repo: str, run_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, enable_debug_logging: Missing[bool] = UNSET, ) -> Response[EmptyObject]: ... @@ -6577,7 +6577,7 @@ async def async_re_run_workflow( repo: str, run_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, enable_debug_logging: Missing[bool] = UNSET, ) -> Response[EmptyObject]: ... @@ -6641,7 +6641,7 @@ def re_run_workflow_failed_jobs( repo: str, run_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, enable_debug_logging: Missing[bool] = UNSET, ) -> Response[EmptyObject]: ... @@ -6708,7 +6708,7 @@ async def async_re_run_workflow_failed_jobs( repo: str, run_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, enable_debug_logging: Missing[bool] = UNSET, ) -> Response[EmptyObject]: ... @@ -6969,7 +6969,7 @@ def create_or_update_repo_secret( repo: str, secret_name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, encrypted_value: Missing[str] = UNSET, key_id: Missing[str] = UNSET, @@ -7026,7 +7026,7 @@ async def async_create_or_update_repo_secret( repo: str, secret_name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, encrypted_value: Missing[str] = UNSET, key_id: Missing[str] = UNSET, @@ -7181,7 +7181,7 @@ def create_repo_variable( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, value: str, @@ -7235,7 +7235,7 @@ async def async_create_repo_variable( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, value: str, @@ -7377,7 +7377,7 @@ def update_repo_variable( repo: str, name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, value: Missing[str] = UNSET, ) -> Response: ... @@ -7432,7 +7432,7 @@ async def async_update_repo_variable( repo: str, name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, value: Missing[str] = UNSET, ) -> Response: ... @@ -7633,7 +7633,7 @@ def create_workflow_dispatch( repo: str, workflow_id: Union[int, str], *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, ref: str, inputs: Missing[ @@ -7695,7 +7695,7 @@ async def async_create_workflow_dispatch( repo: str, workflow_id: Union[int, str], *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, ref: str, inputs: Missing[ @@ -8137,7 +8137,7 @@ def create_or_update_environment_secret( environment_name: str, secret_name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, encrypted_value: str, key_id: str, @@ -8204,7 +8204,7 @@ async def async_create_or_update_environment_secret( environment_name: str, secret_name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, encrypted_value: str, key_id: str, @@ -8377,7 +8377,7 @@ def create_environment_variable( repo: str, environment_name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, value: str, @@ -8441,7 +8441,7 @@ async def async_create_environment_variable( repo: str, environment_name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, value: str, @@ -8597,7 +8597,7 @@ def update_environment_variable( name: str, environment_name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, value: Missing[str] = UNSET, ) -> Response: ... @@ -8661,7 +8661,7 @@ async def async_update_environment_variable( name: str, environment_name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, value: Missing[str] = UNSET, ) -> Response: ... diff --git a/githubkit/versions/v2022_11_28/rest/activity.py b/githubkit/versions/v2022_11_28/rest/activity.py index 88429533f..7f382de5a 100644 --- a/githubkit/versions/v2022_11_28/rest/activity.py +++ b/githubkit/versions/v2022_11_28/rest/activity.py @@ -14,7 +14,7 @@ from pydantic import BaseModel -from githubkit.typing import Missing +from githubkit.typing import Missing, UnsetType from githubkit.utils import UNSET, exclude_unset from githubkit.compat import model_dump, type_validate_python @@ -350,7 +350,7 @@ def mark_notifications_as_read( def mark_notifications_as_read( self, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, last_read_at: Missing[datetime] = UNSET, read: Missing[bool] = UNSET, @@ -406,7 +406,7 @@ async def async_mark_notifications_as_read( async def async_mark_notifications_as_read( self, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, last_read_at: Missing[datetime] = UNSET, read: Missing[bool] = UNSET, @@ -646,7 +646,7 @@ def set_thread_subscription( self, thread_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, ignored: Missing[bool] = UNSET, ) -> Response[ThreadSubscription]: ... @@ -706,7 +706,7 @@ async def async_set_thread_subscription( self, thread_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, ignored: Missing[bool] = UNSET, ) -> Response[ThreadSubscription]: ... @@ -1022,7 +1022,7 @@ def mark_repo_notifications_as_read( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, last_read_at: Missing[datetime] = UNSET, ) -> Response[ReposOwnerRepoNotificationsPutResponse202]: ... @@ -1078,7 +1078,7 @@ async def async_mark_repo_notifications_as_read( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, last_read_at: Missing[datetime] = UNSET, ) -> Response[ReposOwnerRepoNotificationsPutResponse202]: ... @@ -1318,7 +1318,7 @@ def set_repo_subscription( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, subscribed: Missing[bool] = UNSET, ignored: Missing[bool] = UNSET, @@ -1372,7 +1372,7 @@ async def async_set_repo_subscription( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, subscribed: Missing[bool] = UNSET, ignored: Missing[bool] = UNSET, diff --git a/githubkit/versions/v2022_11_28/rest/apps.py b/githubkit/versions/v2022_11_28/rest/apps.py index a4be23862..51500b425 100644 --- a/githubkit/versions/v2022_11_28/rest/apps.py +++ b/githubkit/versions/v2022_11_28/rest/apps.py @@ -14,7 +14,7 @@ from pydantic import BaseModel -from githubkit.typing import Missing +from githubkit.typing import Missing, UnsetType from githubkit.utils import UNSET, exclude_unset from githubkit.compat import model_dump, type_validate_python @@ -226,7 +226,7 @@ def update_webhook_config_for_app( def update_webhook_config_for_app( self, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, url: Missing[str] = UNSET, content_type: Missing[str] = UNSET, @@ -276,7 +276,7 @@ async def async_update_webhook_config_for_app( async def async_update_webhook_config_for_app( self, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, url: Missing[str] = UNSET, content_type: Missing[str] = UNSET, @@ -736,7 +736,7 @@ def create_installation_access_token( self, installation_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, repositories: Missing[List[str]] = UNSET, repository_ids: Missing[List[int]] = UNSET, @@ -801,7 +801,7 @@ async def async_create_installation_access_token( self, installation_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, repositories: Missing[List[str]] = UNSET, repository_ids: Missing[List[int]] = UNSET, @@ -958,7 +958,7 @@ def delete_authorization( self, client_id: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, access_token: str, ) -> Response: ... @@ -1010,7 +1010,7 @@ async def async_delete_authorization( self, client_id: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, access_token: str, ) -> Response: ... @@ -1062,7 +1062,7 @@ def check_token( self, client_id: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, access_token: str, ) -> Response[Authorization]: ... @@ -1121,7 +1121,7 @@ async def async_check_token( self, client_id: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, access_token: str, ) -> Response[Authorization]: ... @@ -1180,7 +1180,7 @@ def delete_token( self, client_id: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, access_token: str, ) -> Response: ... @@ -1232,7 +1232,7 @@ async def async_delete_token( self, client_id: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, access_token: str, ) -> Response: ... @@ -1284,7 +1284,7 @@ def reset_token( self, client_id: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, access_token: str, ) -> Response[Authorization]: ... @@ -1341,7 +1341,7 @@ async def async_reset_token( self, client_id: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, access_token: str, ) -> Response[Authorization]: ... @@ -1398,7 +1398,7 @@ def scope_token( self, client_id: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, access_token: str, target: Missing[str] = UNSET, @@ -1464,7 +1464,7 @@ async def async_scope_token( self, client_id: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, access_token: str, target: Missing[str] = UNSET, diff --git a/githubkit/versions/v2022_11_28/rest/checks.py b/githubkit/versions/v2022_11_28/rest/checks.py index 0dd21cd6d..e0f749a1e 100644 --- a/githubkit/versions/v2022_11_28/rest/checks.py +++ b/githubkit/versions/v2022_11_28/rest/checks.py @@ -14,7 +14,7 @@ from pydantic import BaseModel -from githubkit.typing import Missing +from githubkit.typing import Missing, UnsetType from githubkit.utils import UNSET, exclude_unset from githubkit.compat import model_dump, type_validate_python @@ -86,7 +86,7 @@ def create( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, head_sha: str, @@ -117,7 +117,7 @@ def create( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, head_sha: str, @@ -212,7 +212,7 @@ async def async_create( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, head_sha: str, @@ -243,7 +243,7 @@ async def async_create( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, head_sha: str, @@ -386,7 +386,7 @@ def update( repo: str, check_run_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: Missing[str] = UNSET, details_url: Missing[str] = UNSET, @@ -419,7 +419,7 @@ def update( repo: str, check_run_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: Missing[str] = UNSET, details_url: Missing[str] = UNSET, @@ -518,7 +518,7 @@ async def async_update( repo: str, check_run_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: Missing[str] = UNSET, details_url: Missing[str] = UNSET, @@ -551,7 +551,7 @@ async def async_update( repo: str, check_run_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: Missing[str] = UNSET, details_url: Missing[str] = UNSET, @@ -767,7 +767,7 @@ def create_suite( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, head_sha: str, ) -> Response[CheckSuite]: ... @@ -820,7 +820,7 @@ async def async_create_suite( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, head_sha: str, ) -> Response[CheckSuite]: ... @@ -873,7 +873,7 @@ def set_suites_preferences( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, auto_trigger_checks: Missing[ List[ @@ -933,7 +933,7 @@ async def async_set_suites_preferences( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, auto_trigger_checks: Missing[ List[ diff --git a/githubkit/versions/v2022_11_28/rest/code_scanning.py b/githubkit/versions/v2022_11_28/rest/code_scanning.py index 62d24f82d..743afe92b 100644 --- a/githubkit/versions/v2022_11_28/rest/code_scanning.py +++ b/githubkit/versions/v2022_11_28/rest/code_scanning.py @@ -14,7 +14,7 @@ from pydantic import BaseModel -from githubkit.typing import Missing +from githubkit.typing import Missing, UnsetType from githubkit.utils import UNSET, exclude_unset from githubkit.compat import model_dump, type_validate_python @@ -377,7 +377,7 @@ def update_alert( repo: str, alert_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, state: Literal["open", "dismissed"], dismissed_reason: Missing[ @@ -449,7 +449,7 @@ async def async_update_alert( repo: str, alert_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, state: Literal["open", "dismissed"], dismissed_reason: Missing[ @@ -989,7 +989,7 @@ def create_variant_analysis( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, language: Literal[ "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "swift" @@ -1006,7 +1006,7 @@ def create_variant_analysis( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, language: Literal[ "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "swift" @@ -1023,7 +1023,7 @@ def create_variant_analysis( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, language: Literal[ "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "swift" @@ -1113,7 +1113,7 @@ async def async_create_variant_analysis( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, language: Literal[ "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "swift" @@ -1130,7 +1130,7 @@ async def async_create_variant_analysis( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, language: Literal[ "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "swift" @@ -1147,7 +1147,7 @@ async def async_create_variant_analysis( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, language: Literal[ "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "swift" @@ -1423,7 +1423,7 @@ def update_default_setup( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, state: Missing[Literal["configured", "not-configured"]] = UNSET, query_suite: Missing[Literal["default", "extended"]] = UNSET, @@ -1502,7 +1502,7 @@ async def async_update_default_setup( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, state: Missing[Literal["configured", "not-configured"]] = UNSET, query_suite: Missing[Literal["default", "extended"]] = UNSET, @@ -1581,7 +1581,7 @@ def upload_sarif( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, commit_sha: str, ref: str, @@ -1650,7 +1650,7 @@ async def async_upload_sarif( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, commit_sha: str, ref: str, diff --git a/githubkit/versions/v2022_11_28/rest/code_security.py b/githubkit/versions/v2022_11_28/rest/code_security.py index fb9e63459..c56235f84 100644 --- a/githubkit/versions/v2022_11_28/rest/code_security.py +++ b/githubkit/versions/v2022_11_28/rest/code_security.py @@ -14,7 +14,7 @@ from pydantic import BaseModel -from githubkit.typing import Missing +from githubkit.typing import Missing, UnsetType from githubkit.utils import UNSET, exclude_unset from githubkit.compat import model_dump, type_validate_python @@ -35,6 +35,7 @@ ) from ..types import ( OrgsOrgCodeSecurityConfigurationsPostBodyType, + OrgsOrgCodeSecurityConfigurationsDetachDeleteBodyType, OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyType, OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBodyType, OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType, @@ -148,7 +149,7 @@ def create_configuration( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, description: str, @@ -171,6 +172,7 @@ def create_configuration( private_vulnerability_reporting: Missing[ Literal["enabled", "disabled", "not_set"] ] = UNSET, + enforcement: Missing[Literal["enforced", "unenforced"]] = UNSET, ) -> Response[CodeSecurityConfiguration]: ... def create_configuration( @@ -221,7 +223,7 @@ async def async_create_configuration( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, description: str, @@ -244,6 +246,7 @@ async def async_create_configuration( private_vulnerability_reporting: Missing[ Literal["enabled", "disabled", "not_set"] ] = UNSET, + enforcement: Missing[Literal["enforced", "unenforced"]] = UNSET, ) -> Response[CodeSecurityConfiguration]: ... async def async_create_configuration( @@ -334,6 +337,126 @@ async def async_get_default_configurations( }, ) + @overload + def detach_configuration( + self, + org: str, + *, + headers: Optional[Dict[str, str]] = None, + data: OrgsOrgCodeSecurityConfigurationsDetachDeleteBodyType, + ) -> Response: ... + + @overload + def detach_configuration( + self, + org: str, + *, + data: UnsetType = UNSET, + headers: Optional[Dict[str, str]] = None, + selected_repository_ids: Missing[List[int]] = UNSET, + ) -> Response: ... + + def detach_configuration( + self, + org: str, + *, + headers: Optional[Dict[str, str]] = None, + data: Missing[OrgsOrgCodeSecurityConfigurationsDetachDeleteBodyType] = UNSET, + **kwargs, + ) -> Response: + """See also: https://docs.github.com/rest/code-security/configurations#detach-configurations-from-repositories""" + + from ..models import ( + BasicError, + OrgsOrgCodeSecurityConfigurationsDetachDeleteBody, + ) + + url = f"/orgs/{org}/code-security/configurations/detach" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + if not kwargs: + kwargs = UNSET + + json = kwargs if data is UNSET else data + json = type_validate_python( + OrgsOrgCodeSecurityConfigurationsDetachDeleteBody, json + ) + json = model_dump(json) if isinstance(json, BaseModel) else json + + return self._github.request( + "DELETE", + url, + json=exclude_unset(json), + headers=exclude_unset(headers), + error_models={ + "400": BasicError, + "403": BasicError, + "404": BasicError, + "409": BasicError, + }, + ) + + @overload + async def async_detach_configuration( + self, + org: str, + *, + headers: Optional[Dict[str, str]] = None, + data: OrgsOrgCodeSecurityConfigurationsDetachDeleteBodyType, + ) -> Response: ... + + @overload + async def async_detach_configuration( + self, + org: str, + *, + data: UnsetType = UNSET, + headers: Optional[Dict[str, str]] = None, + selected_repository_ids: Missing[List[int]] = UNSET, + ) -> Response: ... + + async def async_detach_configuration( + self, + org: str, + *, + headers: Optional[Dict[str, str]] = None, + data: Missing[OrgsOrgCodeSecurityConfigurationsDetachDeleteBodyType] = UNSET, + **kwargs, + ) -> Response: + """See also: https://docs.github.com/rest/code-security/configurations#detach-configurations-from-repositories""" + + from ..models import ( + BasicError, + OrgsOrgCodeSecurityConfigurationsDetachDeleteBody, + ) + + url = f"/orgs/{org}/code-security/configurations/detach" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + if not kwargs: + kwargs = UNSET + + json = kwargs if data is UNSET else data + json = type_validate_python( + OrgsOrgCodeSecurityConfigurationsDetachDeleteBody, json + ) + json = model_dump(json) if isinstance(json, BaseModel) else json + + return await self._github.arequest( + "DELETE", + url, + json=exclude_unset(json), + headers=exclude_unset(headers), + error_models={ + "400": BasicError, + "403": BasicError, + "404": BasicError, + "409": BasicError, + }, + ) + def get_configuration( self, org: str, @@ -456,7 +579,7 @@ def update_configuration( org: str, configuration_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: Missing[str] = UNSET, description: Missing[str] = UNSET, @@ -479,6 +602,7 @@ def update_configuration( private_vulnerability_reporting: Missing[ Literal["enabled", "disabled", "not_set"] ] = UNSET, + enforcement: Missing[Literal["enforced", "unenforced"]] = UNSET, ) -> Response[CodeSecurityConfiguration]: ... def update_configuration( @@ -536,7 +660,7 @@ async def async_update_configuration( org: str, configuration_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: Missing[str] = UNSET, description: Missing[str] = UNSET, @@ -559,6 +683,7 @@ async def async_update_configuration( private_vulnerability_reporting: Missing[ Literal["enabled", "disabled", "not_set"] ] = UNSET, + enforcement: Missing[Literal["enforced", "unenforced"]] = UNSET, ) -> Response[CodeSecurityConfiguration]: ... async def async_update_configuration( @@ -616,7 +741,7 @@ def attach_configuration( org: str, configuration_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, scope: Literal["all", "public", "private_or_internal", "selected"], selected_repository_ids: Missing[List[int]] = UNSET, @@ -677,7 +802,7 @@ async def async_attach_configuration( org: str, configuration_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, scope: Literal["all", "public", "private_or_internal", "selected"], selected_repository_ids: Missing[List[int]] = UNSET, @@ -740,7 +865,7 @@ def set_configuration_as_default( org: str, configuration_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, default_for_new_repos: Missing[ Literal["all", "none", "private_and_internal", "public"] @@ -813,7 +938,7 @@ async def async_set_configuration_as_default( org: str, configuration_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, default_for_new_repos: Missing[ Literal["all", "none", "private_and_internal", "public"] diff --git a/githubkit/versions/v2022_11_28/rest/codespaces.py b/githubkit/versions/v2022_11_28/rest/codespaces.py index 67615df9e..7d5887743 100644 --- a/githubkit/versions/v2022_11_28/rest/codespaces.py +++ b/githubkit/versions/v2022_11_28/rest/codespaces.py @@ -14,7 +14,7 @@ from pydantic import BaseModel -from githubkit.typing import Missing +from githubkit.typing import Missing, UnsetType from githubkit.utils import UNSET, exclude_unset from githubkit.compat import model_dump, type_validate_python @@ -170,7 +170,7 @@ def set_codespaces_access( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, visibility: Literal[ "disabled", @@ -230,7 +230,7 @@ async def async_set_codespaces_access( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, visibility: Literal[ "disabled", @@ -290,7 +290,7 @@ def set_codespaces_access_users( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, selected_usernames: List[str], ) -> Response: ... @@ -348,7 +348,7 @@ async def async_set_codespaces_access_users( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, selected_usernames: List[str], ) -> Response: ... @@ -406,7 +406,7 @@ def delete_codespaces_access_users( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, selected_usernames: List[str], ) -> Response: ... @@ -466,7 +466,7 @@ async def async_delete_codespaces_access_users( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, selected_usernames: List[str], ) -> Response: ... @@ -672,7 +672,7 @@ def create_or_update_org_secret( org: str, secret_name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, encrypted_value: Missing[str] = UNSET, key_id: Missing[str] = UNSET, @@ -737,7 +737,7 @@ async def async_create_or_update_org_secret( org: str, secret_name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, encrypted_value: Missing[str] = UNSET, key_id: Missing[str] = UNSET, @@ -922,7 +922,7 @@ def set_selected_repos_for_org_secret( org: str, secret_name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, selected_repository_ids: List[int], ) -> Response: ... @@ -984,7 +984,7 @@ async def async_set_selected_repos_for_org_secret( org: str, secret_name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, selected_repository_ids: List[int], ) -> Response: ... @@ -1424,7 +1424,7 @@ def create_with_repo_for_authenticated_user( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, ref: Missing[str] = UNSET, location: Missing[str] = UNSET, @@ -1503,7 +1503,7 @@ async def async_create_with_repo_for_authenticated_user( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, ref: Missing[str] = UNSET, location: Missing[str] = UNSET, @@ -2044,7 +2044,7 @@ def create_or_update_repo_secret( repo: str, secret_name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, encrypted_value: Missing[str] = UNSET, key_id: Missing[str] = UNSET, @@ -2106,7 +2106,7 @@ async def async_create_or_update_repo_secret( repo: str, secret_name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, encrypted_value: Missing[str] = UNSET, key_id: Missing[str] = UNSET, @@ -2208,7 +2208,7 @@ def create_with_pr_for_authenticated_user( repo: str, pull_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, location: Missing[str] = UNSET, geo: Missing[ @@ -2292,7 +2292,7 @@ async def async_create_with_pr_for_authenticated_user( repo: str, pull_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, location: Missing[str] = UNSET, geo: Missing[ @@ -2442,7 +2442,7 @@ def create_for_authenticated_user( def create_for_authenticated_user( self, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, repository_id: int, ref: Missing[str] = UNSET, @@ -2464,7 +2464,7 @@ def create_for_authenticated_user( def create_for_authenticated_user( self, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, pull_request: UserCodespacesPostBodyOneof1PropPullRequestType, location: Missing[str] = UNSET, @@ -2537,7 +2537,7 @@ async def async_create_for_authenticated_user( async def async_create_for_authenticated_user( self, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, repository_id: int, ref: Missing[str] = UNSET, @@ -2559,7 +2559,7 @@ async def async_create_for_authenticated_user( async def async_create_for_authenticated_user( self, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, pull_request: UserCodespacesPostBodyOneof1PropPullRequestType, location: Missing[str] = UNSET, @@ -2772,7 +2772,7 @@ def create_or_update_secret_for_authenticated_user( self, secret_name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, encrypted_value: Missing[str] = UNSET, key_id: str, @@ -2833,7 +2833,7 @@ async def async_create_or_update_secret_for_authenticated_user( self, secret_name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, encrypted_value: Missing[str] = UNSET, key_id: str, @@ -2990,7 +2990,7 @@ def set_repositories_for_secret_for_authenticated_user( self, secret_name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, selected_repository_ids: List[int], ) -> Response: ... @@ -3050,7 +3050,7 @@ async def async_set_repositories_for_secret_for_authenticated_user( self, secret_name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, selected_repository_ids: List[int], ) -> Response: ... @@ -3332,7 +3332,7 @@ def update_for_authenticated_user( self, codespace_name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, machine: Missing[str] = UNSET, display_name: Missing[str] = UNSET, @@ -3389,7 +3389,7 @@ async def async_update_for_authenticated_user( self, codespace_name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, machine: Missing[str] = UNSET, display_name: Missing[str] = UNSET, @@ -3612,7 +3612,7 @@ def publish_for_authenticated_user( self, codespace_name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: Missing[str] = UNSET, private: Missing[bool] = UNSET, @@ -3674,7 +3674,7 @@ async def async_publish_for_authenticated_user( self, codespace_name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: Missing[str] = UNSET, private: Missing[bool] = UNSET, diff --git a/githubkit/versions/v2022_11_28/rest/copilot.py b/githubkit/versions/v2022_11_28/rest/copilot.py index ca0881303..54dc75344 100644 --- a/githubkit/versions/v2022_11_28/rest/copilot.py +++ b/githubkit/versions/v2022_11_28/rest/copilot.py @@ -10,11 +10,11 @@ from __future__ import annotations from weakref import ref -from typing import TYPE_CHECKING, Dict, Literal, Optional, overload +from typing import TYPE_CHECKING, Dict, Optional, overload from pydantic import BaseModel -from githubkit.typing import Missing +from githubkit.typing import Missing, UnsetType from githubkit.utils import UNSET, exclude_unset from githubkit.compat import model_dump, type_validate_python @@ -356,7 +356,7 @@ def add_copilot_seats_for_teams( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, selected_teams: List[str], ) -> Response[OrgsOrgCopilotBillingSelectedTeamsPostResponse201]: ... @@ -416,7 +416,7 @@ async def async_add_copilot_seats_for_teams( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, selected_teams: List[str], ) -> Response[OrgsOrgCopilotBillingSelectedTeamsPostResponse201]: ... @@ -476,7 +476,7 @@ def cancel_copilot_seat_assignment_for_teams( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, selected_teams: List[str], ) -> Response[OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200]: ... @@ -536,7 +536,7 @@ async def async_cancel_copilot_seat_assignment_for_teams( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, selected_teams: List[str], ) -> Response[OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200]: ... @@ -596,7 +596,7 @@ def add_copilot_seats_for_users( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, selected_usernames: List[str], ) -> Response[OrgsOrgCopilotBillingSelectedUsersPostResponse201]: ... @@ -656,7 +656,7 @@ async def async_add_copilot_seats_for_users( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, selected_usernames: List[str], ) -> Response[OrgsOrgCopilotBillingSelectedUsersPostResponse201]: ... @@ -716,7 +716,7 @@ def cancel_copilot_seat_assignment_for_users( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, selected_usernames: List[str], ) -> Response[OrgsOrgCopilotBillingSelectedUsersDeleteResponse200]: ... @@ -776,7 +776,7 @@ async def async_cancel_copilot_seat_assignment_for_users( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, selected_usernames: List[str], ) -> Response[OrgsOrgCopilotBillingSelectedUsersDeleteResponse200]: ... diff --git a/githubkit/versions/v2022_11_28/rest/dependabot.py b/githubkit/versions/v2022_11_28/rest/dependabot.py index 8a6d7620e..6f55ed592 100644 --- a/githubkit/versions/v2022_11_28/rest/dependabot.py +++ b/githubkit/versions/v2022_11_28/rest/dependabot.py @@ -14,7 +14,7 @@ from pydantic import BaseModel -from githubkit.typing import Missing +from githubkit.typing import Missing, UnsetType from githubkit.utils import UNSET, exclude_unset from githubkit.compat import model_dump, type_validate_python @@ -462,7 +462,7 @@ def create_or_update_org_secret( org: str, secret_name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, encrypted_value: Missing[str] = UNSET, key_id: Missing[str] = UNSET, @@ -518,7 +518,7 @@ async def async_create_or_update_org_secret( org: str, secret_name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, encrypted_value: Missing[str] = UNSET, key_id: Missing[str] = UNSET, @@ -676,7 +676,7 @@ def set_selected_repos_for_org_secret( org: str, secret_name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, selected_repository_ids: List[int], ) -> Response: ... @@ -732,7 +732,7 @@ async def async_set_selected_repos_for_org_secret( org: str, secret_name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, selected_repository_ids: List[int], ) -> Response: ... @@ -1060,7 +1060,7 @@ def update_alert( repo: str, alert_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, state: Literal["dismissed", "open"], dismissed_reason: Missing[ @@ -1140,7 +1140,7 @@ async def async_update_alert( repo: str, alert_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, state: Literal["dismissed", "open"], dismissed_reason: Missing[ @@ -1370,7 +1370,7 @@ def create_or_update_repo_secret( repo: str, secret_name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, encrypted_value: Missing[str] = UNSET, key_id: Missing[str] = UNSET, @@ -1432,7 +1432,7 @@ async def async_create_or_update_repo_secret( repo: str, secret_name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, encrypted_value: Missing[str] = UNSET, key_id: Missing[str] = UNSET, diff --git a/githubkit/versions/v2022_11_28/rest/dependency_graph.py b/githubkit/versions/v2022_11_28/rest/dependency_graph.py index 19a7531bd..9180dc465 100644 --- a/githubkit/versions/v2022_11_28/rest/dependency_graph.py +++ b/githubkit/versions/v2022_11_28/rest/dependency_graph.py @@ -10,11 +10,11 @@ from __future__ import annotations from weakref import ref -from typing import TYPE_CHECKING, Dict, Literal, Optional, overload +from typing import TYPE_CHECKING, Dict, Optional, overload from pydantic import BaseModel -from githubkit.typing import Missing +from githubkit.typing import Missing, UnsetType from githubkit.utils import UNSET, exclude_unset from githubkit.compat import model_dump, type_validate_python @@ -194,7 +194,7 @@ def create_repository_snapshot( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, version: int, job: SnapshotPropJobType, @@ -257,7 +257,7 @@ async def async_create_repository_snapshot( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, version: int, job: SnapshotPropJobType, diff --git a/githubkit/versions/v2022_11_28/rest/gists.py b/githubkit/versions/v2022_11_28/rest/gists.py index 7dbd0ac87..4b36e23e5 100644 --- a/githubkit/versions/v2022_11_28/rest/gists.py +++ b/githubkit/versions/v2022_11_28/rest/gists.py @@ -14,7 +14,7 @@ from pydantic import BaseModel -from githubkit.typing import Missing +from githubkit.typing import Missing, UnsetType from githubkit.utils import UNSET, exclude_unset from githubkit.compat import model_dump, type_validate_python @@ -132,7 +132,7 @@ def create( def create( self, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, description: Missing[str] = UNSET, files: GistsPostBodyPropFilesType, @@ -183,7 +183,7 @@ async def async_create( async def async_create( self, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, description: Missing[str] = UNSET, files: GistsPostBodyPropFilesType, @@ -481,7 +481,7 @@ def update( self, gist_id: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, description: Missing[str] = UNSET, files: Missing[GistsGistIdPatchBodyPropFilesType] = UNSET, @@ -543,7 +543,7 @@ async def async_update( self, gist_id: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, description: Missing[str] = UNSET, files: Missing[GistsGistIdPatchBodyPropFilesType] = UNSET, @@ -675,7 +675,7 @@ def create_comment( self, gist_id: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, body: str, ) -> Response[GistComment]: ... @@ -729,7 +729,7 @@ async def async_create_comment( self, gist_id: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, body: str, ) -> Response[GistComment]: ... @@ -887,7 +887,7 @@ def update_comment( gist_id: str, comment_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, body: str, ) -> Response[GistComment]: ... @@ -947,7 +947,7 @@ async def async_update_comment( gist_id: str, comment_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, body: str, ) -> Response[GistComment]: ... diff --git a/githubkit/versions/v2022_11_28/rest/git.py b/githubkit/versions/v2022_11_28/rest/git.py index c69bc0e47..a826f1b88 100644 --- a/githubkit/versions/v2022_11_28/rest/git.py +++ b/githubkit/versions/v2022_11_28/rest/git.py @@ -14,7 +14,7 @@ from pydantic import BaseModel -from githubkit.typing import Missing +from githubkit.typing import Missing, UnsetType from githubkit.utils import UNSET, exclude_unset from githubkit.compat import model_dump, type_validate_python @@ -72,7 +72,7 @@ def create_blob( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, content: str, encoding: Missing[str] = UNSET, @@ -137,7 +137,7 @@ async def async_create_blob( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, content: str, encoding: Missing[str] = UNSET, @@ -260,7 +260,7 @@ def create_commit( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, message: str, tree: str, @@ -328,7 +328,7 @@ async def async_create_commit( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, message: str, tree: str, @@ -560,7 +560,7 @@ def create_ref( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, ref: str, sha: str, @@ -623,7 +623,7 @@ async def async_create_ref( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, ref: str, sha: str, @@ -740,7 +740,7 @@ def update_ref( repo: str, ref: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, sha: str, force: Missing[bool] = UNSET, @@ -806,7 +806,7 @@ async def async_update_ref( repo: str, ref: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, sha: str, force: Missing[bool] = UNSET, @@ -870,7 +870,7 @@ def create_tag( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, tag: str, message: str, @@ -936,7 +936,7 @@ async def async_create_tag( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, tag: str, message: str, @@ -1056,7 +1056,7 @@ def create_tree( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, tree: List[ReposOwnerRepoGitTreesPostBodyPropTreeItemsType], base_tree: Missing[str] = UNSET, @@ -1121,7 +1121,7 @@ async def async_create_tree( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, tree: List[ReposOwnerRepoGitTreesPostBodyPropTreeItemsType], base_tree: Missing[str] = UNSET, diff --git a/githubkit/versions/v2022_11_28/rest/interactions.py b/githubkit/versions/v2022_11_28/rest/interactions.py index 1d1d6c1e4..3d9b606ab 100644 --- a/githubkit/versions/v2022_11_28/rest/interactions.py +++ b/githubkit/versions/v2022_11_28/rest/interactions.py @@ -14,7 +14,7 @@ from pydantic import BaseModel -from githubkit.typing import Missing +from githubkit.typing import Missing, UnsetType from githubkit.utils import UNSET, exclude_unset from githubkit.compat import model_dump, type_validate_python @@ -124,7 +124,7 @@ def set_restrictions_for_org( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, limit: Literal["existing_users", "contributors_only", "collaborators_only"], expiry: Missing[ @@ -180,7 +180,7 @@ async def async_set_restrictions_for_org( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, limit: Literal["existing_users", "contributors_only", "collaborators_only"], expiry: Missing[ @@ -344,7 +344,7 @@ def set_restrictions_for_repo( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, limit: Literal["existing_users", "contributors_only", "collaborators_only"], expiry: Missing[ @@ -401,7 +401,7 @@ async def async_set_restrictions_for_repo( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, limit: Literal["existing_users", "contributors_only", "collaborators_only"], expiry: Missing[ @@ -549,7 +549,7 @@ def set_restrictions_for_authenticated_user( def set_restrictions_for_authenticated_user( self, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, limit: Literal["existing_users", "contributors_only", "collaborators_only"], expiry: Missing[ @@ -599,7 +599,7 @@ async def async_set_restrictions_for_authenticated_user( async def async_set_restrictions_for_authenticated_user( self, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, limit: Literal["existing_users", "contributors_only", "collaborators_only"], expiry: Missing[ diff --git a/githubkit/versions/v2022_11_28/rest/issues.py b/githubkit/versions/v2022_11_28/rest/issues.py index a96ea70f2..74b1e97c8 100644 --- a/githubkit/versions/v2022_11_28/rest/issues.py +++ b/githubkit/versions/v2022_11_28/rest/issues.py @@ -15,7 +15,7 @@ from pydantic import Field, BaseModel -from githubkit.typing import Missing +from githubkit.typing import Missing, UnsetType from githubkit.utils import UNSET, exclude_unset from githubkit.compat import model_dump, type_validate_python @@ -552,7 +552,7 @@ def create( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, title: Union[str, int], body: Missing[str] = UNSET, @@ -626,7 +626,7 @@ async def async_create( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, title: Union[str, int], body: Missing[str] = UNSET, @@ -878,7 +878,7 @@ def update_comment( repo: str, comment_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, body: str, ) -> Response[IssueComment]: ... @@ -943,7 +943,7 @@ async def async_update_comment( repo: str, comment_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, body: str, ) -> Response[IssueComment]: ... @@ -1188,7 +1188,7 @@ def update( repo: str, issue_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, title: Missing[Union[str, int, None]] = UNSET, body: Missing[Union[str, None]] = UNSET, @@ -1273,7 +1273,7 @@ async def async_update( repo: str, issue_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, title: Missing[Union[str, int, None]] = UNSET, body: Missing[Union[str, None]] = UNSET, @@ -1358,7 +1358,7 @@ def add_assignees( repo: str, issue_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, assignees: Missing[List[str]] = UNSET, ) -> Response[Issue]: ... @@ -1416,7 +1416,7 @@ async def async_add_assignees( repo: str, issue_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, assignees: Missing[List[str]] = UNSET, ) -> Response[Issue]: ... @@ -1474,7 +1474,7 @@ def remove_assignees( repo: str, issue_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, assignees: Missing[List[str]] = UNSET, ) -> Response[Issue]: ... @@ -1532,7 +1532,7 @@ async def async_remove_assignees( repo: str, issue_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, assignees: Missing[List[str]] = UNSET, ) -> Response[Issue]: ... @@ -1720,7 +1720,7 @@ def create_comment( repo: str, issue_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, body: str, ) -> Response[IssueComment]: ... @@ -1789,7 +1789,7 @@ async def async_create_comment( repo: str, issue_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, body: str, ) -> Response[IssueComment]: ... @@ -2122,7 +2122,7 @@ def set_labels( repo: str, issue_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, labels: Missing[List[str]] = UNSET, ) -> Response[List[Label]]: ... @@ -2134,7 +2134,7 @@ def set_labels( repo: str, issue_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, labels: Missing[ List[ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType] @@ -2234,7 +2234,7 @@ async def async_set_labels( repo: str, issue_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, labels: Missing[List[str]] = UNSET, ) -> Response[List[Label]]: ... @@ -2246,7 +2246,7 @@ async def async_set_labels( repo: str, issue_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, labels: Missing[ List[ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType] @@ -2346,7 +2346,7 @@ def add_labels( repo: str, issue_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, labels: Missing[List[str]] = UNSET, ) -> Response[List[Label]]: ... @@ -2358,7 +2358,7 @@ def add_labels( repo: str, issue_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, labels: Missing[ List[ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType] @@ -2458,7 +2458,7 @@ async def async_add_labels( repo: str, issue_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, labels: Missing[List[str]] = UNSET, ) -> Response[List[Label]]: ... @@ -2470,7 +2470,7 @@ async def async_add_labels( repo: str, issue_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, labels: Missing[ List[ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType] @@ -2676,7 +2676,7 @@ def lock( repo: str, issue_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, lock_reason: Missing[ Literal["off-topic", "too heated", "resolved", "spam"] @@ -2751,7 +2751,7 @@ async def async_lock( repo: str, issue_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, lock_reason: Missing[ Literal["off-topic", "too heated", "resolved", "spam"] @@ -3170,7 +3170,7 @@ def create_label( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, color: Missing[str] = UNSET, @@ -3234,7 +3234,7 @@ async def async_create_label( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, color: Missing[str] = UNSET, @@ -3392,7 +3392,7 @@ def update_label( repo: str, name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, new_name: Missing[str] = UNSET, color: Missing[str] = UNSET, @@ -3450,7 +3450,7 @@ async def async_update_label( repo: str, name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, new_name: Missing[str] = UNSET, color: Missing[str] = UNSET, @@ -3588,7 +3588,7 @@ def create_milestone( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, title: str, state: Missing[Literal["open", "closed"]] = UNSET, @@ -3653,7 +3653,7 @@ async def async_create_milestone( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, title: str, state: Missing[Literal["open", "closed"]] = UNSET, @@ -3822,7 +3822,7 @@ def update_milestone( repo: str, milestone_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, title: Missing[str] = UNSET, state: Missing[Literal["open", "closed"]] = UNSET, @@ -3883,7 +3883,7 @@ async def async_update_milestone( repo: str, milestone_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, title: Missing[str] = UNSET, state: Missing[Literal["open", "closed"]] = UNSET, diff --git a/githubkit/versions/v2022_11_28/rest/markdown.py b/githubkit/versions/v2022_11_28/rest/markdown.py index d474f684d..2c3be958c 100644 --- a/githubkit/versions/v2022_11_28/rest/markdown.py +++ b/githubkit/versions/v2022_11_28/rest/markdown.py @@ -14,7 +14,7 @@ from pydantic import BaseModel -from githubkit.typing import Missing +from githubkit.typing import Missing, UnsetType from githubkit.utils import UNSET, exclude_unset from githubkit.compat import model_dump, type_validate_python @@ -53,7 +53,7 @@ def render( def render( self, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, text: str, mode: Missing[Literal["markdown", "gfm"]] = UNSET, @@ -99,7 +99,7 @@ async def async_render( async def async_render( self, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, text: str, mode: Missing[Literal["markdown", "gfm"]] = UNSET, diff --git a/githubkit/versions/v2022_11_28/rest/migrations.py b/githubkit/versions/v2022_11_28/rest/migrations.py index f07e5761a..764575118 100644 --- a/githubkit/versions/v2022_11_28/rest/migrations.py +++ b/githubkit/versions/v2022_11_28/rest/migrations.py @@ -14,7 +14,7 @@ from pydantic import BaseModel -from githubkit.typing import Missing +from githubkit.typing import Missing, UnsetType from githubkit.utils import UNSET, exclude_unset from githubkit.compat import model_dump, type_validate_python @@ -138,7 +138,7 @@ def start_for_org( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, repositories: List[str], lock_repositories: Missing[bool] = UNSET, @@ -205,7 +205,7 @@ async def async_start_for_org( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, repositories: List[str], lock_repositories: Missing[bool] = UNSET, @@ -604,7 +604,7 @@ def start_import( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, vcs_url: str, vcs: Missing[Literal["subversion", "git", "mercurial", "tfvc"]] = UNSET, @@ -671,7 +671,7 @@ async def async_start_import( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, vcs_url: str, vcs: Missing[Literal["subversion", "git", "mercurial", "tfvc"]] = UNSET, @@ -786,7 +786,7 @@ def update_import( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, vcs_username: Missing[str] = UNSET, vcs_password: Missing[str] = UNSET, @@ -847,7 +847,7 @@ async def async_update_import( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, vcs_username: Missing[str] = UNSET, vcs_password: Missing[str] = UNSET, @@ -978,7 +978,7 @@ def map_commit_author( repo: str, author_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, email: Missing[str] = UNSET, name: Missing[str] = UNSET, @@ -1045,7 +1045,7 @@ async def async_map_commit_author( repo: str, author_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, email: Missing[str] = UNSET, name: Missing[str] = UNSET, @@ -1164,7 +1164,7 @@ def set_lfs_preference( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, use_lfs: Literal["opt_in", "opt_out"], ) -> Response[Import]: ... @@ -1226,7 +1226,7 @@ async def async_set_lfs_preference( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, use_lfs: Literal["opt_in", "opt_out"], ) -> Response[Import]: ... @@ -1352,7 +1352,7 @@ def start_for_authenticated_user( def start_for_authenticated_user( self, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, lock_repositories: Missing[bool] = UNSET, exclude_metadata: Missing[bool] = UNSET, @@ -1417,7 +1417,7 @@ async def async_start_for_authenticated_user( async def async_start_for_authenticated_user( self, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, lock_repositories: Missing[bool] = UNSET, exclude_metadata: Missing[bool] = UNSET, diff --git a/githubkit/versions/v2022_11_28/rest/oidc.py b/githubkit/versions/v2022_11_28/rest/oidc.py index d78bc64ea..24d2df392 100644 --- a/githubkit/versions/v2022_11_28/rest/oidc.py +++ b/githubkit/versions/v2022_11_28/rest/oidc.py @@ -10,11 +10,11 @@ from __future__ import annotations from weakref import ref -from typing import TYPE_CHECKING, Dict, Literal, Optional, overload +from typing import TYPE_CHECKING, Dict, Optional, overload from pydantic import BaseModel -from githubkit.typing import Missing +from githubkit.typing import Missing, UnsetType from githubkit.utils import UNSET, exclude_unset from githubkit.compat import model_dump, type_validate_python @@ -99,7 +99,7 @@ def update_oidc_custom_sub_template_for_org( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, include_claim_keys: List[str], ) -> Response[EmptyObject]: ... @@ -153,7 +153,7 @@ async def async_update_oidc_custom_sub_template_for_org( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, include_claim_keys: List[str], ) -> Response[EmptyObject]: ... diff --git a/githubkit/versions/v2022_11_28/rest/orgs.py b/githubkit/versions/v2022_11_28/rest/orgs.py index dba39edc6..03960271c 100644 --- a/githubkit/versions/v2022_11_28/rest/orgs.py +++ b/githubkit/versions/v2022_11_28/rest/orgs.py @@ -14,7 +14,7 @@ from pydantic import BaseModel -from githubkit.typing import Missing +from githubkit.typing import Missing, UnsetType from githubkit.utils import UNSET, exclude_unset from githubkit.compat import model_dump, type_validate_python @@ -273,7 +273,7 @@ def update( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, billing_email: Missing[str] = UNSET, company: Missing[str] = UNSET, @@ -369,7 +369,7 @@ async def async_update( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, billing_email: Missing[str] = UNSET, company: Missing[str] = UNSET, @@ -861,7 +861,7 @@ def create_webhook( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, config: OrgsOrgHooksPostBodyPropConfigType, @@ -918,7 +918,7 @@ async def async_create_webhook( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, config: OrgsOrgHooksPostBodyPropConfigType, @@ -1075,7 +1075,7 @@ def update_webhook( org: str, hook_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, config: Missing[OrgsOrgHooksHookIdPatchBodyPropConfigType] = UNSET, events: Missing[List[str]] = UNSET, @@ -1140,7 +1140,7 @@ async def async_update_webhook( org: str, hook_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, config: Missing[OrgsOrgHooksHookIdPatchBodyPropConfigType] = UNSET, events: Missing[List[str]] = UNSET, @@ -1249,7 +1249,7 @@ def update_webhook_config_for_org( org: str, hook_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, url: Missing[str] = UNSET, content_type: Missing[str] = UNSET, @@ -1305,7 +1305,7 @@ async def async_update_webhook_config_for_org( org: str, hook_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, url: Missing[str] = UNSET, content_type: Missing[str] = UNSET, @@ -1741,7 +1741,7 @@ def create_invitation( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, invitee_id: Missing[int] = UNSET, email: Missing[str] = UNSET, @@ -1805,7 +1805,7 @@ async def async_create_invitation( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, invitee_id: Missing[int] = UNSET, email: Missing[str] = UNSET, @@ -2207,7 +2207,7 @@ def set_membership_for_user( org: str, username: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, role: Missing[Literal["admin", "member"]] = UNSET, ) -> Response[OrgMembership]: ... @@ -2269,7 +2269,7 @@ async def async_set_membership_for_user( org: str, username: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, role: Missing[Literal["admin", "member"]] = UNSET, ) -> Response[OrgMembership]: ... @@ -2499,7 +2499,7 @@ def create_custom_organization_role( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, description: Missing[str] = UNSET, @@ -2561,7 +2561,7 @@ async def async_create_custom_organization_role( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, description: Missing[str] = UNSET, @@ -2955,7 +2955,7 @@ def patch_custom_organization_role( org: str, role_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: Missing[str] = UNSET, description: Missing[str] = UNSET, @@ -3020,7 +3020,7 @@ async def async_patch_custom_organization_role( org: str, role_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: Missing[str] = UNSET, description: Missing[str] = UNSET, @@ -3283,7 +3283,7 @@ def convert_member_to_outside_collaborator( org: str, username: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, async_: Missing[bool] = UNSET, ) -> Response[OrgsOrgOutsideCollaboratorsUsernamePutResponse202]: ... @@ -3343,7 +3343,7 @@ async def async_convert_member_to_outside_collaborator( org: str, username: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, async_: Missing[bool] = UNSET, ) -> Response[OrgsOrgOutsideCollaboratorsUsernamePutResponse202]: ... @@ -3559,7 +3559,7 @@ def review_pat_grant_requests_in_bulk( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, pat_request_ids: Missing[List[int]] = UNSET, action: Literal["approve", "deny"], @@ -3622,7 +3622,7 @@ async def async_review_pat_grant_requests_in_bulk( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, pat_request_ids: Missing[List[int]] = UNSET, action: Literal["approve", "deny"], @@ -3687,7 +3687,7 @@ def review_pat_grant_request( org: str, pat_request_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, action: Literal["approve", "deny"], reason: Missing[Union[str, None]] = UNSET, @@ -3754,7 +3754,7 @@ async def async_review_pat_grant_request( org: str, pat_request_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, action: Literal["approve", "deny"], reason: Missing[Union[str, None]] = UNSET, @@ -4007,7 +4007,7 @@ def update_pat_accesses( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, action: Literal["revoke"], pat_ids: List[int], @@ -4069,7 +4069,7 @@ async def async_update_pat_accesses( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, action: Literal["revoke"], pat_ids: List[int], @@ -4133,7 +4133,7 @@ def update_pat_access( org: str, pat_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, action: Literal["revoke"], ) -> Response: ... @@ -4195,7 +4195,7 @@ async def async_update_pat_access( org: str, pat_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, action: Literal["revoke"], ) -> Response: ... @@ -4383,7 +4383,7 @@ def create_or_update_custom_properties( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, properties: List[OrgCustomPropertyType], ) -> Response[List[OrgCustomProperty]]: ... @@ -4443,7 +4443,7 @@ async def async_create_or_update_custom_properties( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, properties: List[OrgCustomPropertyType], ) -> Response[List[OrgCustomProperty]]: ... @@ -4557,7 +4557,7 @@ def create_or_update_custom_property( org: str, custom_property_name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, value_type: Literal["string", "single_select", "multi_select", "true_false"], required: Missing[bool] = UNSET, @@ -4624,7 +4624,7 @@ async def async_create_or_update_custom_property( org: str, custom_property_name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, value_type: Literal["string", "single_select", "multi_select", "true_false"], required: Missing[bool] = UNSET, @@ -4813,7 +4813,7 @@ def create_or_update_custom_properties_values_for_repos( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, repository_names: List[str], properties: List[CustomPropertyValueType], @@ -4872,7 +4872,7 @@ async def async_create_or_update_custom_properties_values_for_repos( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, repository_names: List[str], properties: List[CustomPropertyValueType], @@ -5261,7 +5261,7 @@ def enable_or_disable_security_product_on_all_org_repos( ], enablement: Literal["enable_all", "disable_all"], *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, query_suite: Missing[Literal["default", "extended"]] = UNSET, ) -> Response: ... @@ -5341,7 +5341,7 @@ async def async_enable_or_disable_security_product_on_all_org_repos( ], enablement: Literal["enable_all", "disable_all"], *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, query_suite: Missing[Literal["default", "extended"]] = UNSET, ) -> Response: ... @@ -5525,7 +5525,7 @@ def update_membership_for_authenticated_user( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, state: Literal["active"], ) -> Response[OrgMembership]: ... @@ -5585,7 +5585,7 @@ async def async_update_membership_for_authenticated_user( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, state: Literal["active"], ) -> Response[OrgMembership]: ... diff --git a/githubkit/versions/v2022_11_28/rest/projects.py b/githubkit/versions/v2022_11_28/rest/projects.py index c93be4cb9..867821d08 100644 --- a/githubkit/versions/v2022_11_28/rest/projects.py +++ b/githubkit/versions/v2022_11_28/rest/projects.py @@ -14,7 +14,7 @@ from pydantic import BaseModel -from githubkit.typing import Missing +from githubkit.typing import Missing, UnsetType from githubkit.utils import UNSET, exclude_unset from githubkit.compat import model_dump, type_validate_python @@ -152,7 +152,7 @@ def create_for_org( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, body: Missing[str] = UNSET, @@ -215,7 +215,7 @@ async def async_create_for_org( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, body: Missing[str] = UNSET, @@ -380,7 +380,7 @@ def update_card( self, card_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, note: Missing[Union[str, None]] = UNSET, archived: Missing[bool] = UNSET, @@ -442,7 +442,7 @@ async def async_update_card( self, card_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, note: Missing[Union[str, None]] = UNSET, archived: Missing[bool] = UNSET, @@ -504,7 +504,7 @@ def move_card( self, card_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, position: str, column_id: Missing[int] = UNSET, @@ -568,7 +568,7 @@ async def async_move_card( self, card_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, position: str, column_id: Missing[int] = UNSET, @@ -732,7 +732,7 @@ def update_column( self, column_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, ) -> Response[ProjectColumn]: ... @@ -786,7 +786,7 @@ async def async_update_column( self, column_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, ) -> Response[ProjectColumn]: ... @@ -917,7 +917,7 @@ def create_card( self, column_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, note: Union[str, None], ) -> Response[ProjectCard]: ... @@ -927,7 +927,7 @@ def create_card( self, column_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, content_id: int, content_type: str, @@ -1008,7 +1008,7 @@ async def async_create_card( self, column_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, note: Union[str, None], ) -> Response[ProjectCard]: ... @@ -1018,7 +1018,7 @@ async def async_create_card( self, column_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, content_id: int, content_type: str, @@ -1096,7 +1096,7 @@ def move_column( self, column_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, position: str, ) -> Response[ProjectsColumnsColumnIdMovesPostResponse201]: ... @@ -1156,7 +1156,7 @@ async def async_move_column( self, column_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, position: str, ) -> Response[ProjectsColumnsColumnIdMovesPostResponse201]: ... @@ -1318,7 +1318,7 @@ def update( self, project_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: Missing[str] = UNSET, body: Missing[Union[str, None]] = UNSET, @@ -1386,7 +1386,7 @@ async def async_update( self, project_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: Missing[str] = UNSET, body: Missing[Union[str, None]] = UNSET, @@ -1536,7 +1536,7 @@ def add_collaborator( project_id: int, username: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, permission: Missing[Literal["read", "write", "admin"]] = UNSET, ) -> Response: ... @@ -1606,7 +1606,7 @@ async def async_add_collaborator( project_id: int, username: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, permission: Missing[Literal["read", "write", "admin"]] = UNSET, ) -> Response: ... @@ -1852,7 +1852,7 @@ def create_column( self, project_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, ) -> Response[ProjectColumn]: ... @@ -1912,7 +1912,7 @@ async def async_create_column( self, project_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, ) -> Response[ProjectColumn]: ... @@ -2056,7 +2056,7 @@ def create_for_repo( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, body: Missing[str] = UNSET, @@ -2122,7 +2122,7 @@ async def async_create_for_repo( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, body: Missing[str] = UNSET, @@ -2184,7 +2184,7 @@ def create_for_authenticated_user( def create_for_authenticated_user( self, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, body: Missing[Union[str, None]] = UNSET, @@ -2242,7 +2242,7 @@ async def async_create_for_authenticated_user( async def async_create_for_authenticated_user( self, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, body: Missing[Union[str, None]] = UNSET, diff --git a/githubkit/versions/v2022_11_28/rest/pulls.py b/githubkit/versions/v2022_11_28/rest/pulls.py index 02a21b394..11fadcc9f 100644 --- a/githubkit/versions/v2022_11_28/rest/pulls.py +++ b/githubkit/versions/v2022_11_28/rest/pulls.py @@ -14,7 +14,7 @@ from pydantic import BaseModel -from githubkit.typing import Missing +from githubkit.typing import Missing, UnsetType from githubkit.utils import UNSET, exclude_unset from githubkit.compat import model_dump, type_validate_python @@ -183,7 +183,7 @@ def create( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, title: Missing[str] = UNSET, head: str, @@ -252,7 +252,7 @@ async def async_create( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, title: Missing[str] = UNSET, head: str, @@ -501,7 +501,7 @@ def update_review_comment( repo: str, comment_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, body: str, ) -> Response[PullRequestReviewComment]: ... @@ -560,7 +560,7 @@ async def async_update_review_comment( repo: str, comment_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, body: str, ) -> Response[PullRequestReviewComment]: ... @@ -685,7 +685,7 @@ def update( repo: str, pull_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, title: Missing[str] = UNSET, body: Missing[str] = UNSET, @@ -754,7 +754,7 @@ async def async_update( repo: str, pull_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, title: Missing[str] = UNSET, body: Missing[str] = UNSET, @@ -901,7 +901,7 @@ def create_review_comment( repo: str, pull_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, body: str, commit_id: str, @@ -975,7 +975,7 @@ async def async_create_review_comment( repo: str, pull_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, body: str, commit_id: str, @@ -1051,7 +1051,7 @@ def create_reply_for_review_comment( pull_number: int, comment_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, body: str, ) -> Response[PullRequestReviewComment]: ... @@ -1121,7 +1121,7 @@ async def async_create_reply_for_review_comment( pull_number: int, comment_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, body: str, ) -> Response[PullRequestReviewComment]: ... @@ -1385,7 +1385,7 @@ def merge( repo: str, pull_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, commit_title: Missing[str] = UNSET, commit_message: Missing[str] = UNSET, @@ -1466,7 +1466,7 @@ async def async_merge( repo: str, pull_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, commit_title: Missing[str] = UNSET, commit_message: Missing[str] = UNSET, @@ -1596,7 +1596,7 @@ def request_reviewers( repo: str, pull_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, reviewers: List[str], team_reviewers: Missing[List[str]] = UNSET, @@ -1609,7 +1609,7 @@ def request_reviewers( repo: str, pull_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, reviewers: Missing[List[str]] = UNSET, team_reviewers: List[str], @@ -1692,7 +1692,7 @@ async def async_request_reviewers( repo: str, pull_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, reviewers: List[str], team_reviewers: Missing[List[str]] = UNSET, @@ -1705,7 +1705,7 @@ async def async_request_reviewers( repo: str, pull_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, reviewers: Missing[List[str]] = UNSET, team_reviewers: List[str], @@ -1783,7 +1783,7 @@ def remove_requested_reviewers( repo: str, pull_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, reviewers: List[str], team_reviewers: Missing[List[str]] = UNSET, @@ -1851,7 +1851,7 @@ async def async_remove_requested_reviewers( repo: str, pull_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, reviewers: List[str], team_reviewers: Missing[List[str]] = UNSET, @@ -1985,7 +1985,7 @@ def create_review( repo: str, pull_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, commit_id: Missing[str] = UNSET, body: Missing[str] = UNSET, @@ -2055,7 +2055,7 @@ async def async_create_review( repo: str, pull_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, commit_id: Missing[str] = UNSET, body: Missing[str] = UNSET, @@ -2181,7 +2181,7 @@ def update_review( pull_number: int, review_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, body: str, ) -> Response[PullRequestReview]: ... @@ -2249,7 +2249,7 @@ async def async_update_review( pull_number: int, review_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, body: str, ) -> Response[PullRequestReview]: ... @@ -2447,7 +2447,7 @@ def dismiss_review( pull_number: int, review_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, message: str, event: Missing[Literal["DISMISS"]] = UNSET, @@ -2522,7 +2522,7 @@ async def async_dismiss_review( pull_number: int, review_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, message: str, event: Missing[Literal["DISMISS"]] = UNSET, @@ -2597,7 +2597,7 @@ def submit_review( pull_number: int, review_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, body: Missing[str] = UNSET, event: Literal["APPROVE", "REQUEST_CHANGES", "COMMENT"], @@ -2671,7 +2671,7 @@ async def async_submit_review( pull_number: int, review_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, body: Missing[str] = UNSET, event: Literal["APPROVE", "REQUEST_CHANGES", "COMMENT"], @@ -2745,7 +2745,7 @@ def update_branch( repo: str, pull_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, expected_head_sha: Missing[str] = UNSET, ) -> Response[ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202]: ... @@ -2818,7 +2818,7 @@ async def async_update_branch( repo: str, pull_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, expected_head_sha: Missing[str] = UNSET, ) -> Response[ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202]: ... diff --git a/githubkit/versions/v2022_11_28/rest/reactions.py b/githubkit/versions/v2022_11_28/rest/reactions.py index 15af3de3c..9f64f8910 100644 --- a/githubkit/versions/v2022_11_28/rest/reactions.py +++ b/githubkit/versions/v2022_11_28/rest/reactions.py @@ -14,7 +14,7 @@ from pydantic import BaseModel -from githubkit.typing import Missing +from githubkit.typing import Missing, UnsetType from githubkit.utils import UNSET, exclude_unset from githubkit.compat import model_dump, type_validate_python @@ -155,7 +155,7 @@ def create_for_team_discussion_comment_in_org( discussion_number: int, comment_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, content: Literal[ "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" @@ -224,7 +224,7 @@ async def async_create_for_team_discussion_comment_in_org( discussion_number: int, comment_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, content: Literal[ "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" @@ -413,7 +413,7 @@ def create_for_team_discussion_in_org( team_slug: str, discussion_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, content: Literal[ "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" @@ -478,7 +478,7 @@ async def async_create_for_team_discussion_in_org( team_slug: str, discussion_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, content: Literal[ "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" @@ -669,7 +669,7 @@ def create_for_commit_comment( repo: str, comment_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, content: Literal[ "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" @@ -736,7 +736,7 @@ async def async_create_for_commit_comment( repo: str, comment_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, content: Literal[ "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" @@ -929,7 +929,7 @@ def create_for_issue_comment( repo: str, comment_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, content: Literal[ "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" @@ -998,7 +998,7 @@ async def async_create_for_issue_comment( repo: str, comment_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, content: Literal[ "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" @@ -1195,7 +1195,7 @@ def create_for_issue( repo: str, issue_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, content: Literal[ "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" @@ -1262,7 +1262,7 @@ async def async_create_for_issue( repo: str, issue_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, content: Literal[ "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" @@ -1455,7 +1455,7 @@ def create_for_pull_request_review_comment( repo: str, comment_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, content: Literal[ "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" @@ -1524,7 +1524,7 @@ async def async_create_for_pull_request_review_comment( repo: str, comment_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, content: Literal[ "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" @@ -1719,7 +1719,7 @@ def create_for_release( repo: str, release_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, content: Literal["+1", "laugh", "heart", "hooray", "rocket", "eyes"], ) -> Response[Reaction]: ... @@ -1784,7 +1784,7 @@ async def async_create_for_release( repo: str, release_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, content: Literal["+1", "laugh", "heart", "hooray", "rocket", "eyes"], ) -> Response[Reaction]: ... @@ -1969,7 +1969,7 @@ def create_for_team_discussion_comment_legacy( discussion_number: int, comment_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, content: Literal[ "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" @@ -2035,7 +2035,7 @@ async def async_create_for_team_discussion_comment_legacy( discussion_number: int, comment_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, content: Literal[ "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" @@ -2175,7 +2175,7 @@ def create_for_team_discussion_legacy( team_id: int, discussion_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, content: Literal[ "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" @@ -2237,7 +2237,7 @@ async def async_create_for_team_discussion_legacy( team_id: int, discussion_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, content: Literal[ "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" diff --git a/githubkit/versions/v2022_11_28/rest/repos.py b/githubkit/versions/v2022_11_28/rest/repos.py index bc02d2ff4..5709ee68c 100644 --- a/githubkit/versions/v2022_11_28/rest/repos.py +++ b/githubkit/versions/v2022_11_28/rest/repos.py @@ -14,7 +14,7 @@ from pydantic import BaseModel -from githubkit.typing import Missing +from githubkit.typing import Missing, UnsetType from githubkit.utils import UNSET, exclude_unset from githubkit.compat import model_dump, type_validate_python @@ -344,7 +344,7 @@ def create_in_org( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, description: Missing[str] = UNSET, @@ -433,7 +433,7 @@ async def async_create_in_org( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, description: Missing[str] = UNSET, @@ -592,7 +592,7 @@ def create_org_ruleset( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, target: Missing[Literal["branch", "tag", "push"]] = UNSET, @@ -682,7 +682,7 @@ async def async_create_org_ruleset( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, target: Missing[Literal["branch", "tag", "push"]] = UNSET, @@ -964,7 +964,7 @@ def update_org_ruleset( org: str, ruleset_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: Missing[str] = UNSET, target: Missing[Literal["branch", "tag", "push"]] = UNSET, @@ -1061,7 +1061,7 @@ async def async_update_org_ruleset( org: str, ruleset_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: Missing[str] = UNSET, target: Missing[Literal["branch", "tag", "push"]] = UNSET, @@ -1310,7 +1310,7 @@ def update( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: Missing[str] = UNSET, description: Missing[str] = UNSET, @@ -1403,7 +1403,7 @@ async def async_update( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: Missing[str] = UNSET, description: Missing[str] = UNSET, @@ -1612,7 +1612,7 @@ def create_attestation( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, bundle: ReposOwnerRepoAttestationsPostBodyPropBundleType, ) -> Response[ReposOwnerRepoAttestationsPostResponse201]: ... @@ -1674,7 +1674,7 @@ async def async_create_attestation( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, bundle: ReposOwnerRepoAttestationsPostBodyPropBundleType, ) -> Response[ReposOwnerRepoAttestationsPostResponse201]: ... @@ -1850,7 +1850,7 @@ def create_autolink( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, key_prefix: str, url_template: str, @@ -1908,7 +1908,7 @@ async def async_create_autolink( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, key_prefix: str, url_template: str, @@ -2370,7 +2370,7 @@ def update_branch_protection( repo: str, branch: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, required_status_checks: Union[ ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksType, @@ -2454,7 +2454,7 @@ async def async_update_branch_protection( repo: str, branch: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, required_status_checks: Union[ ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksType, @@ -2828,7 +2828,7 @@ def update_pull_request_review_protection( repo: str, branch: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, dismissal_restrictions: Missing[ ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType @@ -2907,7 +2907,7 @@ async def async_update_pull_request_review_protection( repo: str, branch: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, dismissal_restrictions: Missing[ ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType @@ -3240,7 +3240,7 @@ def update_status_check_protection( repo: str, branch: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, strict: Missing[bool] = UNSET, contexts: Missing[List[str]] = UNSET, @@ -3319,7 +3319,7 @@ async def async_update_status_check_protection( repo: str, branch: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, strict: Missing[bool] = UNSET, contexts: Missing[List[str]] = UNSET, @@ -3457,7 +3457,7 @@ def set_status_check_contexts( repo: str, branch: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, contexts: List[str], ) -> Response[List[str]]: ... @@ -3539,7 +3539,7 @@ async def async_set_status_check_contexts( repo: str, branch: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, contexts: List[str], ) -> Response[List[str]]: ... @@ -3621,7 +3621,7 @@ def add_status_check_contexts( repo: str, branch: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, contexts: List[str], ) -> Response[List[str]]: ... @@ -3704,7 +3704,7 @@ async def async_add_status_check_contexts( repo: str, branch: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, contexts: List[str], ) -> Response[List[str]]: ... @@ -3787,7 +3787,7 @@ def remove_status_check_contexts( repo: str, branch: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, contexts: List[str], ) -> Response[List[str]]: ... @@ -3869,7 +3869,7 @@ async def async_remove_status_check_contexts( repo: str, branch: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, contexts: List[str], ) -> Response[List[str]]: ... @@ -4099,7 +4099,7 @@ def set_app_access_restrictions( repo: str, branch: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, apps: List[str], ) -> Response[List[Union[Integration, None]]]: ... @@ -4180,7 +4180,7 @@ async def async_set_app_access_restrictions( repo: str, branch: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, apps: List[str], ) -> Response[List[Union[Integration, None]]]: ... @@ -4261,7 +4261,7 @@ def add_app_access_restrictions( repo: str, branch: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, apps: List[str], ) -> Response[List[Union[Integration, None]]]: ... @@ -4342,7 +4342,7 @@ async def async_add_app_access_restrictions( repo: str, branch: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, apps: List[str], ) -> Response[List[Union[Integration, None]]]: ... @@ -4423,7 +4423,7 @@ def remove_app_access_restrictions( repo: str, branch: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, apps: List[str], ) -> Response[List[Union[Integration, None]]]: ... @@ -4504,7 +4504,7 @@ async def async_remove_app_access_restrictions( repo: str, branch: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, apps: List[str], ) -> Response[List[Union[Integration, None]]]: ... @@ -4641,7 +4641,7 @@ def set_team_access_restrictions( repo: str, branch: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, teams: List[str], ) -> Response[List[Team]]: ... @@ -4722,7 +4722,7 @@ async def async_set_team_access_restrictions( repo: str, branch: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, teams: List[str], ) -> Response[List[Team]]: ... @@ -4803,7 +4803,7 @@ def add_team_access_restrictions( repo: str, branch: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, teams: List[str], ) -> Response[List[Team]]: ... @@ -4884,7 +4884,7 @@ async def async_add_team_access_restrictions( repo: str, branch: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, teams: List[str], ) -> Response[List[Team]]: ... @@ -4965,7 +4965,7 @@ def remove_team_access_restrictions( repo: str, branch: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, teams: List[str], ) -> Response[List[Team]]: ... @@ -5046,7 +5046,7 @@ async def async_remove_team_access_restrictions( repo: str, branch: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, teams: List[str], ) -> Response[List[Team]]: ... @@ -5183,7 +5183,7 @@ def set_user_access_restrictions( repo: str, branch: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, users: List[str], ) -> Response[List[SimpleUser]]: ... @@ -5264,7 +5264,7 @@ async def async_set_user_access_restrictions( repo: str, branch: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, users: List[str], ) -> Response[List[SimpleUser]]: ... @@ -5345,7 +5345,7 @@ def add_user_access_restrictions( repo: str, branch: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, users: List[str], ) -> Response[List[SimpleUser]]: ... @@ -5426,7 +5426,7 @@ async def async_add_user_access_restrictions( repo: str, branch: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, users: List[str], ) -> Response[List[SimpleUser]]: ... @@ -5507,7 +5507,7 @@ def remove_user_access_restrictions( repo: str, branch: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, users: List[str], ) -> Response[List[SimpleUser]]: ... @@ -5588,7 +5588,7 @@ async def async_remove_user_access_restrictions( repo: str, branch: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, users: List[str], ) -> Response[List[SimpleUser]]: ... @@ -5664,7 +5664,7 @@ def rename_branch( repo: str, branch: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, new_name: str, ) -> Response[BranchWithProtection]: ... @@ -5730,7 +5730,7 @@ async def async_rename_branch( repo: str, branch: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, new_name: str, ) -> Response[BranchWithProtection]: ... @@ -5978,7 +5978,7 @@ def add_collaborator( repo: str, username: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, permission: Missing[str] = UNSET, ) -> Response[RepositoryInvitation]: ... @@ -6043,7 +6043,7 @@ async def async_add_collaborator( repo: str, username: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, permission: Missing[str] = UNSET, ) -> Response[RepositoryInvitation]: ... @@ -6378,7 +6378,7 @@ def update_commit_comment( repo: str, comment_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, body: str, ) -> Response[CommitComment]: ... @@ -6441,7 +6441,7 @@ async def async_update_commit_comment( repo: str, comment_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, body: str, ) -> Response[CommitComment]: ... @@ -6728,7 +6728,7 @@ def create_commit_comment( repo: str, commit_sha: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, body: str, path: Missing[str] = UNSET, @@ -6798,7 +6798,7 @@ async def async_create_commit_comment( repo: str, commit_sha: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, body: str, path: Missing[str] = UNSET, @@ -7384,7 +7384,7 @@ def create_or_update_file_contents( repo: str, path: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, message: str, content: str, @@ -7455,7 +7455,7 @@ async def async_create_or_update_file_contents( repo: str, path: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, message: str, content: str, @@ -7526,7 +7526,7 @@ def delete_file( repo: str, path: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, message: str, sha: str, @@ -7600,7 +7600,7 @@ async def async_delete_file( repo: str, path: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, message: str, sha: str, @@ -7828,7 +7828,7 @@ def create_deployment( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, ref: str, task: Missing[str] = UNSET, @@ -7898,7 +7898,7 @@ async def async_create_deployment( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, ref: str, task: Missing[str] = UNSET, @@ -8146,7 +8146,7 @@ def create_deployment_status( repo: str, deployment_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, state: Literal[ "error", @@ -8227,7 +8227,7 @@ async def async_create_deployment_status( repo: str, deployment_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, state: Literal[ "error", @@ -8360,7 +8360,7 @@ def create_dispatch_event( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, event_type: str, client_payload: Missing[ @@ -8423,7 +8423,7 @@ async def async_create_dispatch_event( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, event_type: str, client_payload: Missing[ @@ -8596,7 +8596,7 @@ def create_or_update_environment( repo: str, environment_name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, wait_timer: Missing[int] = UNSET, prevent_self_review: Missing[bool] = UNSET, @@ -8679,7 +8679,7 @@ async def async_create_or_update_environment( repo: str, environment_name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, wait_timer: Missing[int] = UNSET, prevent_self_review: Missing[bool] = UNSET, @@ -8870,7 +8870,7 @@ def create_deployment_branch_policy( repo: str, environment_name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, type: Missing[Literal["branch", "tag"]] = UNSET, @@ -8931,7 +8931,7 @@ async def async_create_deployment_branch_policy( repo: str, environment_name: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, type: Missing[Literal["branch", "tag"]] = UNSET, @@ -9042,7 +9042,7 @@ def update_deployment_branch_policy( environment_name: str, branch_policy_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, ) -> Response[DeploymentBranchPolicy]: ... @@ -9101,7 +9101,7 @@ async def async_update_deployment_branch_policy( environment_name: str, branch_policy_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, ) -> Response[DeploymentBranchPolicy]: ... @@ -9254,7 +9254,7 @@ def create_deployment_protection_rule( repo: str, owner: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, integration_id: Missing[int] = UNSET, ) -> Response[DeploymentProtectionRule]: ... @@ -9318,7 +9318,7 @@ async def async_create_deployment_protection_rule( repo: str, owner: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, integration_id: Missing[int] = UNSET, ) -> Response[DeploymentProtectionRule]: ... @@ -9614,7 +9614,7 @@ def create_fork( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, organization: Missing[str] = UNSET, name: Missing[str] = UNSET, @@ -9682,7 +9682,7 @@ async def async_create_fork( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, organization: Missing[str] = UNSET, name: Missing[str] = UNSET, @@ -9820,7 +9820,7 @@ def create_webhook( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: Missing[str] = UNSET, config: Missing[ReposOwnerRepoHooksPostBodyPropConfigType] = UNSET, @@ -9888,7 +9888,7 @@ async def async_create_webhook( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: Missing[str] = UNSET, config: Missing[ReposOwnerRepoHooksPostBodyPropConfigType] = UNSET, @@ -10060,7 +10060,7 @@ def update_webhook( repo: str, hook_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, config: Missing[WebhookConfigType] = UNSET, events: Missing[List[str]] = UNSET, @@ -10129,7 +10129,7 @@ async def async_update_webhook( repo: str, hook_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, config: Missing[WebhookConfigType] = UNSET, events: Missing[List[str]] = UNSET, @@ -10244,7 +10244,7 @@ def update_webhook_config_for_repo( repo: str, hook_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, url: Missing[str] = UNSET, content_type: Missing[str] = UNSET, @@ -10303,7 +10303,7 @@ async def async_update_webhook_config_for_repo( repo: str, hook_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, url: Missing[str] = UNSET, content_type: Missing[str] = UNSET, @@ -10764,7 +10764,7 @@ def update_invitation( repo: str, invitation_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, permissions: Missing[ Literal["read", "write", "maintain", "triage", "admin"] @@ -10827,7 +10827,7 @@ async def async_update_invitation( repo: str, invitation_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, permissions: Missing[ Literal["read", "write", "maintain", "triage", "admin"] @@ -10952,7 +10952,7 @@ def create_deploy_key( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, title: Missing[str] = UNSET, key: str, @@ -11010,7 +11010,7 @@ async def async_create_deploy_key( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, title: Missing[str] = UNSET, key: str, @@ -11204,7 +11204,7 @@ def merge_upstream( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, branch: str, ) -> Response[MergedUpstream]: ... @@ -11258,7 +11258,7 @@ async def async_merge_upstream( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, branch: str, ) -> Response[MergedUpstream]: ... @@ -11312,7 +11312,7 @@ def merge( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, base: str, head: str, @@ -11376,7 +11376,7 @@ async def async_merge( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, base: str, head: str, @@ -11496,7 +11496,7 @@ def update_information_about_pages_site( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, cname: Missing[Union[str, None]] = UNSET, https_enforced: Missing[bool] = UNSET, @@ -11515,7 +11515,7 @@ def update_information_about_pages_site( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, cname: Missing[Union[str, None]] = UNSET, https_enforced: Missing[bool] = UNSET, @@ -11532,7 +11532,7 @@ def update_information_about_pages_site( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, cname: Union[str, None], https_enforced: Missing[bool] = UNSET, @@ -11551,7 +11551,7 @@ def update_information_about_pages_site( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, cname: Missing[Union[str, None]] = UNSET, https_enforced: Missing[bool] = UNSET, @@ -11570,7 +11570,7 @@ def update_information_about_pages_site( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, cname: Missing[Union[str, None]] = UNSET, https_enforced: bool, @@ -11668,7 +11668,7 @@ async def async_update_information_about_pages_site( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, cname: Missing[Union[str, None]] = UNSET, https_enforced: Missing[bool] = UNSET, @@ -11687,7 +11687,7 @@ async def async_update_information_about_pages_site( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, cname: Missing[Union[str, None]] = UNSET, https_enforced: Missing[bool] = UNSET, @@ -11704,7 +11704,7 @@ async def async_update_information_about_pages_site( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, cname: Union[str, None], https_enforced: Missing[bool] = UNSET, @@ -11723,7 +11723,7 @@ async def async_update_information_about_pages_site( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, cname: Missing[Union[str, None]] = UNSET, https_enforced: Missing[bool] = UNSET, @@ -11742,7 +11742,7 @@ async def async_update_information_about_pages_site( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, cname: Missing[Union[str, None]] = UNSET, https_enforced: bool, @@ -11839,7 +11839,7 @@ def create_pages_site( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, build_type: Missing[Literal["legacy", "workflow"]] = UNSET, source: ReposOwnerRepoPagesPostBodyPropSourceType, @@ -11851,7 +11851,7 @@ def create_pages_site( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, build_type: Literal["legacy", "workflow"], source: Missing[ReposOwnerRepoPagesPostBodyPropSourceType] = UNSET, @@ -11937,7 +11937,7 @@ async def async_create_pages_site( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, build_type: Missing[Literal["legacy", "workflow"]] = UNSET, source: ReposOwnerRepoPagesPostBodyPropSourceType, @@ -11949,7 +11949,7 @@ async def async_create_pages_site( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, build_type: Literal["legacy", "workflow"], source: Missing[ReposOwnerRepoPagesPostBodyPropSourceType] = UNSET, @@ -12280,7 +12280,7 @@ def create_pages_deployment( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, artifact_id: Missing[float] = UNSET, artifact_url: Missing[str] = UNSET, @@ -12347,7 +12347,7 @@ async def async_create_pages_deployment( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, artifact_id: Missing[float] = UNSET, artifact_url: Missing[str] = UNSET, @@ -12774,7 +12774,7 @@ def create_or_update_custom_properties_values( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, properties: List[CustomPropertyValueType], ) -> Response: ... @@ -12835,7 +12835,7 @@ async def async_create_or_update_custom_properties_values( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, properties: List[CustomPropertyValueType], ) -> Response: ... @@ -13096,7 +13096,7 @@ def create_release( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, tag_name: str, target_commitish: Missing[str] = UNSET, @@ -13166,7 +13166,7 @@ async def async_create_release( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, tag_name: str, target_commitish: Missing[str] = UNSET, @@ -13330,7 +13330,7 @@ def update_release_asset( repo: str, asset_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: Missing[str] = UNSET, label: Missing[str] = UNSET, @@ -13388,7 +13388,7 @@ async def async_update_release_asset( repo: str, asset_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: Missing[str] = UNSET, label: Missing[str] = UNSET, @@ -13444,7 +13444,7 @@ def generate_release_notes( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, tag_name: str, target_commitish: Missing[str] = UNSET, @@ -13507,7 +13507,7 @@ async def async_generate_release_notes( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, tag_name: str, target_commitish: Missing[str] = UNSET, @@ -13756,7 +13756,7 @@ def update_release( repo: str, release_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, tag_name: Missing[str] = UNSET, target_commitish: Missing[str] = UNSET, @@ -13826,7 +13826,7 @@ async def async_update_release( repo: str, release_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, tag_name: Missing[str] = UNSET, target_commitish: Missing[str] = UNSET, @@ -14304,7 +14304,7 @@ def create_repo_ruleset( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, target: Missing[Literal["branch", "tag", "push"]] = UNSET, @@ -14395,7 +14395,7 @@ async def async_create_repo_ruleset( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, target: Missing[Literal["branch", "tag", "push"]] = UNSET, @@ -14696,7 +14696,7 @@ def update_repo_ruleset( repo: str, ruleset_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: Missing[str] = UNSET, target: Missing[Literal["branch", "tag", "push"]] = UNSET, @@ -14790,7 +14790,7 @@ async def async_update_repo_ruleset( repo: str, ruleset_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: Missing[str] = UNSET, target: Missing[Literal["branch", "tag", "push"]] = UNSET, @@ -15172,7 +15172,7 @@ def create_commit_status( repo: str, sha: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, state: Literal["error", "failure", "pending", "success"], target_url: Missing[Union[str, None]] = UNSET, @@ -15231,7 +15231,7 @@ async def async_create_commit_status( repo: str, sha: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, state: Literal["error", "failure", "pending", "success"], target_url: Missing[Union[str, None]] = UNSET, @@ -15408,7 +15408,7 @@ def create_tag_protection( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, pattern: str, ) -> Response[TagProtection]: ... @@ -15469,7 +15469,7 @@ async def async_create_tag_protection( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, pattern: str, ) -> Response[TagProtection]: ... @@ -15758,7 +15758,7 @@ def replace_all_topics( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, names: List[str], ) -> Response[Topic]: ... @@ -15820,7 +15820,7 @@ async def async_replace_all_topics( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, names: List[str], ) -> Response[Topic]: ... @@ -16114,7 +16114,7 @@ def transfer( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, new_owner: str, new_name: Missing[str] = UNSET, @@ -16169,7 +16169,7 @@ async def async_transfer( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, new_owner: str, new_name: Missing[str] = UNSET, @@ -16380,7 +16380,7 @@ def create_using_template( template_owner: str, template_repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, owner: Missing[str] = UNSET, name: str, @@ -16442,7 +16442,7 @@ async def async_create_using_template( template_owner: str, template_repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, owner: Missing[str] = UNSET, name: str, @@ -16657,7 +16657,7 @@ def create_for_authenticated_user( def create_for_authenticated_user( self, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, description: Missing[str] = UNSET, @@ -16739,7 +16739,7 @@ async def async_create_for_authenticated_user( async def async_create_for_authenticated_user( self, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, description: Missing[str] = UNSET, diff --git a/githubkit/versions/v2022_11_28/rest/secret_scanning.py b/githubkit/versions/v2022_11_28/rest/secret_scanning.py index 3e7ce3ad0..c671ea036 100644 --- a/githubkit/versions/v2022_11_28/rest/secret_scanning.py +++ b/githubkit/versions/v2022_11_28/rest/secret_scanning.py @@ -14,7 +14,7 @@ from pydantic import BaseModel -from githubkit.typing import Missing +from githubkit.typing import Missing, UnsetType from githubkit.utils import UNSET, exclude_unset from githubkit.compat import model_dump, type_validate_python @@ -449,7 +449,7 @@ def update_alert( repo: str, alert_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, state: Literal["open", "resolved"], resolution: Missing[ @@ -522,7 +522,7 @@ async def async_update_alert( repo: str, alert_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, state: Literal["open", "resolved"], resolution: Missing[ diff --git a/githubkit/versions/v2022_11_28/rest/security_advisories.py b/githubkit/versions/v2022_11_28/rest/security_advisories.py index 5b4773c13..dd9ef5fb0 100644 --- a/githubkit/versions/v2022_11_28/rest/security_advisories.py +++ b/githubkit/versions/v2022_11_28/rest/security_advisories.py @@ -14,7 +14,7 @@ from pydantic import BaseModel -from githubkit.typing import Missing +from githubkit.typing import Missing, UnsetType from githubkit.utils import UNSET, exclude_unset from githubkit.compat import model_dump, type_validate_python @@ -457,7 +457,7 @@ def create_repository_advisory( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, summary: str, description: str, @@ -532,7 +532,7 @@ async def async_create_repository_advisory( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, summary: str, description: str, @@ -607,7 +607,7 @@ def create_private_vulnerability_report( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, summary: str, description: str, @@ -682,7 +682,7 @@ async def async_create_private_vulnerability_report( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, summary: str, description: str, @@ -813,7 +813,7 @@ def update_repository_advisory( repo: str, ghsa_id: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, summary: Missing[str] = UNSET, description: Missing[str] = UNSET, @@ -895,7 +895,7 @@ async def async_update_repository_advisory( repo: str, ghsa_id: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, summary: Missing[str] = UNSET, description: Missing[str] = UNSET, diff --git a/githubkit/versions/v2022_11_28/rest/teams.py b/githubkit/versions/v2022_11_28/rest/teams.py index 8160a2348..5866e0a77 100644 --- a/githubkit/versions/v2022_11_28/rest/teams.py +++ b/githubkit/versions/v2022_11_28/rest/teams.py @@ -14,7 +14,7 @@ from pydantic import BaseModel -from githubkit.typing import Missing +from githubkit.typing import Missing, UnsetType from githubkit.utils import UNSET, exclude_unset from githubkit.compat import model_dump, type_validate_python @@ -156,7 +156,7 @@ def create( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, description: Missing[str] = UNSET, @@ -219,7 +219,7 @@ async def async_create( self, org: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, description: Missing[str] = UNSET, @@ -372,7 +372,7 @@ def update_in_org( org: str, team_slug: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: Missing[str] = UNSET, description: Missing[str] = UNSET, @@ -442,7 +442,7 @@ async def async_update_in_org( org: str, team_slug: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: Missing[str] = UNSET, description: Missing[str] = UNSET, @@ -584,7 +584,7 @@ def create_discussion_in_org( org: str, team_slug: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, title: str, body: str, @@ -639,7 +639,7 @@ async def async_create_discussion_in_org( org: str, team_slug: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, title: str, body: str, @@ -784,7 +784,7 @@ def update_discussion_in_org( team_slug: str, discussion_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, title: Missing[str] = UNSET, body: Missing[str] = UNSET, @@ -850,7 +850,7 @@ async def async_update_discussion_in_org( team_slug: str, discussion_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, title: Missing[str] = UNSET, body: Missing[str] = UNSET, @@ -984,7 +984,7 @@ def create_discussion_comment_in_org( team_slug: str, discussion_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, body: str, ) -> Response[TeamDiscussionComment]: ... @@ -1047,7 +1047,7 @@ async def async_create_discussion_comment_in_org( team_slug: str, discussion_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, body: str, ) -> Response[TeamDiscussionComment]: ... @@ -1202,7 +1202,7 @@ def update_discussion_comment_in_org( discussion_number: int, comment_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, body: str, ) -> Response[TeamDiscussionComment]: ... @@ -1269,7 +1269,7 @@ async def async_update_discussion_comment_in_org( discussion_number: int, comment_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, body: str, ) -> Response[TeamDiscussionComment]: ... @@ -1514,7 +1514,7 @@ def add_or_update_membership_for_user_in_org( team_slug: str, username: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, role: Missing[Literal["member", "maintainer"]] = UNSET, ) -> Response[TeamMembership]: ... @@ -1576,7 +1576,7 @@ async def async_add_or_update_membership_for_user_in_org( team_slug: str, username: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, role: Missing[Literal["member", "maintainer"]] = UNSET, ) -> Response[TeamMembership]: ... @@ -1794,7 +1794,7 @@ def add_or_update_project_permissions_in_org( team_slug: str, project_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, permission: Missing[Literal["read", "write", "admin"]] = UNSET, ) -> Response: ... @@ -1863,7 +1863,7 @@ async def async_add_or_update_project_permissions_in_org( team_slug: str, project_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, permission: Missing[Literal["read", "write", "admin"]] = UNSET, ) -> Response: ... @@ -2086,7 +2086,7 @@ def add_or_update_repo_permissions_in_org( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, permission: Missing[str] = UNSET, ) -> Response: ... @@ -2144,7 +2144,7 @@ async def async_add_or_update_repo_permissions_in_org( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, permission: Missing[str] = UNSET, ) -> Response: ... @@ -2398,7 +2398,7 @@ def update_legacy( self, team_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, description: Missing[str] = UNSET, @@ -2460,7 +2460,7 @@ async def async_update_legacy( self, team_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: str, description: Missing[str] = UNSET, @@ -2588,7 +2588,7 @@ def create_discussion_legacy( self, team_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, title: str, body: str, @@ -2640,7 +2640,7 @@ async def async_create_discussion_legacy( self, team_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, title: str, body: str, @@ -2776,7 +2776,7 @@ def update_discussion_legacy( team_id: int, discussion_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, title: Missing[str] = UNSET, body: Missing[str] = UNSET, @@ -2835,7 +2835,7 @@ async def async_update_discussion_legacy( team_id: int, discussion_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, title: Missing[str] = UNSET, body: Missing[str] = UNSET, @@ -2962,7 +2962,7 @@ def create_discussion_comment_legacy( team_id: int, discussion_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, body: str, ) -> Response[TeamDiscussionComment]: ... @@ -3022,7 +3022,7 @@ async def async_create_discussion_comment_legacy( team_id: int, discussion_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, body: str, ) -> Response[TeamDiscussionComment]: ... @@ -3170,7 +3170,7 @@ def update_discussion_comment_legacy( discussion_number: int, comment_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, body: str, ) -> Response[TeamDiscussionComment]: ... @@ -3233,7 +3233,7 @@ async def async_update_discussion_comment_legacy( discussion_number: int, comment_number: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, body: str, ) -> Response[TeamDiscussionComment]: ... @@ -3606,7 +3606,7 @@ def add_or_update_membership_for_user_legacy( team_id: int, username: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, role: Missing[Literal["member", "maintainer"]] = UNSET, ) -> Response[TeamMembership]: ... @@ -3666,7 +3666,7 @@ async def async_add_or_update_membership_for_user_legacy( team_id: int, username: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, role: Missing[Literal["member", "maintainer"]] = UNSET, ) -> Response[TeamMembership]: ... @@ -3880,7 +3880,7 @@ def add_or_update_project_permissions_legacy( team_id: int, project_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, permission: Missing[Literal["read", "write", "admin"]] = UNSET, ) -> Response: ... @@ -3942,7 +3942,7 @@ async def async_add_or_update_project_permissions_legacy( team_id: int, project_id: int, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, permission: Missing[Literal["read", "write", "admin"]] = UNSET, ) -> Response: ... @@ -4172,7 +4172,7 @@ def add_or_update_repo_permissions_legacy( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, permission: Missing[Literal["pull", "push", "admin"]] = UNSET, ) -> Response: ... @@ -4235,7 +4235,7 @@ async def async_add_or_update_repo_permissions_legacy( owner: str, repo: str, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, permission: Missing[Literal["pull", "push", "admin"]] = UNSET, ) -> Response: ... diff --git a/githubkit/versions/v2022_11_28/rest/users.py b/githubkit/versions/v2022_11_28/rest/users.py index 47206db5d..e9d21326a 100644 --- a/githubkit/versions/v2022_11_28/rest/users.py +++ b/githubkit/versions/v2022_11_28/rest/users.py @@ -14,7 +14,7 @@ from pydantic import BaseModel -from githubkit.typing import Missing +from githubkit.typing import Missing, UnsetType from githubkit.utils import UNSET, exclude_unset from githubkit.compat import model_dump, type_validate_python @@ -131,7 +131,7 @@ def update_authenticated( def update_authenticated( self, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: Missing[str] = UNSET, email: Missing[str] = UNSET, @@ -191,7 +191,7 @@ async def async_update_authenticated( async def async_update_authenticated( self, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: Missing[str] = UNSET, email: Missing[str] = UNSET, @@ -473,7 +473,7 @@ def set_primary_email_visibility_for_authenticated_user( def set_primary_email_visibility_for_authenticated_user( self, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, visibility: Literal["public", "private"], ) -> Response[List[Email]]: ... @@ -533,7 +533,7 @@ async def async_set_primary_email_visibility_for_authenticated_user( async def async_set_primary_email_visibility_for_authenticated_user( self, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, visibility: Literal["public", "private"], ) -> Response[List[Email]]: ... @@ -663,7 +663,7 @@ def add_email_for_authenticated_user( def add_email_for_authenticated_user( self, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, emails: List[str], ) -> Response[List[Email]]: ... @@ -725,7 +725,7 @@ async def async_add_email_for_authenticated_user( async def async_add_email_for_authenticated_user( self, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, emails: List[str], ) -> Response[List[Email]]: ... @@ -787,7 +787,7 @@ def delete_email_for_authenticated_user( def delete_email_for_authenticated_user( self, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, emails: List[str], ) -> Response: ... @@ -843,7 +843,7 @@ async def async_delete_email_for_authenticated_user( async def async_delete_email_for_authenticated_user( self, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, emails: List[str], ) -> Response: ... @@ -1252,7 +1252,7 @@ def create_gpg_key_for_authenticated_user( def create_gpg_key_for_authenticated_user( self, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: Missing[str] = UNSET, armored_public_key: str, @@ -1303,7 +1303,7 @@ async def async_create_gpg_key_for_authenticated_user( async def async_create_gpg_key_for_authenticated_user( self, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, name: Missing[str] = UNSET, armored_public_key: str, @@ -1528,7 +1528,7 @@ def create_public_ssh_key_for_authenticated_user( def create_public_ssh_key_for_authenticated_user( self, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, title: Missing[str] = UNSET, key: str, @@ -1579,7 +1579,7 @@ async def async_create_public_ssh_key_for_authenticated_user( async def async_create_public_ssh_key_for_authenticated_user( self, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, title: Missing[str] = UNSET, key: str, @@ -1875,7 +1875,7 @@ def add_social_account_for_authenticated_user( def add_social_account_for_authenticated_user( self, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, account_urls: List[str], ) -> Response[List[SocialAccount]]: ... @@ -1935,7 +1935,7 @@ async def async_add_social_account_for_authenticated_user( async def async_add_social_account_for_authenticated_user( self, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, account_urls: List[str], ) -> Response[List[SocialAccount]]: ... @@ -1995,7 +1995,7 @@ def delete_social_account_for_authenticated_user( def delete_social_account_for_authenticated_user( self, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, account_urls: List[str], ) -> Response: ... @@ -2047,7 +2047,7 @@ async def async_delete_social_account_for_authenticated_user( async def async_delete_social_account_for_authenticated_user( self, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, account_urls: List[str], ) -> Response: ... @@ -2169,7 +2169,7 @@ def create_ssh_signing_key_for_authenticated_user( def create_ssh_signing_key_for_authenticated_user( self, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, title: Missing[str] = UNSET, key: str, @@ -2228,7 +2228,7 @@ async def async_create_ssh_signing_key_for_authenticated_user( async def async_create_ssh_signing_key_for_authenticated_user( self, *, - data: Literal[UNSET] = UNSET, + data: UnsetType = UNSET, headers: Optional[Dict[str, str]] = None, title: Missing[str] = UNSET, key: str, diff --git a/githubkit/versions/v2022_11_28/types/__init__.py b/githubkit/versions/v2022_11_28/types/__init__.py index 326606bc3..995a43b49 100644 --- a/githubkit/versions/v2022_11_28/types/__init__.py +++ b/githubkit/versions/v2022_11_28/types/__init__.py @@ -53,7 +53,7 @@ from .group_0245 import ManifestType as ManifestType from .group_0246 import SnapshotType as SnapshotType from .group_0294 import LanguageType as LanguageType - from .group_0902 import WorkflowType as WorkflowType + from .group_0903 import WorkflowType as WorkflowType from .group_0009 import ScimErrorType as ScimErrorType from .group_0022 import ClassroomType as ClassroomType from .group_0037 import MilestoneType as MilestoneType @@ -150,7 +150,7 @@ from .group_0636 import WebhookPublicType as WebhookPublicType from .group_0727 import WebhookStatusType as WebhookStatusType from .group_0764 import GistsPostBodyType as GistsPostBodyType - from .group_1067 import UserPatchBodyType as UserPatchBodyType + from .group_1068 import UserPatchBodyType as UserPatchBodyType from .group_0002 import GlobalAdvisoryType as GlobalAdvisoryType from .group_0014 import AppPermissionsType as AppPermissionsType from .group_0028 import EnterpriseTeamType as EnterpriseTeamType @@ -190,7 +190,7 @@ from .group_0392 import WebhooksChangesType as WebhooksChangesType from .group_0405 import WebhooksProjectType as WebhooksProjectType from .group_0416 import WebhooksReleaseType as WebhooksReleaseType - from .group_1093 import SigstoreBundle0Type as SigstoreBundle0Type + from .group_1094 import SigstoreBundle0Type as SigstoreBundle0Type from .group_0008 import HookDeliveryItemType as HookDeliveryItemType from .group_0033 import SimpleRepositoryType as SimpleRepositoryType from .group_0041 import EventPropPayloadType as EventPropPayloadType @@ -225,9 +225,9 @@ from .group_0597 import WebhookPageBuildType as WebhookPageBuildType from .group_0771 import MarkdownPostBodyType as MarkdownPostBodyType from .group_0775 import OrgsOrgPatchBodyType as OrgsOrgPatchBodyType - from .group_0954 import DependabotSecretType as DependabotSecretType - from .group_1071 import CodespacesSecretType as CodespacesSecretType - from .group_1085 import UserKeysPostBodyType as UserKeysPostBodyType + from .group_0955 import DependabotSecretType as DependabotSecretType + from .group_1072 import CodespacesSecretType as CodespacesSecretType + from .group_1086 import UserKeysPostBodyType as UserKeysPostBodyType from .group_0018 import InstallationTokenType as InstallationTokenType from .group_0043 import BaseGistPropFilesType as BaseGistPropFilesType from .group_0048 import GitignoreTemplateType as GitignoreTemplateType @@ -252,7 +252,7 @@ from .group_0380 import WebhooksDeployKeyType as WebhooksDeployKeyType from .group_0394 import WebhooksMilestoneType as WebhooksMilestoneType from .group_0736 import WebhookTeamEditedType as WebhookTeamEditedType - from .group_1089 import UserReposPostBodyType as UserReposPostBodyType + from .group_1090 import UserReposPostBodyType as UserReposPostBodyType from .group_0019 import ScopedInstallationType as ScopedInstallationType from .group_0027 import OrganizationSimpleType as OrganizationSimpleType from .group_0028 import CopilotSeatDetailsType as CopilotSeatDetailsType @@ -319,8 +319,8 @@ from .group_0571 import WebhookMemberEditedType as WebhookMemberEditedType from .group_0603 import WebhookPingPropHookType as WebhookPingPropHookType from .group_0738 import WebhookWatchStartedType as WebhookWatchStartedType - from .group_0806 import CodespacesOrgSecretType as CodespacesOrgSecretType - from .group_1081 import UserGpgKeysPostBodyType as UserGpgKeysPostBodyType + from .group_0807 import CodespacesOrgSecretType as CodespacesOrgSecretType + from .group_1082 import UserGpgKeysPostBodyType as UserGpgKeysPostBodyType from .group_0020 import AuthorizationPropAppType as AuthorizationPropAppType from .group_0028 import OrganizationPropPlanType as OrganizationPropPlanType from .group_0039 import IssuePropPullRequestType as IssuePropPullRequestType @@ -359,12 +359,12 @@ from .group_0761 import EmojisGetResponse200Type as EmojisGetResponse200Type from .group_0766 import GistsGistIdPatchBodyType as GistsGistIdPatchBodyType from .group_0772 import NotificationsPutBodyType as NotificationsPutBodyType - from .group_0823 import OrgsOrgHooksPostBodyType as OrgsOrgHooksPostBodyType - from .group_0845 import OrgsOrgReposPostBodyType as OrgsOrgReposPostBodyType - from .group_0848 import OrgsOrgTeamsPostBodyType as OrgsOrgTeamsPostBodyType - from .group_0944 import RepoCodespacesSecretType as RepoCodespacesSecretType - from .group_1056 import TeamsTeamIdPatchBodyType as TeamsTeamIdPatchBodyType - from .group_1088 import UserProjectsPostBodyType as UserProjectsPostBodyType + from .group_0824 import OrgsOrgHooksPostBodyType as OrgsOrgHooksPostBodyType + from .group_0846 import OrgsOrgReposPostBodyType as OrgsOrgReposPostBodyType + from .group_0849 import OrgsOrgTeamsPostBodyType as OrgsOrgTeamsPostBodyType + from .group_0945 import RepoCodespacesSecretType as RepoCodespacesSecretType + from .group_1057 import TeamsTeamIdPatchBodyType as TeamsTeamIdPatchBodyType + from .group_1089 import UserProjectsPostBodyType as UserProjectsPostBodyType from .group_0004 import ValidationErrorSimpleType as ValidationErrorSimpleType from .group_0114 import RepositoryRuleOneof14Type as RepositoryRuleOneof14Type from .group_0114 import RepositoryRuleOneof16Type as RepositoryRuleOneof16Type @@ -444,8 +444,8 @@ from .group_0708 import SecretScanningLocationType as SecretScanningLocationType from .group_0753 import AppHookConfigPatchBodyType as AppHookConfigPatchBodyType from .group_0764 import GistsPostBodyPropFilesType as GistsPostBodyPropFilesType - from .group_0962 import DeploymentBranchPolicyType as DeploymentBranchPolicyType - from .group_1087 import UserMigrationsPostBodyType as UserMigrationsPostBodyType + from .group_0963 import DeploymentBranchPolicyType as DeploymentBranchPolicyType + from .group_1088 import UserMigrationsPostBodyType as UserMigrationsPostBodyType from .group_0011 import HookDeliveryPropRequestType as HookDeliveryPropRequestType from .group_0135 import RepositoryRuleWorkflowsType as RepositoryRuleWorkflowsType from .group_0161 import ArtifactPropWorkflowRunType as ArtifactPropWorkflowRunType @@ -479,9 +479,9 @@ from .group_0689 import WebhookRepositoryImportType as WebhookRepositoryImportType from .group_0727 import WebhookStatusPropCommitType as WebhookStatusPropCommitType from .group_0739 import WebhookWorkflowDispatchType as WebhookWorkflowDispatchType - from .group_0841 import OrgsOrgProjectsPostBodyType as OrgsOrgProjectsPostBodyType - from .group_0846 import OrgsOrgRulesetsPostBodyType as OrgsOrgRulesetsPostBodyType - from .group_0879 import ReposOwnerRepoPatchBodyType as ReposOwnerRepoPatchBodyType + from .group_0842 import OrgsOrgProjectsPostBodyType as OrgsOrgProjectsPostBodyType + from .group_0847 import OrgsOrgRulesetsPostBodyType as OrgsOrgRulesetsPostBodyType + from .group_0880 import ReposOwnerRepoPatchBodyType as ReposOwnerRepoPatchBodyType from .group_0002 import VulnerabilityPropPackageType as VulnerabilityPropPackageType from .group_0011 import HookDeliveryPropResponseType as HookDeliveryPropResponseType from .group_0024 import ClassroomAssignmentGradeType as ClassroomAssignmentGradeType @@ -523,7 +523,7 @@ from .group_0692 import WebhookRepositoryRenamedType as WebhookRepositoryRenamedType from .group_0721 import WebhookSponsorshipEditedType as WebhookSponsorshipEditedType from .group_0746 import WebhookWorkflowJobQueuedType as WebhookWorkflowJobQueuedType - from .group_1079 import UserEmailsPostBodyOneof0Type as UserEmailsPostBodyOneof0Type + from .group_1080 import UserEmailsPostBodyOneof0Type as UserEmailsPostBodyOneof0Type from .group_0017 import ( RepositoryPropPermissionsType as RepositoryPropPermissionsType, ) @@ -656,7 +656,7 @@ from .group_0787 import ( OrganizationActionsSecretType as OrganizationActionsSecretType, ) - from .group_0831 import ( + from .group_0832 import ( OrgsOrgMigrationsPostBodyType as OrgsOrgMigrationsPostBodyType, ) from .group_0005 import ( @@ -830,22 +830,22 @@ from .group_0716 import ( WebhookSecurityAndAnalysisType as WebhookSecurityAndAnalysisType, ) - from .group_0828 import ( + from .group_0829 import ( OrgsOrgInvitationsPostBodyType as OrgsOrgInvitationsPostBodyType, ) - from .group_0874 import ( + from .group_0875 import ( ProjectsProjectIdPatchBodyType as ProjectsProjectIdPatchBodyType, ) - from .group_1001 import ( + from .group_1002 import ( ReposOwnerRepoKeysPostBodyType as ReposOwnerRepoKeysPostBodyType, ) - from .group_1080 import ( + from .group_1081 import ( UserEmailsDeleteBodyOneof0Type as UserEmailsDeleteBodyOneof0Type, ) - from .group_1090 import ( + from .group_1091 import ( UserSocialAccountsPostBodyType as UserSocialAccountsPostBodyType, ) - from .group_1092 import ( + from .group_1093 import ( UserSshSigningKeysPostBodyType as UserSshSigningKeysPostBodyType, ) from .group_0002 import ( @@ -983,22 +983,22 @@ from .group_0791 import ( OrganizationActionsVariableType as OrganizationActionsVariableType, ) - from .group_0824 import ( + from .group_0825 import ( OrgsOrgHooksHookIdPatchBodyType as OrgsOrgHooksHookIdPatchBodyType, ) - from .group_0970 import ( + from .group_0971 import ( ReposOwnerRepoForksPostBodyType as ReposOwnerRepoForksPostBodyType, ) - from .group_0977 import ( + from .group_0978 import ( ReposOwnerRepoHooksPostBodyType as ReposOwnerRepoHooksPostBodyType, ) - from .group_0980 import ( + from .group_0981 import ( ReposOwnerRepoImportPutBodyType as ReposOwnerRepoImportPutBodyType, ) - from .group_1023 import ( + from .group_1024 import ( ReposOwnerRepoPullsPostBodyType as ReposOwnerRepoPullsPostBodyType, ) - from .group_1053 import ( + from .group_1054 import ( ReposOwnerRepoTopicsPutBodyType as ReposOwnerRepoTopicsPutBodyType, ) from .group_0055 import ( @@ -1178,31 +1178,31 @@ from .group_0749 import ( WebhookWorkflowRunInProgressType as WebhookWorkflowRunInProgressType, ) - from .group_0819 import ( + from .group_0820 import ( OrganizationDependabotSecretType as OrganizationDependabotSecretType, ) - from .group_0986 import ( + from .group_0987 import ( ReposOwnerRepoIssuesPostBodyType as ReposOwnerRepoIssuesPostBodyType, ) - from .group_1002 import ( + from .group_1003 import ( ReposOwnerRepoLabelsPostBodyType as ReposOwnerRepoLabelsPostBodyType, ) - from .group_1005 import ( + from .group_1006 import ( ReposOwnerRepoMergesPostBodyType as ReposOwnerRepoMergesPostBodyType, ) - from .group_1068 import ( + from .group_1069 import ( UserCodespacesGetResponse200Type as UserCodespacesGetResponse200Type, ) - from .group_1069 import ( + from .group_1070 import ( UserCodespacesPostBodyOneof0Type as UserCodespacesPostBodyOneof0Type, ) - from .group_1070 import ( + from .group_1071 import ( UserCodespacesPostBodyOneof1Type as UserCodespacesPostBodyOneof1Type, ) - from .group_1078 import ( + from .group_1079 import ( UserEmailVisibilityPatchBodyType as UserEmailVisibilityPatchBodyType, ) - from .group_1091 import ( + from .group_1092 import ( UserSocialAccountsDeleteBodyType as UserSocialAccountsDeleteBodyType, ) from .group_0034 import ( @@ -1316,16 +1316,16 @@ from .group_0776 import ( ActionsCacheUsageByRepositoryType as ActionsCacheUsageByRepositoryType, ) - from .group_0849 import ( + from .group_0850 import ( OrgsOrgTeamsTeamSlugPatchBodyType as OrgsOrgTeamsTeamSlugPatchBodyType, ) - from .group_0973 import ( + from .group_0974 import ( ReposOwnerRepoGitRefsPostBodyType as ReposOwnerRepoGitRefsPostBodyType, ) - from .group_0975 import ( + from .group_0976 import ( ReposOwnerRepoGitTagsPostBodyType as ReposOwnerRepoGitTagsPostBodyType, ) - from .group_0981 import ( + from .group_0982 import ( ReposOwnerRepoImportPatchBodyType as ReposOwnerRepoImportPatchBodyType, ) from .group_0002 import ( @@ -1457,31 +1457,31 @@ from .group_0727 import ( WebhookStatusPropBranchesItemsType as WebhookStatusPropBranchesItemsType, ) - from .group_0803 import ( + from .group_0804 import ( OrgsOrgCodespacesAccessPutBodyType as OrgsOrgCodespacesAccessPutBodyType, ) - from .group_0823 import ( + from .group_0824 import ( OrgsOrgHooksPostBodyPropConfigType as OrgsOrgHooksPostBodyPropConfigType, ) - from .group_0971 import ( + from .group_0972 import ( ReposOwnerRepoGitBlobsPostBodyType as ReposOwnerRepoGitBlobsPostBodyType, ) - from .group_0976 import ( + from .group_0977 import ( ReposOwnerRepoGitTreesPostBodyType as ReposOwnerRepoGitTreesPostBodyType, ) - from .group_1021 import ( + from .group_1022 import ( ReposOwnerRepoProjectsPostBodyType as ReposOwnerRepoProjectsPostBodyType, ) - from .group_1042 import ( + from .group_1043 import ( ReposOwnerRepoReleasesPostBodyType as ReposOwnerRepoReleasesPostBodyType, ) - from .group_1047 import ( + from .group_1048 import ( ReposOwnerRepoRulesetsPostBodyType as ReposOwnerRepoRulesetsPostBodyType, ) - from .group_1054 import ( + from .group_1055 import ( ReposOwnerRepoTransferPostBodyType as ReposOwnerRepoTransferPostBodyType, ) - from .group_1057 import ( + from .group_1058 import ( TeamsTeamIdDiscussionsPostBodyType as TeamsTeamIdDiscussionsPostBodyType, ) from .group_0032 import ( @@ -1568,25 +1568,25 @@ from .group_0792 import ( OrgsOrgActionsVariablesPostBodyType as OrgsOrgActionsVariablesPostBodyType, ) - from .group_0802 import ( + from .group_0803 import ( OrgsOrgCodespacesGetResponse200Type as OrgsOrgCodespacesGetResponse200Type, ) - from .group_0847 import ( + from .group_0848 import ( OrgsOrgRulesetsRulesetIdPutBodyType as OrgsOrgRulesetsRulesetIdPutBodyType, ) - from .group_0878 import ( + from .group_0879 import ( ReposOwnerRepoDeleteResponse403Type as ReposOwnerRepoDeleteResponse403Type, ) - from .group_0908 import ( + from .group_0909 import ( ReposOwnerRepoAutolinksPostBodyType as ReposOwnerRepoAutolinksPostBodyType, ) - from .group_1082 import ( + from .group_1083 import ( UserInstallationsGetResponse200Type as UserInstallationsGetResponse200Type, ) - from .group_1086 import ( + from .group_1087 import ( UserMembershipsOrgsOrgPatchBodyType as UserMembershipsOrgsOrgPatchBodyType, ) - from .group_1093 import ( + from .group_1094 import ( SigstoreBundle0PropDsseEnvelopeType as SigstoreBundle0PropDsseEnvelopeType, ) from .group_0055 import ( @@ -1709,52 +1709,52 @@ from .group_0777 import ( OrgsOrgActionsPermissionsPutBodyType as OrgsOrgActionsPermissionsPutBodyType, ) - from .group_0832 import ( + from .group_0833 import ( OrgsOrgOrganizationRolesPostBodyType as OrgsOrgOrganizationRolesPostBodyType, ) - from .group_0842 import ( + from .group_0843 import ( OrgsOrgPropertiesSchemaPatchBodyType as OrgsOrgPropertiesSchemaPatchBodyType, ) - from .group_0844 import ( + from .group_0845 import ( OrgsOrgPropertiesValuesPatchBodyType as OrgsOrgPropertiesValuesPatchBodyType, ) - from .group_0867 import ( + from .group_0868 import ( ProjectsColumnsColumnIdPatchBodyType as ProjectsColumnsColumnIdPatchBodyType, ) - from .group_0877 import ( + from .group_0878 import ( ProjectsProjectIdColumnsPostBodyType as ProjectsProjectIdColumnsPostBodyType, ) - from .group_0940 import ( + from .group_0941 import ( ReposOwnerRepoCodespacesPostBodyType as ReposOwnerRepoCodespacesPostBodyType, ) - from .group_0960 import ( + from .group_0961 import ( ReposOwnerRepoDispatchesPostBodyType as ReposOwnerRepoDispatchesPostBodyType, ) - from .group_0972 import ( + from .group_0973 import ( ReposOwnerRepoGitCommitsPostBodyType as ReposOwnerRepoGitCommitsPostBodyType, ) - from .group_0983 import ( + from .group_0984 import ( ReposOwnerRepoImportLfsPatchBodyType as ReposOwnerRepoImportLfsPatchBodyType, ) - from .group_1006 import ( + from .group_1007 import ( ReposOwnerRepoMilestonesPostBodyType as ReposOwnerRepoMilestonesPostBodyType, ) - from .group_1011 import ( + from .group_1012 import ( ReposOwnerRepoPagesPutBodyAnyof0Type as ReposOwnerRepoPagesPutBodyAnyof0Type, ) - from .group_1012 import ( + from .group_1013 import ( ReposOwnerRepoPagesPutBodyAnyof1Type as ReposOwnerRepoPagesPutBodyAnyof1Type, ) - from .group_1013 import ( + from .group_1014 import ( ReposOwnerRepoPagesPutBodyAnyof2Type as ReposOwnerRepoPagesPutBodyAnyof2Type, ) - from .group_1014 import ( + from .group_1015 import ( ReposOwnerRepoPagesPutBodyAnyof3Type as ReposOwnerRepoPagesPutBodyAnyof3Type, ) - from .group_1015 import ( + from .group_1016 import ( ReposOwnerRepoPagesPutBodyAnyof4Type as ReposOwnerRepoPagesPutBodyAnyof4Type, ) - from .group_1066 import ( + from .group_1067 import ( TeamsTeamIdReposOwnerRepoPutBodyType as TeamsTeamIdReposOwnerRepoPutBodyType, ) from .group_0053 import ( @@ -1847,40 +1847,40 @@ from .group_0757 import ( ApplicationsClientIdTokenPostBodyType as ApplicationsClientIdTokenPostBodyType, ) - from .group_0825 import ( + from .group_0826 import ( OrgsOrgHooksHookIdConfigPatchBodyType as OrgsOrgHooksHookIdConfigPatchBodyType, ) - from .group_0830 import ( + from .group_0831 import ( OrgsOrgMembershipsUsernamePutBodyType as OrgsOrgMembershipsUsernamePutBodyType, ) - from .group_0875 import ( + from .group_0876 import ( ProjectsProjectIdPatchResponse403Type as ProjectsProjectIdPatchResponse403Type, ) - from .group_0931 import ( + from .group_0932 import ( ReposOwnerRepoCheckSuitesPostBodyType as ReposOwnerRepoCheckSuitesPostBodyType, ) - from .group_0951 import ( + from .group_0952 import ( ReposOwnerRepoContentsPathPutBodyType as ReposOwnerRepoContentsPathPutBodyType, ) - from .group_0957 import ( + from .group_0958 import ( ReposOwnerRepoDeploymentsPostBodyType as ReposOwnerRepoDeploymentsPostBodyType, ) - from .group_0974 import ( + from .group_0975 import ( ReposOwnerRepoGitRefsRefPatchBodyType as ReposOwnerRepoGitRefsRefPatchBodyType, ) - from .group_1003 import ( + from .group_1004 import ( ReposOwnerRepoLabelsNamePatchBodyType as ReposOwnerRepoLabelsNamePatchBodyType, ) - from .group_1017 import ( + from .group_1018 import ( ReposOwnerRepoPagesPostBodyAnyof0Type as ReposOwnerRepoPagesPostBodyAnyof0Type, ) - from .group_1018 import ( + from .group_1019 import ( ReposOwnerRepoPagesPostBodyAnyof1Type as ReposOwnerRepoPagesPostBodyAnyof1Type, ) - from .group_1050 import ( + from .group_1051 import ( ReposOwnerRepoStatusesShaPostBodyType as ReposOwnerRepoStatusesShaPostBodyType, ) - from .group_1051 import ( + from .group_1052 import ( ReposOwnerRepoSubscriptionPutBodyType as ReposOwnerRepoSubscriptionPutBodyType, ) from .group_0002 import ( @@ -2024,19 +2024,19 @@ from .group_0765 import ( GistsGistIdGetResponse403PropBlockType as GistsGistIdGetResponse403PropBlockType, ) - from .group_0826 import ( + from .group_0827 import ( OrgsOrgInstallationsGetResponse200Type as OrgsOrgInstallationsGetResponse200Type, ) - from .group_0873 import ( + from .group_0874 import ( ProjectsProjectIdDeleteResponse403Type as ProjectsProjectIdDeleteResponse403Type, ) - from .group_0905 import ( + from .group_0906 import ( ReposOwnerRepoAttestationsPostBodyType as ReposOwnerRepoAttestationsPostBodyType, ) - from .group_0978 import ( + from .group_0979 import ( ReposOwnerRepoHooksHookIdPatchBodyType as ReposOwnerRepoHooksHookIdPatchBodyType, ) - from .group_1008 import ( + from .group_1009 import ( ReposOwnerRepoNotificationsPutBodyType as ReposOwnerRepoNotificationsPutBodyType, ) from .group_0011 import ( @@ -2165,19 +2165,19 @@ from .group_0787 import ( OrgsOrgActionsSecretsGetResponse200Type as OrgsOrgActionsSecretsGetResponse200Type, ) - from .group_0839 import ( + from .group_0840 import ( OrgsOrgPersonalAccessTokensPostBodyType as OrgsOrgPersonalAccessTokensPostBodyType, ) - from .group_0862 import ( + from .group_0863 import ( ProjectsColumnsCardsCardIdPatchBodyType as ProjectsColumnsCardsCardIdPatchBodyType, ) - from .group_1004 import ( + from .group_1005 import ( ReposOwnerRepoMergeUpstreamPostBodyType as ReposOwnerRepoMergeUpstreamPostBodyType, ) - from .group_1064 import ( + from .group_1065 import ( TeamsTeamIdProjectsProjectIdPutBodyType as TeamsTeamIdProjectsProjectIdPutBodyType, ) - from .group_1071 import ( + from .group_1072 import ( UserCodespacesSecretsGetResponse200Type as UserCodespacesSecretsGetResponse200Type, ) from .group_0031 import ( @@ -2297,16 +2297,16 @@ from .group_0793 import ( OrgsOrgActionsVariablesNamePatchBodyType as OrgsOrgActionsVariablesNamePatchBodyType, ) - from .group_0871 import ( + from .group_0872 import ( ProjectsColumnsColumnIdMovesPostBodyType as ProjectsColumnsColumnIdMovesPostBodyType, ) - from .group_0952 import ( + from .group_0953 import ( ReposOwnerRepoContentsPathDeleteBodyType as ReposOwnerRepoContentsPathDeleteBodyType, ) - from .group_1052 import ( + from .group_1053 import ( ReposOwnerRepoTagsProtectionPostBodyType as ReposOwnerRepoTagsProtectionPostBodyType, ) - from .group_1075 import ( + from .group_1076 import ( UserCodespacesCodespaceNamePatchBodyType as UserCodespacesCodespaceNamePatchBodyType, ) from .group_0029 import ( @@ -2405,22 +2405,22 @@ from .group_0791 import ( OrgsOrgActionsVariablesGetResponse200Type as OrgsOrgActionsVariablesGetResponse200Type, ) - from .group_0824 import ( + from .group_0825 import ( OrgsOrgHooksHookIdPatchBodyPropConfigType as OrgsOrgHooksHookIdPatchBodyPropConfigType, ) - from .group_0926 import ( + from .group_0927 import ( ReposOwnerRepoCheckRunsPostBodyOneof0Type as ReposOwnerRepoCheckRunsPostBodyOneof0Type, ) - from .group_0927 import ( + from .group_0928 import ( ReposOwnerRepoCheckRunsPostBodyOneof1Type as ReposOwnerRepoCheckRunsPostBodyOneof1Type, ) - from .group_0977 import ( + from .group_0978 import ( ReposOwnerRepoHooksPostBodyPropConfigType as ReposOwnerRepoHooksPostBodyPropConfigType, ) - from .group_1016 import ( + from .group_1017 import ( ReposOwnerRepoPagesPostBodyPropSourceType as ReposOwnerRepoPagesPostBodyPropSourceType, ) - from .group_1063 import ( + from .group_1064 import ( TeamsTeamIdMembershipsUsernamePutBodyType as TeamsTeamIdMembershipsUsernamePutBodyType, ) from .group_0075 import ( @@ -2564,28 +2564,28 @@ from .group_0788 import ( OrgsOrgActionsSecretsSecretNamePutBodyType as OrgsOrgActionsSecretsSecretNamePutBodyType, ) - from .group_0806 import ( + from .group_0807 import ( OrgsOrgCodespacesSecretsGetResponse200Type as OrgsOrgCodespacesSecretsGetResponse200Type, ) - from .group_0819 import ( + from .group_0820 import ( OrgsOrgDependabotSecretsGetResponse200Type as OrgsOrgDependabotSecretsGetResponse200Type, ) - from .group_0900 import ( + from .group_0901 import ( ReposOwnerRepoActionsVariablesPostBodyType as ReposOwnerRepoActionsVariablesPostBodyType, ) - from .group_0939 import ( + from .group_0940 import ( ReposOwnerRepoCodespacesGetResponse200Type as ReposOwnerRepoCodespacesGetResponse200Type, ) - from .group_1019 import ( + from .group_1020 import ( ReposOwnerRepoPagesDeploymentsPostBodyType as ReposOwnerRepoPagesDeploymentsPostBodyType, ) - from .group_1026 import ( + from .group_1027 import ( ReposOwnerRepoPullsPullNumberPatchBodyType as ReposOwnerRepoPullsPullNumberPatchBodyType, ) - from .group_1048 import ( + from .group_1049 import ( ReposOwnerRepoRulesetsRulesetIdPutBodyType as ReposOwnerRepoRulesetsRulesetIdPutBodyType, ) - from .group_1072 import ( + from .group_1073 import ( UserCodespacesSecretsSecretNamePutBodyType as UserCodespacesSecretsSecretNamePutBodyType, ) from .group_0032 import ( @@ -2666,28 +2666,28 @@ from .group_0760 import ( ApplicationsClientIdTokenScopedPostBodyType as ApplicationsClientIdTokenScopedPostBodyType, ) - from .group_0833 import ( + from .group_0834 import ( OrgsOrgOrganizationRolesRoleIdPatchBodyType as OrgsOrgOrganizationRolesRoleIdPatchBodyType, ) - from .group_0850 import ( + from .group_0851 import ( OrgsOrgTeamsTeamSlugDiscussionsPostBodyType as OrgsOrgTeamsTeamSlugDiscussionsPostBodyType, ) - from .group_0863 import ( + from .group_0864 import ( ProjectsColumnsCardsCardIdMovesPostBodyType as ProjectsColumnsCardsCardIdMovesPostBodyType, ) - from .group_0885 import ( + from .group_0886 import ( ReposOwnerRepoActionsPermissionsPutBodyType as ReposOwnerRepoActionsPermissionsPutBodyType, ) - from .group_0890 import ( + from .group_0891 import ( ReposOwnerRepoActionsRunsGetResponse200Type as ReposOwnerRepoActionsRunsGetResponse200Type, ) - from .group_0975 import ( + from .group_0976 import ( ReposOwnerRepoGitTagsPostBodyPropTaggerType as ReposOwnerRepoGitTagsPostBodyPropTaggerType, ) - from .group_1022 import ( + from .group_1023 import ( ReposOwnerRepoPropertiesValuesPatchBodyType as ReposOwnerRepoPropertiesValuesPatchBodyType, ) - from .group_1093 import ( + from .group_1094 import ( SigstoreBundle0PropVerificationMaterialType as SigstoreBundle0PropVerificationMaterialType, ) from .group_0138 import ( @@ -2783,34 +2783,34 @@ from .group_0747 import ( WebhookWorkflowJobWaitingPropWorkflowJobType as WebhookWorkflowJobWaitingPropWorkflowJobType, ) - from .group_0810 import ( + from .group_0811 import ( OrgsOrgCopilotBillingSeatsGetResponse200Type as OrgsOrgCopilotBillingSeatsGetResponse200Type, ) - from .group_0840 import ( + from .group_0841 import ( OrgsOrgPersonalAccessTokensPatIdPostBodyType as OrgsOrgPersonalAccessTokensPatIdPostBodyType, ) - from .group_0845 import ( + from .group_0846 import ( OrgsOrgReposPostBodyPropCustomPropertiesType as OrgsOrgReposPostBodyPropCustomPropertiesType, ) - from .group_0860 import ( + from .group_0861 import ( OrgsOrgSecurityProductEnablementPostBodyType as OrgsOrgSecurityProductEnablementPostBodyType, ) - from .group_0938 import ( + from .group_0939 import ( ReposOwnerRepoCodeScanningSarifsPostBodyType as ReposOwnerRepoCodeScanningSarifsPostBodyType, ) - from .group_0947 import ( + from .group_0948 import ( ReposOwnerRepoCommentsCommentIdPatchBodyType as ReposOwnerRepoCommentsCommentIdPatchBodyType, ) - from .group_0958 import ( + from .group_0959 import ( ReposOwnerRepoDeploymentsPostResponse202Type as ReposOwnerRepoDeploymentsPostResponse202Type, ) - from .group_0979 import ( + from .group_0980 import ( ReposOwnerRepoHooksHookIdConfigPatchBodyType as ReposOwnerRepoHooksHookIdConfigPatchBodyType, ) - from .group_0989 import ( + from .group_0990 import ( ReposOwnerRepoIssuesIssueNumberPatchBodyType as ReposOwnerRepoIssuesIssueNumberPatchBodyType, ) - from .group_1045 import ( + from .group_1046 import ( ReposOwnerRepoReleasesReleaseIdPatchBodyType as ReposOwnerRepoReleasesReleaseIdPatchBodyType, ) from .group_0136 import ( @@ -2957,31 +2957,31 @@ from .group_0797 import ( OrgsOrgCodeSecurityConfigurationsPostBodyType as OrgsOrgCodeSecurityConfigurationsPostBodyType, ) - from .group_0807 import ( + from .group_0808 import ( OrgsOrgCodespacesSecretsSecretNamePutBodyType as OrgsOrgCodespacesSecretsSecretNamePutBodyType, ) - from .group_0820 import ( + from .group_0821 import ( OrgsOrgDependabotSecretsSecretNamePutBodyType as OrgsOrgDependabotSecretsSecretNamePutBodyType, ) - from .group_0859 import ( + from .group_0860 import ( OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType as OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType, ) - from .group_0906 import ( + from .group_0907 import ( ReposOwnerRepoAttestationsPostResponse201Type as ReposOwnerRepoAttestationsPostResponse201Type, ) - from .group_0925 import ( + from .group_0926 import ( ReposOwnerRepoCheckRunsPostBodyPropOutputType as ReposOwnerRepoCheckRunsPostBodyPropOutputType, ) - from .group_0943 import ( + from .group_0944 import ( ReposOwnerRepoCodespacesNewGetResponse200Type as ReposOwnerRepoCodespacesNewGetResponse200Type, ) - from .group_1009 import ( + from .group_1010 import ( ReposOwnerRepoNotificationsPutResponse202Type as ReposOwnerRepoNotificationsPutResponse202Type, ) - from .group_1030 import ( + from .group_1031 import ( ReposOwnerRepoPullsPullNumberMergePutBodyType as ReposOwnerRepoPullsPullNumberMergePutBodyType, ) - from .group_1084 import ( + from .group_1085 import ( UserInteractionLimitsGetResponse200Anyof1Type as UserInteractionLimitsGetResponse200Anyof1Type, ) from .group_0052 import ( @@ -3098,49 +3098,49 @@ from .group_0784 import ( OrgsOrgActionsRunnersRunnerIdLabelsPutBodyType as OrgsOrgActionsRunnersRunnerIdLabelsPutBodyType, ) - from .group_0811 import ( + from .group_0812 import ( OrgsOrgCopilotBillingSelectedTeamsPostBodyType as OrgsOrgCopilotBillingSelectedTeamsPostBodyType, ) - from .group_0815 import ( + from .group_0816 import ( OrgsOrgCopilotBillingSelectedUsersPostBodyType as OrgsOrgCopilotBillingSelectedUsersPostBodyType, ) - from .group_0834 import ( + from .group_0835 import ( OrgsOrgOutsideCollaboratorsUsernamePutBodyType as OrgsOrgOutsideCollaboratorsUsernamePutBodyType, ) - from .group_0837 import ( + from .group_0838 import ( OrgsOrgPersonalAccessTokenRequestsPostBodyType as OrgsOrgPersonalAccessTokenRequestsPostBodyType, ) - from .group_0868 import ( + from .group_0869 import ( ProjectsColumnsColumnIdCardsPostBodyOneof0Type as ProjectsColumnsColumnIdCardsPostBodyOneof0Type, ) - from .group_0869 import ( + from .group_0870 import ( ProjectsColumnsColumnIdCardsPostBodyOneof1Type as ProjectsColumnsColumnIdCardsPostBodyOneof1Type, ) - from .group_0886 import ( + from .group_0887 import ( ReposOwnerRepoActionsRunnersGetResponse200Type as ReposOwnerRepoActionsRunnersGetResponse200Type, ) - from .group_0897 import ( + from .group_0898 import ( ReposOwnerRepoActionsSecretsGetResponse200Type as ReposOwnerRepoActionsSecretsGetResponse200Type, ) - from .group_0924 import ( + from .group_0925 import ( ReposOwnerRepoBranchesBranchRenamePostBodyType as ReposOwnerRepoBranchesBranchRenamePostBodyType, ) - from .group_0946 import ( + from .group_0947 import ( ReposOwnerRepoCollaboratorsUsernamePutBodyType as ReposOwnerRepoCollaboratorsUsernamePutBodyType, ) - from .group_0972 import ( + from .group_0973 import ( ReposOwnerRepoGitCommitsPostBodyPropAuthorType as ReposOwnerRepoGitCommitsPostBodyPropAuthorType, ) - from .group_0999 import ( + from .group_1000 import ( ReposOwnerRepoIssuesIssueNumberLockPutBodyType as ReposOwnerRepoIssuesIssueNumberLockPutBodyType, ) - from .group_1010 import ( + from .group_1011 import ( ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type as ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, ) - from .group_1065 import ( + from .group_1066 import ( TeamsTeamIdProjectsProjectIdPutResponse403Type as TeamsTeamIdProjectsProjectIdPutResponse403Type, ) - from .group_1077 import ( + from .group_1078 import ( UserCodespacesCodespaceNamePublishPostBodyType as UserCodespacesCodespaceNamePublishPostBodyType, ) from .group_0035 import ( @@ -3263,34 +3263,34 @@ from .group_0785 import ( OrgsOrgActionsRunnersRunnerIdLabelsPostBodyType as OrgsOrgActionsRunnersRunnerIdLabelsPostBodyType, ) - from .group_0861 import ( + from .group_0862 import ( ProjectsColumnsCardsCardIdDeleteResponse403Type as ProjectsColumnsCardsCardIdDeleteResponse403Type, ) - from .group_0870 import ( + from .group_0871 import ( ProjectsColumnsColumnIdCardsPostResponse503Type as ProjectsColumnsColumnIdCardsPostResponse503Type, ) - from .group_0872 import ( + from .group_0873 import ( ProjectsColumnsColumnIdMovesPostResponse201Type as ProjectsColumnsColumnIdMovesPostResponse201Type, ) - from .group_0881 import ( + from .group_0882 import ( ReposOwnerRepoActionsJobsJobIdRerunPostBodyType as ReposOwnerRepoActionsJobsJobIdRerunPostBodyType, ) - from .group_0895 import ( + from .group_0896 import ( ReposOwnerRepoActionsRunsRunIdRerunPostBodyType as ReposOwnerRepoActionsRunsRunIdRerunPostBodyType, ) - from .group_0901 import ( + from .group_0902 import ( ReposOwnerRepoActionsVariablesNamePatchBodyType as ReposOwnerRepoActionsVariablesNamePatchBodyType, ) - from .group_0951 import ( + from .group_0952 import ( ReposOwnerRepoContentsPathPutBodyPropAuthorType as ReposOwnerRepoContentsPathPutBodyPropAuthorType, ) - from .group_0976 import ( + from .group_0977 import ( ReposOwnerRepoGitTreesPostBodyPropTreeItemsType as ReposOwnerRepoGitTreesPostBodyPropTreeItemsType, ) - from .group_1044 import ( + from .group_1045 import ( ReposOwnerRepoReleasesGenerateNotesPostBodyType as ReposOwnerRepoReleasesGenerateNotesPostBodyType, ) - from .group_1070 import ( + from .group_1071 import ( UserCodespacesPostBodyOneof1PropPullRequestType as UserCodespacesPostBodyOneof1PropPullRequestType, ) from .group_0032 import ( @@ -3380,40 +3380,40 @@ from .group_0779 import ( OrgsOrgActionsPermissionsRepositoriesPutBodyType as OrgsOrgActionsPermissionsRepositoriesPutBodyType, ) - from .group_0804 import ( + from .group_0805 import ( OrgsOrgCodespacesAccessSelectedUsersPostBodyType as OrgsOrgCodespacesAccessSelectedUsersPostBodyType, ) - from .group_0813 import ( + from .group_0814 import ( OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType as OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType, ) - from .group_0817 import ( + from .group_0818 import ( OrgsOrgCopilotBillingSelectedUsersDeleteBodyType as OrgsOrgCopilotBillingSelectedUsersDeleteBodyType, ) - from .group_0827 import ( + from .group_0828 import ( OrgsOrgInteractionLimitsGetResponse200Anyof1Type as OrgsOrgInteractionLimitsGetResponse200Anyof1Type, ) - from .group_0857 import ( + from .group_0858 import ( OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType as OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType, ) - from .group_0880 import ( + from .group_0881 import ( ReposOwnerRepoActionsArtifactsGetResponse200Type as ReposOwnerRepoActionsArtifactsGetResponse200Type, ) - from .group_0899 import ( + from .group_0900 import ( ReposOwnerRepoActionsVariablesGetResponse200Type as ReposOwnerRepoActionsVariablesGetResponse200Type, ) - from .group_0902 import ( + from .group_0903 import ( ReposOwnerRepoActionsWorkflowsGetResponse200Type as ReposOwnerRepoActionsWorkflowsGetResponse200Type, ) - from .group_0905 import ( + from .group_0906 import ( ReposOwnerRepoAttestationsPostBodyPropBundleType as ReposOwnerRepoAttestationsPostBodyPropBundleType, ) - from .group_0982 import ( + from .group_0983 import ( ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType as ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType, ) - from .group_1036 import ( + from .group_1037 import ( ReposOwnerRepoPullsPullNumberReviewsPostBodyType as ReposOwnerRepoPullsPullNumberReviewsPostBodyType, ) - from .group_1043 import ( + from .group_1044 import ( ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType as ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType, ) from .group_0107 import ( @@ -3494,31 +3494,31 @@ from .group_0718 import ( WebhookSecurityAndAnalysisPropChangesPropFromType as WebhookSecurityAndAnalysisPropChangesPropFromType, ) - from .group_0876 import ( + from .group_0877 import ( ProjectsProjectIdCollaboratorsUsernamePutBodyType as ProjectsProjectIdCollaboratorsUsernamePutBodyType, ) - from .group_0898 import ( + from .group_0899 import ( ReposOwnerRepoActionsSecretsSecretNamePutBodyType as ReposOwnerRepoActionsSecretsSecretNamePutBodyType, ) - from .group_0909 import ( + from .group_0910 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyType as ReposOwnerRepoBranchesBranchProtectionPutBodyType, ) - from .group_0932 import ( + from .group_0933 import ( ReposOwnerRepoCheckSuitesPreferencesPatchBodyType as ReposOwnerRepoCheckSuitesPreferencesPatchBodyType, ) - from .group_0944 import ( + from .group_0945 import ( ReposOwnerRepoCodespacesSecretsGetResponse200Type as ReposOwnerRepoCodespacesSecretsGetResponse200Type, ) - from .group_0954 import ( + from .group_0955 import ( ReposOwnerRepoDependabotSecretsGetResponse200Type as ReposOwnerRepoDependabotSecretsGetResponse200Type, ) - from .group_0972 import ( + from .group_0973 import ( ReposOwnerRepoGitCommitsPostBodyPropCommitterType as ReposOwnerRepoGitCommitsPostBodyPropCommitterType, ) - from .group_1024 import ( + from .group_1025 import ( ReposOwnerRepoPullsCommentsCommentIdPatchBodyType as ReposOwnerRepoPullsCommentsCommentIdPatchBodyType, ) - from .group_1028 import ( + from .group_1029 import ( ReposOwnerRepoPullsPullNumberCommentsPostBodyType as ReposOwnerRepoPullsPullNumberCommentsPostBodyType, ) from .group_0398 import ( @@ -3611,46 +3611,46 @@ from .group_0796 import ( OrgsOrgAttestationsSubjectDigestGetResponse200Type as OrgsOrgAttestationsSubjectDigestGetResponse200Type, ) - from .group_0805 import ( + from .group_0806 import ( OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType as OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType, ) - from .group_0829 import ( + from .group_0830 import ( OrgsOrgMembersUsernameCodespacesGetResponse200Type as OrgsOrgMembersUsernameCodespacesGetResponse200Type, ) - from .group_0856 import ( + from .group_0857 import ( OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType as OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType, ) - from .group_0864 import ( + from .group_0865 import ( ProjectsColumnsCardsCardIdMovesPostResponse201Type as ProjectsColumnsCardsCardIdMovesPostResponse201Type, ) - from .group_0865 import ( + from .group_0866 import ( ProjectsColumnsCardsCardIdMovesPostResponse403Type as ProjectsColumnsCardsCardIdMovesPostResponse403Type, ) - from .group_0866 import ( + from .group_0867 import ( ProjectsColumnsCardsCardIdMovesPostResponse503Type as ProjectsColumnsCardsCardIdMovesPostResponse503Type, ) - from .group_0879 import ( + from .group_0880 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType, ) - from .group_0942 import ( + from .group_0943 import ( ReposOwnerRepoCodespacesMachinesGetResponse200Type as ReposOwnerRepoCodespacesMachinesGetResponse200Type, ) - from .group_0949 import ( + from .group_0950 import ( ReposOwnerRepoCommitsCommitShaCommentsPostBodyType as ReposOwnerRepoCommitsCommitShaCommentsPostBodyType, ) - from .group_0951 import ( + from .group_0952 import ( ReposOwnerRepoContentsPathPutBodyPropCommitterType as ReposOwnerRepoContentsPathPutBodyPropCommitterType, ) - from .group_0952 import ( + from .group_0953 import ( ReposOwnerRepoContentsPathDeleteBodyPropAuthorType as ReposOwnerRepoContentsPathDeleteBodyPropAuthorType, ) - from .group_0985 import ( + from .group_0986 import ( ReposOwnerRepoInvitationsInvitationIdPatchBodyType as ReposOwnerRepoInvitationsInvitationIdPatchBodyType, ) - from .group_0987 import ( + from .group_0988 import ( ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType as ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType, ) - from .group_1055 import ( + from .group_1056 import ( ReposTemplateOwnerTemplateRepoGeneratePostBodyType as ReposTemplateOwnerTemplateRepoGeneratePostBodyType, ) from .group_0052 import ( @@ -3755,19 +3755,19 @@ from .group_0774 import ( NotificationsThreadsThreadIdSubscriptionPutBodyType as NotificationsThreadsThreadIdSubscriptionPutBodyType, ) - from .group_0925 import ( + from .group_0926 import ( ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType as ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType, ) - from .group_0950 import ( + from .group_0951 import ( ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type as ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type, ) - from .group_0992 import ( + from .group_0993 import ( ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType as ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType, ) - from .group_1027 import ( + from .group_1028 import ( ReposOwnerRepoPullsPullNumberCodespacesPostBodyType as ReposOwnerRepoPullsPullNumberCodespacesPostBodyType, ) - from .group_1058 import ( + from .group_1059 import ( TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType as TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType, ) from .group_0054 import ( @@ -3866,52 +3866,52 @@ from .group_0752 import ( AppManifestsCodeConversionsPostResponse201Allof1Type as AppManifestsCodeConversionsPostResponse201Allof1Type, ) - from .group_0843 import ( + from .group_0844 import ( OrgsOrgPropertiesSchemaCustomPropertyNamePutBodyType as OrgsOrgPropertiesSchemaCustomPropertyNamePutBodyType, ) - from .group_0882 import ( + from .group_0883 import ( ReposOwnerRepoActionsOidcCustomizationSubPutBodyType as ReposOwnerRepoActionsOidcCustomizationSubPutBodyType, ) - from .group_0893 import ( + from .group_0894 import ( ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type as ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type, ) - from .group_0929 import ( + from .group_0930 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type, ) - from .group_0930 import ( + from .group_0931 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type, ) - from .group_0945 import ( + from .group_0946 import ( ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType as ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType, ) - from .group_0948 import ( + from .group_0949 import ( ReposOwnerRepoCommentsCommentIdReactionsPostBodyType as ReposOwnerRepoCommentsCommentIdReactionsPostBodyType, ) - from .group_0955 import ( + from .group_0956 import ( ReposOwnerRepoDependabotSecretsSecretNamePutBodyType as ReposOwnerRepoDependabotSecretsSecretNamePutBodyType, ) - from .group_0961 import ( + from .group_0962 import ( ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyType as ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyType, ) - from .group_0990 import ( + from .group_0991 import ( ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType as ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType, ) - from .group_1000 import ( + from .group_1001 import ( ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType as ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType, ) - from .group_1007 import ( + from .group_1008 import ( ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType as ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType, ) - from .group_1031 import ( + from .group_1032 import ( ReposOwnerRepoPullsPullNumberMergePutResponse405Type as ReposOwnerRepoPullsPullNumberMergePutResponse405Type, ) - from .group_1032 import ( + from .group_1033 import ( ReposOwnerRepoPullsPullNumberMergePutResponse409Type as ReposOwnerRepoPullsPullNumberMergePutResponse409Type, ) - from .group_1040 import ( + from .group_1041 import ( ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType as ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType, ) - from .group_1046 import ( + from .group_1047 import ( ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType as ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType, ) from .group_0110 import ( @@ -4073,28 +4073,31 @@ from .group_0783 import ( OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200Type as OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200Type, ) - from .group_0812 import ( + from .group_0798 import ( + OrgsOrgCodeSecurityConfigurationsDetachDeleteBodyType as OrgsOrgCodeSecurityConfigurationsDetachDeleteBodyType, + ) + from .group_0813 import ( OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type as OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type, ) - from .group_0816 import ( + from .group_0817 import ( OrgsOrgCopilotBillingSelectedUsersPostResponse201Type as OrgsOrgCopilotBillingSelectedUsersPostResponse201Type, ) - from .group_0835 import ( + from .group_0836 import ( OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type as OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type, ) - from .group_0888 import ( + from .group_0889 import ( ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType as ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType, ) - from .group_0952 import ( + from .group_0953 import ( ReposOwnerRepoContentsPathDeleteBodyPropCommitterType as ReposOwnerRepoContentsPathDeleteBodyPropCommitterType, ) - from .group_0960 import ( + from .group_0961 import ( ReposOwnerRepoDispatchesPostBodyPropClientPayloadType as ReposOwnerRepoDispatchesPostBodyPropClientPayloadType, ) - from .group_0986 import ( + from .group_0987 import ( ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type as ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type, ) - from .group_1076 import ( + from .group_1077 import ( UserCodespacesCodespaceNameMachinesGetResponse200Type as UserCodespacesCodespaceNameMachinesGetResponse200Type, ) from .group_0032 import ( @@ -4202,28 +4205,28 @@ from .group_0790 import ( OrgsOrgActionsSecretsSecretNameRepositoriesPutBodyType as OrgsOrgActionsSecretsSecretNameRepositoriesPutBodyType, ) - from .group_0889 import ( + from .group_0890 import ( ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType as ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType, ) - from .group_0953 import ( + from .group_0954 import ( ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType as ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType, ) - from .group_0957 import ( + from .group_0958 import ( ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type as ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type, ) - from .group_0991 import ( + from .group_0992 import ( ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType as ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType, ) - from .group_0993 import ( + from .group_0994 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type, ) - from .group_0994 import ( + from .group_0995 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type, ) - from .group_1074 import ( + from .group_1075 import ( UserCodespacesSecretsSecretNameRepositoriesPutBodyType as UserCodespacesSecretsSecretNameRepositoriesPutBodyType, ) - from .group_1093 import ( + from .group_1094 import ( SigstoreBundle0PropDsseEnvelopePropSignaturesItemsType as SigstoreBundle0PropDsseEnvelopePropSignaturesItemsType, ) from .group_0032 import ( @@ -4313,28 +4316,28 @@ from .group_0778 import ( OrgsOrgActionsPermissionsRepositoriesGetResponse200Type as OrgsOrgActionsPermissionsRepositoriesGetResponse200Type, ) - from .group_0814 import ( + from .group_0815 import ( OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type as OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type, ) - from .group_0818 import ( + from .group_0819 import ( OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type as OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type, ) - from .group_0858 import ( + from .group_0859 import ( OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type as OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type, ) - from .group_0941 import ( + from .group_0942 import ( ReposOwnerRepoCodespacesDevcontainersGetResponse200Type as ReposOwnerRepoCodespacesDevcontainersGetResponse200Type, ) - from .group_0984 import ( + from .group_0985 import ( ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type as ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type, ) - from .group_0996 import ( + from .group_0997 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type, ) - from .group_0997 import ( + from .group_0998 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2Type as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2Type, ) - from .group_1037 import ( + from .group_1038 import ( ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType as ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType, ) from .group_0127 import ( @@ -4430,16 +4433,16 @@ from .group_0786 import ( OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200Type as OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200Type, ) - from .group_0836 import ( + from .group_0837 import ( OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type as OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type, ) - from .group_0928 import ( + from .group_0929 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType, ) - from .group_0934 import ( + from .group_0935 import ( ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType as ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType, ) - from .group_1093 import ( + from .group_1094 import ( UsersUsernameAttestationsSubjectDigestGetResponse200Type as UsersUsernameAttestationsSubjectDigestGetResponse200Type, ) from .group_0177 import ( @@ -4574,34 +4577,34 @@ from .group_0794 import ( OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type as OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type, ) - from .group_0809 import ( + from .group_0810 import ( OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType as OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType, ) - from .group_0822 import ( + from .group_0823 import ( OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType as OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType, ) - from .group_0887 import ( + from .group_0888 import ( ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType as ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType, ) - from .group_0891 import ( + from .group_0892 import ( ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type as ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type, ) - from .group_0896 import ( + from .group_0897 import ( ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType as ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType, ) - from .group_0907 import ( + from .group_0908 import ( ReposOwnerRepoAttestationsSubjectDigestGetResponse200Type as ReposOwnerRepoAttestationsSubjectDigestGetResponse200Type, ) - from .group_0943 import ( + from .group_0944 import ( ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType as ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType, ) - from .group_0956 import ( + from .group_0957 import ( ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type as ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type, ) - from .group_0959 import ( + from .group_0960 import ( ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType as ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType, ) - from .group_1025 import ( + from .group_1026 import ( ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType as ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType, ) from .group_0177 import ( @@ -4718,19 +4721,19 @@ from .group_0762 import ( EnterprisesEnterpriseCopilotBillingSeatsGetResponse200Type as EnterprisesEnterpriseCopilotBillingSeatsGetResponse200Type, ) - from .group_0838 import ( + from .group_0839 import ( OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType as OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType, ) - from .group_0883 import ( + from .group_0884 import ( ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type as ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type, ) - from .group_0988 import ( + from .group_0989 import ( ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType as ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType, ) - from .group_1049 import ( + from .group_1050 import ( ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType as ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType, ) - from .group_1059 import ( + from .group_1060 import ( TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType as TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType, ) from .group_0177 import ( @@ -4844,13 +4847,13 @@ from .group_0763 import ( EnterprisesEnterpriseSecretScanningAlertsGetResponse503Type as EnterprisesEnterpriseSecretScanningAlertsGetResponse503Type, ) - from .group_0995 import ( + from .group_0996 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType, ) - from .group_1041 import ( + from .group_1042 import ( ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type as ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type, ) - from .group_1062 import ( + from .group_1063 import ( TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType as TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType, ) from .group_0054 import ( @@ -4991,19 +4994,19 @@ from .group_0750 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryType as WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryType, ) - from .group_0851 import ( + from .group_0852 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBodyType as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBodyType, ) - from .group_0884 import ( + from .group_0885 import ( ReposOwnerRepoActionsOrganizationVariablesGetResponse200Type as ReposOwnerRepoActionsOrganizationVariablesGetResponse200Type, ) - from .group_0894 import ( + from .group_0895 import ( ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBodyType as ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBodyType, ) - from .group_0925 import ( + from .group_0926 import ( ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType as ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType, ) - from .group_0998 import ( + from .group_0999 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType, ) from .group_0094 import ( @@ -5147,19 +5150,19 @@ from .group_0789 import ( OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200Type as OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200Type, ) - from .group_0798 import ( + from .group_0799 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyType as OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyType, ) - from .group_1020 import ( + from .group_1021 import ( ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200Type as ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200Type, ) - from .group_1035 import ( + from .group_1036 import ( ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBodyType as ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBodyType, ) - from .group_1073 import ( + from .group_1074 import ( UserCodespacesSecretsSecretNameRepositoriesGetResponse200Type as UserCodespacesSecretsSecretNameRepositoriesGetResponse200Type, ) - from .group_1083 import ( + from .group_1084 import ( UserInstallationsInstallationIdRepositoriesGetResponse200Type as UserInstallationsInstallationIdRepositoriesGetResponse200Type, ) from .group_0403 import ( @@ -5255,22 +5258,22 @@ from .group_0667 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelfType as WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelfType, ) - from .group_0870 import ( + from .group_0871 import ( ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType as ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType, ) - from .group_0903 import ( + from .group_0904 import ( ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyType as ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyType, ) - from .group_0904 import ( + from .group_0905 import ( ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200Type as ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200Type, ) - from .group_0928 import ( + from .group_0929 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType, ) - from .group_0968 import ( + from .group_0969 import ( ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBodyType as ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBodyType, ) - from .group_1039 import ( + from .group_1040 import ( ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBodyType as ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBodyType, ) from .group_0031 import ( @@ -5381,7 +5384,7 @@ from .group_0670 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType as WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType, ) - from .group_1093 import ( + from .group_1094 import ( SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsType as SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsType, ) from .group_0403 import ( @@ -5492,16 +5495,16 @@ from .group_0750 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryType as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryType, ) - from .group_0808 import ( + from .group_0809 import ( OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type as OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type, ) - from .group_0821 import ( + from .group_0822 import ( OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type as OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type, ) - from .group_0905 import ( + from .group_0906 import ( ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelopeType as ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelopeType, ) - from .group_0933 import ( + from .group_0934 import ( ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type as ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type, ) from .group_0108 import ( @@ -5651,43 +5654,43 @@ from .group_0750 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActorType as WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActorType, ) - from .group_0865 import ( + from .group_0866 import ( ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType as ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType, ) - from .group_0866 import ( + from .group_0867 import ( ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType as ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType, ) - from .group_0909 import ( + from .group_0910 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictionsType as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictionsType, ) - from .group_0925 import ( + from .group_0926 import ( ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType as ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType, ) - from .group_0935 import ( + from .group_0936 import ( ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0Type as ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0Type, ) - from .group_0936 import ( + from .group_0937 import ( ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1Type as ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1Type, ) - from .group_0937 import ( + from .group_0938 import ( ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2Type as ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2Type, ) - from .group_0989 import ( + from .group_0990 import ( ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type as ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type, ) - from .group_1029 import ( + from .group_1030 import ( ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBodyType as ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBodyType, ) - from .group_1033 import ( + from .group_1034 import ( ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0Type as ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0Type, ) - from .group_1034 import ( + from .group_1035 import ( ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1Type as ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1Type, ) - from .group_1036 import ( + from .group_1037 import ( ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType as ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType, ) - from .group_1038 import ( + from .group_1039 import ( ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBodyType as ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBodyType, ) from .group_0403 import ( @@ -5834,10 +5837,10 @@ from .group_0749 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActorType as WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActorType, ) - from .group_0799 import ( + from .group_0800 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBodyType as OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBodyType, ) - from .group_0965 import ( + from .group_0966 import ( ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200Type as ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200Type, ) from .group_0183 import ( @@ -5942,16 +5945,16 @@ from .group_0750 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsType as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsType, ) - from .group_0800 import ( + from .group_0801 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType as OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType, ) - from .group_0852 import ( + from .group_0853 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType, ) - from .group_0969 import ( + from .group_0970 import ( ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType as ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType, ) - from .group_1093 import ( + from .group_1094 import ( SigstoreBundle0PropVerificationMaterialPropX509CertificateChainType as SigstoreBundle0PropVerificationMaterialPropX509CertificateChainType, ) from .group_0095 import ( @@ -6068,13 +6071,13 @@ from .group_0749 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsType as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsType, ) - from .group_0855 import ( + from .group_0856 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBodyType as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBodyType, ) - from .group_0879 import ( + from .group_0880 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType, ) - from .group_0967 import ( + from .group_0968 import ( ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200Type as ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200Type, ) from .group_0106 import ( @@ -6203,10 +6206,10 @@ from .group_0750 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwnerType as WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwnerType, ) - from .group_0966 import ( + from .group_0967 import ( ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBodyType as ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBodyType, ) - from .group_0994 import ( + from .group_0995 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType, ) from .group_0094 import ( @@ -6392,13 +6395,13 @@ from .group_0750 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthorType as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthorType, ) - from .group_0879 import ( + from .group_0880 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType, ) - from .group_0961 import ( + from .group_0962 import ( ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType as ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType, ) - from .group_0997 import ( + from .group_0998 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType, ) from .group_0210 import ( @@ -6545,13 +6548,13 @@ from .group_0796 import ( OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsType as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsType, ) - from .group_0911 import ( + from .group_0912 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyType as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyType, ) - from .group_0915 import ( + from .group_0916 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0Type, ) - from .group_0928 import ( + from .group_0929 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType, ) from .group_0428 import ( @@ -6692,25 +6695,25 @@ from .group_0671 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType, ) - from .group_0903 import ( + from .group_0904 import ( ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType as ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType, ) - from .group_0905 import ( + from .group_0906 import ( ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterialType as ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterialType, ) - from .group_0916 import ( + from .group_0917 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0Type, ) - from .group_0918 import ( + from .group_0919 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0Type, ) - from .group_0921 import ( + from .group_0922 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0Type, ) - from .group_1060 import ( + from .group_1061 import ( TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType as TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType, ) - from .group_1093 import ( + from .group_1094 import ( SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogIdType as SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogIdType, ) from .group_0242 import ( @@ -6851,16 +6854,16 @@ from .group_0750 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType, ) - from .group_0892 import ( + from .group_0893 import ( ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200Type as ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200Type, ) - from .group_0909 import ( + from .group_0910 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksType as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksType, ) - from .group_0919 import ( + from .group_0920 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type, ) - from .group_0922 import ( + from .group_0923 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0Type, ) from .group_0195 import ( @@ -6977,10 +6980,10 @@ from .group_0750 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItemsType as WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItemsType, ) - from .group_0801 import ( + from .group_0802 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type as OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type, ) - from .group_0917 import ( + from .group_0918 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0Type, ) from .group_0094 import ( @@ -7127,13 +7130,13 @@ from .group_0750 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType, ) - from .group_0920 import ( + from .group_0921 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Type, ) - from .group_0923 import ( + from .group_0924 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0Type, ) - from .group_0932 import ( + from .group_0933 import ( ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType as ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType, ) from .group_0443 import ( @@ -7253,7 +7256,7 @@ from .group_0749 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType, ) - from .group_0928 import ( + from .group_0929 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType, ) from .group_0094 import ( @@ -7349,13 +7352,13 @@ from .group_0666 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0910 import ( + from .group_0911 import ( ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyType as ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyType, ) - from .group_0941 import ( + from .group_0942 import ( ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType as ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType, ) - from .group_1093 import ( + from .group_1094 import ( UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType as UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType, ) from .group_0428 import ( @@ -7496,13 +7499,13 @@ from .group_0667 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0907 import ( + from .group_0908 import ( ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsType as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsType, ) - from .group_0963 import ( + from .group_0964 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType, ) - from .group_1093 import ( + from .group_1094 import ( SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersionType as SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersionType, ) from .group_0444 import ( @@ -7634,7 +7637,7 @@ from .group_0666 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0909 import ( + from .group_0910 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsType as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsType, ) from .group_0195 import ( @@ -7724,7 +7727,7 @@ from .group_0715 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsType, ) - from .group_1061 import ( + from .group_1062 import ( TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType as TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType, ) from .group_0428 import ( @@ -7805,7 +7808,7 @@ from .group_0796 import ( OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType, ) - from .group_0853 import ( + from .group_0854 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType, ) from .group_0441 import ( @@ -7874,7 +7877,7 @@ from .group_0671 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType, ) - from .group_0879 import ( + from .group_0880 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType, ) from .group_0439 import ( @@ -7964,13 +7967,13 @@ from .group_0750 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0912 import ( + from .group_0913 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type, ) - from .group_0962 import ( + from .group_0963 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type, ) - from .group_1093 import ( + from .group_1094 import ( SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromiseType as SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromiseType, ) from .group_0255 import ( @@ -8057,7 +8060,7 @@ from .group_0749 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0913 import ( + from .group_0914 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0Type, ) from .group_0445 import ( @@ -8186,10 +8189,10 @@ from .group_0698 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType, ) - from .group_0911 import ( + from .group_0912 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType, ) - from .group_0914 import ( + from .group_0915 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0Type, ) from .group_0440 import ( @@ -8243,7 +8246,7 @@ from .group_0674 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItemsType as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItemsType, ) - from .group_0879 import ( + from .group_0880 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatternsType as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatternsType, ) from .group_0428 import ( @@ -8309,16 +8312,16 @@ from .group_0667 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0907 import ( + from .group_0908 import ( ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType, ) - from .group_0909 import ( + from .group_0910 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItemsType as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItemsType, ) - from .group_0964 import ( + from .group_0965 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type, ) - from .group_1093 import ( + from .group_1094 import ( SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItemsType as SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItemsType, ) from .group_0593 import ( @@ -8363,7 +8366,7 @@ from .group_0671 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItemsType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItemsType, ) - from .group_0854 import ( + from .group_0855 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType, ) from .group_0593 import ( @@ -8618,7 +8621,7 @@ from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0910 import ( + from .group_0911 import ( ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType as ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType, ) from .group_0671 import ( @@ -8636,10 +8639,10 @@ from .group_0715 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType, ) - from .group_0907 import ( + from .group_0908 import ( ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType, ) - from .group_0909 import ( + from .group_0910 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictionsType as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictionsType, ) from .group_0671 import ( @@ -8669,19 +8672,19 @@ from .group_0671 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1Type as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1Type, ) - from .group_0910 import ( + from .group_0911 import ( ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType as ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType, ) from .group_0671 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type, ) - from .group_0909 import ( + from .group_0910 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType, ) from .group_0671 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType, ) - from .group_0907 import ( + from .group_0908 import ( ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType, ) else: @@ -12241,134 +12244,135 @@ "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType", ), ".group_0797": ("OrgsOrgCodeSecurityConfigurationsPostBodyType",), - ".group_0798": ( + ".group_0798": ("OrgsOrgCodeSecurityConfigurationsDetachDeleteBodyType",), + ".group_0799": ( "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyType", ), - ".group_0799": ( + ".group_0800": ( "OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBodyType", ), - ".group_0800": ( + ".group_0801": ( "OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType", ), - ".group_0801": ( + ".group_0802": ( "OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type", ), - ".group_0802": ("OrgsOrgCodespacesGetResponse200Type",), - ".group_0803": ("OrgsOrgCodespacesAccessPutBodyType",), - ".group_0804": ("OrgsOrgCodespacesAccessSelectedUsersPostBodyType",), - ".group_0805": ("OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType",), - ".group_0806": ( + ".group_0803": ("OrgsOrgCodespacesGetResponse200Type",), + ".group_0804": ("OrgsOrgCodespacesAccessPutBodyType",), + ".group_0805": ("OrgsOrgCodespacesAccessSelectedUsersPostBodyType",), + ".group_0806": ("OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType",), + ".group_0807": ( "OrgsOrgCodespacesSecretsGetResponse200Type", "CodespacesOrgSecretType", ), - ".group_0807": ("OrgsOrgCodespacesSecretsSecretNamePutBodyType",), - ".group_0808": ( + ".group_0808": ("OrgsOrgCodespacesSecretsSecretNamePutBodyType",), + ".group_0809": ( "OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type", ), - ".group_0809": ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType",), - ".group_0810": ("OrgsOrgCopilotBillingSeatsGetResponse200Type",), - ".group_0811": ("OrgsOrgCopilotBillingSelectedTeamsPostBodyType",), - ".group_0812": ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type",), - ".group_0813": ("OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType",), - ".group_0814": ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type",), - ".group_0815": ("OrgsOrgCopilotBillingSelectedUsersPostBodyType",), - ".group_0816": ("OrgsOrgCopilotBillingSelectedUsersPostResponse201Type",), - ".group_0817": ("OrgsOrgCopilotBillingSelectedUsersDeleteBodyType",), - ".group_0818": ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type",), - ".group_0819": ( + ".group_0810": ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType",), + ".group_0811": ("OrgsOrgCopilotBillingSeatsGetResponse200Type",), + ".group_0812": ("OrgsOrgCopilotBillingSelectedTeamsPostBodyType",), + ".group_0813": ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type",), + ".group_0814": ("OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType",), + ".group_0815": ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type",), + ".group_0816": ("OrgsOrgCopilotBillingSelectedUsersPostBodyType",), + ".group_0817": ("OrgsOrgCopilotBillingSelectedUsersPostResponse201Type",), + ".group_0818": ("OrgsOrgCopilotBillingSelectedUsersDeleteBodyType",), + ".group_0819": ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type",), + ".group_0820": ( "OrgsOrgDependabotSecretsGetResponse200Type", "OrganizationDependabotSecretType", ), - ".group_0820": ("OrgsOrgDependabotSecretsSecretNamePutBodyType",), - ".group_0821": ( + ".group_0821": ("OrgsOrgDependabotSecretsSecretNamePutBodyType",), + ".group_0822": ( "OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type", ), - ".group_0822": ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType",), - ".group_0823": ( + ".group_0823": ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType",), + ".group_0824": ( "OrgsOrgHooksPostBodyType", "OrgsOrgHooksPostBodyPropConfigType", ), - ".group_0824": ( + ".group_0825": ( "OrgsOrgHooksHookIdPatchBodyType", "OrgsOrgHooksHookIdPatchBodyPropConfigType", ), - ".group_0825": ("OrgsOrgHooksHookIdConfigPatchBodyType",), - ".group_0826": ("OrgsOrgInstallationsGetResponse200Type",), - ".group_0827": ("OrgsOrgInteractionLimitsGetResponse200Anyof1Type",), - ".group_0828": ("OrgsOrgInvitationsPostBodyType",), - ".group_0829": ("OrgsOrgMembersUsernameCodespacesGetResponse200Type",), - ".group_0830": ("OrgsOrgMembershipsUsernamePutBodyType",), - ".group_0831": ("OrgsOrgMigrationsPostBodyType",), - ".group_0832": ("OrgsOrgOrganizationRolesPostBodyType",), - ".group_0833": ("OrgsOrgOrganizationRolesRoleIdPatchBodyType",), - ".group_0834": ("OrgsOrgOutsideCollaboratorsUsernamePutBodyType",), - ".group_0835": ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type",), - ".group_0836": ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type",), - ".group_0837": ("OrgsOrgPersonalAccessTokenRequestsPostBodyType",), - ".group_0838": ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType",), - ".group_0839": ("OrgsOrgPersonalAccessTokensPostBodyType",), - ".group_0840": ("OrgsOrgPersonalAccessTokensPatIdPostBodyType",), - ".group_0841": ("OrgsOrgProjectsPostBodyType",), - ".group_0842": ("OrgsOrgPropertiesSchemaPatchBodyType",), - ".group_0843": ("OrgsOrgPropertiesSchemaCustomPropertyNamePutBodyType",), - ".group_0844": ("OrgsOrgPropertiesValuesPatchBodyType",), - ".group_0845": ( + ".group_0826": ("OrgsOrgHooksHookIdConfigPatchBodyType",), + ".group_0827": ("OrgsOrgInstallationsGetResponse200Type",), + ".group_0828": ("OrgsOrgInteractionLimitsGetResponse200Anyof1Type",), + ".group_0829": ("OrgsOrgInvitationsPostBodyType",), + ".group_0830": ("OrgsOrgMembersUsernameCodespacesGetResponse200Type",), + ".group_0831": ("OrgsOrgMembershipsUsernamePutBodyType",), + ".group_0832": ("OrgsOrgMigrationsPostBodyType",), + ".group_0833": ("OrgsOrgOrganizationRolesPostBodyType",), + ".group_0834": ("OrgsOrgOrganizationRolesRoleIdPatchBodyType",), + ".group_0835": ("OrgsOrgOutsideCollaboratorsUsernamePutBodyType",), + ".group_0836": ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type",), + ".group_0837": ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type",), + ".group_0838": ("OrgsOrgPersonalAccessTokenRequestsPostBodyType",), + ".group_0839": ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType",), + ".group_0840": ("OrgsOrgPersonalAccessTokensPostBodyType",), + ".group_0841": ("OrgsOrgPersonalAccessTokensPatIdPostBodyType",), + ".group_0842": ("OrgsOrgProjectsPostBodyType",), + ".group_0843": ("OrgsOrgPropertiesSchemaPatchBodyType",), + ".group_0844": ("OrgsOrgPropertiesSchemaCustomPropertyNamePutBodyType",), + ".group_0845": ("OrgsOrgPropertiesValuesPatchBodyType",), + ".group_0846": ( "OrgsOrgReposPostBodyType", "OrgsOrgReposPostBodyPropCustomPropertiesType", ), - ".group_0846": ("OrgsOrgRulesetsPostBodyType",), - ".group_0847": ("OrgsOrgRulesetsRulesetIdPutBodyType",), - ".group_0848": ("OrgsOrgTeamsPostBodyType",), - ".group_0849": ("OrgsOrgTeamsTeamSlugPatchBodyType",), - ".group_0850": ("OrgsOrgTeamsTeamSlugDiscussionsPostBodyType",), - ".group_0851": ( + ".group_0847": ("OrgsOrgRulesetsPostBodyType",), + ".group_0848": ("OrgsOrgRulesetsRulesetIdPutBodyType",), + ".group_0849": ("OrgsOrgTeamsPostBodyType",), + ".group_0850": ("OrgsOrgTeamsTeamSlugPatchBodyType",), + ".group_0851": ("OrgsOrgTeamsTeamSlugDiscussionsPostBodyType",), + ".group_0852": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBodyType", ), - ".group_0852": ( + ".group_0853": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType", ), - ".group_0853": ( + ".group_0854": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType", ), - ".group_0854": ( + ".group_0855": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType", ), - ".group_0855": ( + ".group_0856": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBodyType", ), - ".group_0856": ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType",), - ".group_0857": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType",), - ".group_0858": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type",), - ".group_0859": ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType",), - ".group_0860": ("OrgsOrgSecurityProductEnablementPostBodyType",), - ".group_0861": ("ProjectsColumnsCardsCardIdDeleteResponse403Type",), - ".group_0862": ("ProjectsColumnsCardsCardIdPatchBodyType",), - ".group_0863": ("ProjectsColumnsCardsCardIdMovesPostBodyType",), - ".group_0864": ("ProjectsColumnsCardsCardIdMovesPostResponse201Type",), - ".group_0865": ( + ".group_0857": ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType",), + ".group_0858": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType",), + ".group_0859": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type",), + ".group_0860": ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType",), + ".group_0861": ("OrgsOrgSecurityProductEnablementPostBodyType",), + ".group_0862": ("ProjectsColumnsCardsCardIdDeleteResponse403Type",), + ".group_0863": ("ProjectsColumnsCardsCardIdPatchBodyType",), + ".group_0864": ("ProjectsColumnsCardsCardIdMovesPostBodyType",), + ".group_0865": ("ProjectsColumnsCardsCardIdMovesPostResponse201Type",), + ".group_0866": ( "ProjectsColumnsCardsCardIdMovesPostResponse403Type", "ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType", ), - ".group_0866": ( + ".group_0867": ( "ProjectsColumnsCardsCardIdMovesPostResponse503Type", "ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType", ), - ".group_0867": ("ProjectsColumnsColumnIdPatchBodyType",), - ".group_0868": ("ProjectsColumnsColumnIdCardsPostBodyOneof0Type",), - ".group_0869": ("ProjectsColumnsColumnIdCardsPostBodyOneof1Type",), - ".group_0870": ( + ".group_0868": ("ProjectsColumnsColumnIdPatchBodyType",), + ".group_0869": ("ProjectsColumnsColumnIdCardsPostBodyOneof0Type",), + ".group_0870": ("ProjectsColumnsColumnIdCardsPostBodyOneof1Type",), + ".group_0871": ( "ProjectsColumnsColumnIdCardsPostResponse503Type", "ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType", ), - ".group_0871": ("ProjectsColumnsColumnIdMovesPostBodyType",), - ".group_0872": ("ProjectsColumnsColumnIdMovesPostResponse201Type",), - ".group_0873": ("ProjectsProjectIdDeleteResponse403Type",), - ".group_0874": ("ProjectsProjectIdPatchBodyType",), - ".group_0875": ("ProjectsProjectIdPatchResponse403Type",), - ".group_0876": ("ProjectsProjectIdCollaboratorsUsernamePutBodyType",), - ".group_0877": ("ProjectsProjectIdColumnsPostBodyType",), - ".group_0878": ("ReposOwnerRepoDeleteResponse403Type",), - ".group_0879": ( + ".group_0872": ("ProjectsColumnsColumnIdMovesPostBodyType",), + ".group_0873": ("ProjectsColumnsColumnIdMovesPostResponse201Type",), + ".group_0874": ("ProjectsProjectIdDeleteResponse403Type",), + ".group_0875": ("ProjectsProjectIdPatchBodyType",), + ".group_0876": ("ProjectsProjectIdPatchResponse403Type",), + ".group_0877": ("ProjectsProjectIdCollaboratorsUsernamePutBodyType",), + ".group_0878": ("ProjectsProjectIdColumnsPostBodyType",), + ".group_0879": ("ReposOwnerRepoDeleteResponse403Type",), + ".group_0880": ( "ReposOwnerRepoPatchBodyType", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType", @@ -12376,61 +12380,61 @@ "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatternsType", ), - ".group_0880": ("ReposOwnerRepoActionsArtifactsGetResponse200Type",), - ".group_0881": ("ReposOwnerRepoActionsJobsJobIdRerunPostBodyType",), - ".group_0882": ("ReposOwnerRepoActionsOidcCustomizationSubPutBodyType",), - ".group_0883": ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type",), - ".group_0884": ( + ".group_0881": ("ReposOwnerRepoActionsArtifactsGetResponse200Type",), + ".group_0882": ("ReposOwnerRepoActionsJobsJobIdRerunPostBodyType",), + ".group_0883": ("ReposOwnerRepoActionsOidcCustomizationSubPutBodyType",), + ".group_0884": ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type",), + ".group_0885": ( "ReposOwnerRepoActionsOrganizationVariablesGetResponse200Type", ), - ".group_0885": ("ReposOwnerRepoActionsPermissionsPutBodyType",), - ".group_0886": ("ReposOwnerRepoActionsRunnersGetResponse200Type",), - ".group_0887": ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType",), - ".group_0888": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType",), - ".group_0889": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType",), - ".group_0890": ("ReposOwnerRepoActionsRunsGetResponse200Type",), - ".group_0891": ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type",), - ".group_0892": ( + ".group_0886": ("ReposOwnerRepoActionsPermissionsPutBodyType",), + ".group_0887": ("ReposOwnerRepoActionsRunnersGetResponse200Type",), + ".group_0888": ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType",), + ".group_0889": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType",), + ".group_0890": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType",), + ".group_0891": ("ReposOwnerRepoActionsRunsGetResponse200Type",), + ".group_0892": ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type",), + ".group_0893": ( "ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200Type", ), - ".group_0893": ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type",), - ".group_0894": ( + ".group_0894": ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type",), + ".group_0895": ( "ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBodyType", ), - ".group_0895": ("ReposOwnerRepoActionsRunsRunIdRerunPostBodyType",), - ".group_0896": ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType",), - ".group_0897": ("ReposOwnerRepoActionsSecretsGetResponse200Type",), - ".group_0898": ("ReposOwnerRepoActionsSecretsSecretNamePutBodyType",), - ".group_0899": ("ReposOwnerRepoActionsVariablesGetResponse200Type",), - ".group_0900": ("ReposOwnerRepoActionsVariablesPostBodyType",), - ".group_0901": ("ReposOwnerRepoActionsVariablesNamePatchBodyType",), - ".group_0902": ( + ".group_0896": ("ReposOwnerRepoActionsRunsRunIdRerunPostBodyType",), + ".group_0897": ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType",), + ".group_0898": ("ReposOwnerRepoActionsSecretsGetResponse200Type",), + ".group_0899": ("ReposOwnerRepoActionsSecretsSecretNamePutBodyType",), + ".group_0900": ("ReposOwnerRepoActionsVariablesGetResponse200Type",), + ".group_0901": ("ReposOwnerRepoActionsVariablesPostBodyType",), + ".group_0902": ("ReposOwnerRepoActionsVariablesNamePatchBodyType",), + ".group_0903": ( "ReposOwnerRepoActionsWorkflowsGetResponse200Type", "WorkflowType", ), - ".group_0903": ( + ".group_0904": ( "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyType", "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType", ), - ".group_0904": ( + ".group_0905": ( "ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200Type", ), - ".group_0905": ( + ".group_0906": ( "ReposOwnerRepoAttestationsPostBodyType", "ReposOwnerRepoAttestationsPostBodyPropBundleType", "ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterialType", "ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelopeType", ), - ".group_0906": ("ReposOwnerRepoAttestationsPostResponse201Type",), - ".group_0907": ( + ".group_0907": ("ReposOwnerRepoAttestationsPostResponse201Type",), + ".group_0908": ( "ReposOwnerRepoAttestationsSubjectDigestGetResponse200Type", "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsType", "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType", "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType", "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType", ), - ".group_0908": ("ReposOwnerRepoAutolinksPostBodyType",), - ".group_0909": ( + ".group_0909": ("ReposOwnerRepoAutolinksPostBodyType",), + ".group_0910": ( "ReposOwnerRepoBranchesBranchProtectionPutBodyType", "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksType", "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItemsType", @@ -12439,346 +12443,346 @@ "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType", "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictionsType", ), - ".group_0910": ( + ".group_0911": ( "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyType", "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType", "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType", ), - ".group_0911": ( + ".group_0912": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyType", "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType", ), - ".group_0912": ( + ".group_0913": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type", ), - ".group_0913": ( + ".group_0914": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0Type", ), - ".group_0914": ( + ".group_0915": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0Type", ), - ".group_0915": ( + ".group_0916": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0Type", ), - ".group_0916": ( + ".group_0917": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0Type", ), - ".group_0917": ( + ".group_0918": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0Type", ), - ".group_0918": ( + ".group_0919": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0Type", ), - ".group_0919": ( + ".group_0920": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type", ), - ".group_0920": ( + ".group_0921": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Type", ), - ".group_0921": ( + ".group_0922": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0Type", ), - ".group_0922": ( + ".group_0923": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0Type", ), - ".group_0923": ( + ".group_0924": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0Type", ), - ".group_0924": ("ReposOwnerRepoBranchesBranchRenamePostBodyType",), - ".group_0925": ( + ".group_0925": ("ReposOwnerRepoBranchesBranchRenamePostBodyType",), + ".group_0926": ( "ReposOwnerRepoCheckRunsPostBodyPropOutputType", "ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType", "ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType", "ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType", ), - ".group_0926": ("ReposOwnerRepoCheckRunsPostBodyOneof0Type",), - ".group_0927": ("ReposOwnerRepoCheckRunsPostBodyOneof1Type",), - ".group_0928": ( + ".group_0927": ("ReposOwnerRepoCheckRunsPostBodyOneof0Type",), + ".group_0928": ("ReposOwnerRepoCheckRunsPostBodyOneof1Type",), + ".group_0929": ( "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType", "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType", "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType", "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType", ), - ".group_0929": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type",), - ".group_0930": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type",), - ".group_0931": ("ReposOwnerRepoCheckSuitesPostBodyType",), - ".group_0932": ( + ".group_0930": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type",), + ".group_0931": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type",), + ".group_0932": ("ReposOwnerRepoCheckSuitesPostBodyType",), + ".group_0933": ( "ReposOwnerRepoCheckSuitesPreferencesPatchBodyType", "ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType", ), - ".group_0933": ( + ".group_0934": ( "ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type", ), - ".group_0934": ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType",), - ".group_0935": ( + ".group_0935": ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType",), + ".group_0936": ( "ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0Type", ), - ".group_0936": ( + ".group_0937": ( "ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1Type", ), - ".group_0937": ( + ".group_0938": ( "ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2Type", ), - ".group_0938": ("ReposOwnerRepoCodeScanningSarifsPostBodyType",), - ".group_0939": ("ReposOwnerRepoCodespacesGetResponse200Type",), - ".group_0940": ("ReposOwnerRepoCodespacesPostBodyType",), - ".group_0941": ( + ".group_0939": ("ReposOwnerRepoCodeScanningSarifsPostBodyType",), + ".group_0940": ("ReposOwnerRepoCodespacesGetResponse200Type",), + ".group_0941": ("ReposOwnerRepoCodespacesPostBodyType",), + ".group_0942": ( "ReposOwnerRepoCodespacesDevcontainersGetResponse200Type", "ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType", ), - ".group_0942": ("ReposOwnerRepoCodespacesMachinesGetResponse200Type",), - ".group_0943": ( + ".group_0943": ("ReposOwnerRepoCodespacesMachinesGetResponse200Type",), + ".group_0944": ( "ReposOwnerRepoCodespacesNewGetResponse200Type", "ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType", ), - ".group_0944": ( + ".group_0945": ( "ReposOwnerRepoCodespacesSecretsGetResponse200Type", "RepoCodespacesSecretType", ), - ".group_0945": ("ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType",), - ".group_0946": ("ReposOwnerRepoCollaboratorsUsernamePutBodyType",), - ".group_0947": ("ReposOwnerRepoCommentsCommentIdPatchBodyType",), - ".group_0948": ("ReposOwnerRepoCommentsCommentIdReactionsPostBodyType",), - ".group_0949": ("ReposOwnerRepoCommitsCommitShaCommentsPostBodyType",), - ".group_0950": ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type",), - ".group_0951": ( + ".group_0946": ("ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType",), + ".group_0947": ("ReposOwnerRepoCollaboratorsUsernamePutBodyType",), + ".group_0948": ("ReposOwnerRepoCommentsCommentIdPatchBodyType",), + ".group_0949": ("ReposOwnerRepoCommentsCommentIdReactionsPostBodyType",), + ".group_0950": ("ReposOwnerRepoCommitsCommitShaCommentsPostBodyType",), + ".group_0951": ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type",), + ".group_0952": ( "ReposOwnerRepoContentsPathPutBodyType", "ReposOwnerRepoContentsPathPutBodyPropCommitterType", "ReposOwnerRepoContentsPathPutBodyPropAuthorType", ), - ".group_0952": ( + ".group_0953": ( "ReposOwnerRepoContentsPathDeleteBodyType", "ReposOwnerRepoContentsPathDeleteBodyPropCommitterType", "ReposOwnerRepoContentsPathDeleteBodyPropAuthorType", ), - ".group_0953": ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType",), - ".group_0954": ( + ".group_0954": ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType",), + ".group_0955": ( "ReposOwnerRepoDependabotSecretsGetResponse200Type", "DependabotSecretType", ), - ".group_0955": ("ReposOwnerRepoDependabotSecretsSecretNamePutBodyType",), - ".group_0956": ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type",), - ".group_0957": ( + ".group_0956": ("ReposOwnerRepoDependabotSecretsSecretNamePutBodyType",), + ".group_0957": ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type",), + ".group_0958": ( "ReposOwnerRepoDeploymentsPostBodyType", "ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type", ), - ".group_0958": ("ReposOwnerRepoDeploymentsPostResponse202Type",), - ".group_0959": ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType",), - ".group_0960": ( + ".group_0959": ("ReposOwnerRepoDeploymentsPostResponse202Type",), + ".group_0960": ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType",), + ".group_0961": ( "ReposOwnerRepoDispatchesPostBodyType", "ReposOwnerRepoDispatchesPostBodyPropClientPayloadType", ), - ".group_0961": ( + ".group_0962": ( "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyType", "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType", ), - ".group_0962": ( + ".group_0963": ( "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type", "DeploymentBranchPolicyType", ), - ".group_0963": ( + ".group_0964": ( "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType", ), - ".group_0964": ( + ".group_0965": ( "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type", ), - ".group_0965": ( + ".group_0966": ( "ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200Type", ), - ".group_0966": ( + ".group_0967": ( "ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBodyType", ), - ".group_0967": ( + ".group_0968": ( "ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200Type", ), - ".group_0968": ( + ".group_0969": ( "ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBodyType", ), - ".group_0969": ( + ".group_0970": ( "ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType", ), - ".group_0970": ("ReposOwnerRepoForksPostBodyType",), - ".group_0971": ("ReposOwnerRepoGitBlobsPostBodyType",), - ".group_0972": ( + ".group_0971": ("ReposOwnerRepoForksPostBodyType",), + ".group_0972": ("ReposOwnerRepoGitBlobsPostBodyType",), + ".group_0973": ( "ReposOwnerRepoGitCommitsPostBodyType", "ReposOwnerRepoGitCommitsPostBodyPropAuthorType", "ReposOwnerRepoGitCommitsPostBodyPropCommitterType", ), - ".group_0973": ("ReposOwnerRepoGitRefsPostBodyType",), - ".group_0974": ("ReposOwnerRepoGitRefsRefPatchBodyType",), - ".group_0975": ( + ".group_0974": ("ReposOwnerRepoGitRefsPostBodyType",), + ".group_0975": ("ReposOwnerRepoGitRefsRefPatchBodyType",), + ".group_0976": ( "ReposOwnerRepoGitTagsPostBodyType", "ReposOwnerRepoGitTagsPostBodyPropTaggerType", ), - ".group_0976": ( + ".group_0977": ( "ReposOwnerRepoGitTreesPostBodyType", "ReposOwnerRepoGitTreesPostBodyPropTreeItemsType", ), - ".group_0977": ( + ".group_0978": ( "ReposOwnerRepoHooksPostBodyType", "ReposOwnerRepoHooksPostBodyPropConfigType", ), - ".group_0978": ("ReposOwnerRepoHooksHookIdPatchBodyType",), - ".group_0979": ("ReposOwnerRepoHooksHookIdConfigPatchBodyType",), - ".group_0980": ("ReposOwnerRepoImportPutBodyType",), - ".group_0981": ("ReposOwnerRepoImportPatchBodyType",), - ".group_0982": ("ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType",), - ".group_0983": ("ReposOwnerRepoImportLfsPatchBodyType",), - ".group_0984": ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type",), - ".group_0985": ("ReposOwnerRepoInvitationsInvitationIdPatchBodyType",), - ".group_0986": ( + ".group_0979": ("ReposOwnerRepoHooksHookIdPatchBodyType",), + ".group_0980": ("ReposOwnerRepoHooksHookIdConfigPatchBodyType",), + ".group_0981": ("ReposOwnerRepoImportPutBodyType",), + ".group_0982": ("ReposOwnerRepoImportPatchBodyType",), + ".group_0983": ("ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType",), + ".group_0984": ("ReposOwnerRepoImportLfsPatchBodyType",), + ".group_0985": ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type",), + ".group_0986": ("ReposOwnerRepoInvitationsInvitationIdPatchBodyType",), + ".group_0987": ( "ReposOwnerRepoIssuesPostBodyType", "ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type", ), - ".group_0987": ("ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType",), - ".group_0988": ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType",), - ".group_0989": ( + ".group_0988": ("ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType",), + ".group_0989": ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType",), + ".group_0990": ( "ReposOwnerRepoIssuesIssueNumberPatchBodyType", "ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type", ), - ".group_0990": ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType",), - ".group_0991": ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType",), - ".group_0992": ("ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType",), - ".group_0993": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type",), - ".group_0994": ( + ".group_0991": ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType",), + ".group_0992": ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType",), + ".group_0993": ("ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType",), + ".group_0994": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type",), + ".group_0995": ( "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type", "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType", ), - ".group_0995": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType",), - ".group_0996": ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type",), - ".group_0997": ( + ".group_0996": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType",), + ".group_0997": ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type",), + ".group_0998": ( "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2Type", "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType", ), - ".group_0998": ( + ".group_0999": ( "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType", ), - ".group_0999": ("ReposOwnerRepoIssuesIssueNumberLockPutBodyType",), - ".group_1000": ("ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType",), - ".group_1001": ("ReposOwnerRepoKeysPostBodyType",), - ".group_1002": ("ReposOwnerRepoLabelsPostBodyType",), - ".group_1003": ("ReposOwnerRepoLabelsNamePatchBodyType",), - ".group_1004": ("ReposOwnerRepoMergeUpstreamPostBodyType",), - ".group_1005": ("ReposOwnerRepoMergesPostBodyType",), - ".group_1006": ("ReposOwnerRepoMilestonesPostBodyType",), - ".group_1007": ("ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType",), - ".group_1008": ("ReposOwnerRepoNotificationsPutBodyType",), - ".group_1009": ("ReposOwnerRepoNotificationsPutResponse202Type",), - ".group_1010": ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type",), - ".group_1011": ("ReposOwnerRepoPagesPutBodyAnyof0Type",), - ".group_1012": ("ReposOwnerRepoPagesPutBodyAnyof1Type",), - ".group_1013": ("ReposOwnerRepoPagesPutBodyAnyof2Type",), - ".group_1014": ("ReposOwnerRepoPagesPutBodyAnyof3Type",), - ".group_1015": ("ReposOwnerRepoPagesPutBodyAnyof4Type",), - ".group_1016": ("ReposOwnerRepoPagesPostBodyPropSourceType",), - ".group_1017": ("ReposOwnerRepoPagesPostBodyAnyof0Type",), - ".group_1018": ("ReposOwnerRepoPagesPostBodyAnyof1Type",), - ".group_1019": ("ReposOwnerRepoPagesDeploymentsPostBodyType",), - ".group_1020": ( + ".group_1000": ("ReposOwnerRepoIssuesIssueNumberLockPutBodyType",), + ".group_1001": ("ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType",), + ".group_1002": ("ReposOwnerRepoKeysPostBodyType",), + ".group_1003": ("ReposOwnerRepoLabelsPostBodyType",), + ".group_1004": ("ReposOwnerRepoLabelsNamePatchBodyType",), + ".group_1005": ("ReposOwnerRepoMergeUpstreamPostBodyType",), + ".group_1006": ("ReposOwnerRepoMergesPostBodyType",), + ".group_1007": ("ReposOwnerRepoMilestonesPostBodyType",), + ".group_1008": ("ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType",), + ".group_1009": ("ReposOwnerRepoNotificationsPutBodyType",), + ".group_1010": ("ReposOwnerRepoNotificationsPutResponse202Type",), + ".group_1011": ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type",), + ".group_1012": ("ReposOwnerRepoPagesPutBodyAnyof0Type",), + ".group_1013": ("ReposOwnerRepoPagesPutBodyAnyof1Type",), + ".group_1014": ("ReposOwnerRepoPagesPutBodyAnyof2Type",), + ".group_1015": ("ReposOwnerRepoPagesPutBodyAnyof3Type",), + ".group_1016": ("ReposOwnerRepoPagesPutBodyAnyof4Type",), + ".group_1017": ("ReposOwnerRepoPagesPostBodyPropSourceType",), + ".group_1018": ("ReposOwnerRepoPagesPostBodyAnyof0Type",), + ".group_1019": ("ReposOwnerRepoPagesPostBodyAnyof1Type",), + ".group_1020": ("ReposOwnerRepoPagesDeploymentsPostBodyType",), + ".group_1021": ( "ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200Type", ), - ".group_1021": ("ReposOwnerRepoProjectsPostBodyType",), - ".group_1022": ("ReposOwnerRepoPropertiesValuesPatchBodyType",), - ".group_1023": ("ReposOwnerRepoPullsPostBodyType",), - ".group_1024": ("ReposOwnerRepoPullsCommentsCommentIdPatchBodyType",), - ".group_1025": ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType",), - ".group_1026": ("ReposOwnerRepoPullsPullNumberPatchBodyType",), - ".group_1027": ("ReposOwnerRepoPullsPullNumberCodespacesPostBodyType",), - ".group_1028": ("ReposOwnerRepoPullsPullNumberCommentsPostBodyType",), - ".group_1029": ( + ".group_1022": ("ReposOwnerRepoProjectsPostBodyType",), + ".group_1023": ("ReposOwnerRepoPropertiesValuesPatchBodyType",), + ".group_1024": ("ReposOwnerRepoPullsPostBodyType",), + ".group_1025": ("ReposOwnerRepoPullsCommentsCommentIdPatchBodyType",), + ".group_1026": ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType",), + ".group_1027": ("ReposOwnerRepoPullsPullNumberPatchBodyType",), + ".group_1028": ("ReposOwnerRepoPullsPullNumberCodespacesPostBodyType",), + ".group_1029": ("ReposOwnerRepoPullsPullNumberCommentsPostBodyType",), + ".group_1030": ( "ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBodyType", ), - ".group_1030": ("ReposOwnerRepoPullsPullNumberMergePutBodyType",), - ".group_1031": ("ReposOwnerRepoPullsPullNumberMergePutResponse405Type",), - ".group_1032": ("ReposOwnerRepoPullsPullNumberMergePutResponse409Type",), - ".group_1033": ( + ".group_1031": ("ReposOwnerRepoPullsPullNumberMergePutBodyType",), + ".group_1032": ("ReposOwnerRepoPullsPullNumberMergePutResponse405Type",), + ".group_1033": ("ReposOwnerRepoPullsPullNumberMergePutResponse409Type",), + ".group_1034": ( "ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0Type", ), - ".group_1034": ( + ".group_1035": ( "ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1Type", ), - ".group_1035": ( + ".group_1036": ( "ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBodyType", ), - ".group_1036": ( + ".group_1037": ( "ReposOwnerRepoPullsPullNumberReviewsPostBodyType", "ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType", ), - ".group_1037": ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType",), - ".group_1038": ( + ".group_1038": ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType",), + ".group_1039": ( "ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBodyType", ), - ".group_1039": ( + ".group_1040": ( "ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBodyType", ), - ".group_1040": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType",), - ".group_1041": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type",), - ".group_1042": ("ReposOwnerRepoReleasesPostBodyType",), - ".group_1043": ("ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType",), - ".group_1044": ("ReposOwnerRepoReleasesGenerateNotesPostBodyType",), - ".group_1045": ("ReposOwnerRepoReleasesReleaseIdPatchBodyType",), - ".group_1046": ("ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType",), - ".group_1047": ("ReposOwnerRepoRulesetsPostBodyType",), - ".group_1048": ("ReposOwnerRepoRulesetsRulesetIdPutBodyType",), - ".group_1049": ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType",), - ".group_1050": ("ReposOwnerRepoStatusesShaPostBodyType",), - ".group_1051": ("ReposOwnerRepoSubscriptionPutBodyType",), - ".group_1052": ("ReposOwnerRepoTagsProtectionPostBodyType",), - ".group_1053": ("ReposOwnerRepoTopicsPutBodyType",), - ".group_1054": ("ReposOwnerRepoTransferPostBodyType",), - ".group_1055": ("ReposTemplateOwnerTemplateRepoGeneratePostBodyType",), - ".group_1056": ("TeamsTeamIdPatchBodyType",), - ".group_1057": ("TeamsTeamIdDiscussionsPostBodyType",), - ".group_1058": ("TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType",), - ".group_1059": ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType",), - ".group_1060": ( + ".group_1041": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType",), + ".group_1042": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type",), + ".group_1043": ("ReposOwnerRepoReleasesPostBodyType",), + ".group_1044": ("ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType",), + ".group_1045": ("ReposOwnerRepoReleasesGenerateNotesPostBodyType",), + ".group_1046": ("ReposOwnerRepoReleasesReleaseIdPatchBodyType",), + ".group_1047": ("ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType",), + ".group_1048": ("ReposOwnerRepoRulesetsPostBodyType",), + ".group_1049": ("ReposOwnerRepoRulesetsRulesetIdPutBodyType",), + ".group_1050": ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType",), + ".group_1051": ("ReposOwnerRepoStatusesShaPostBodyType",), + ".group_1052": ("ReposOwnerRepoSubscriptionPutBodyType",), + ".group_1053": ("ReposOwnerRepoTagsProtectionPostBodyType",), + ".group_1054": ("ReposOwnerRepoTopicsPutBodyType",), + ".group_1055": ("ReposOwnerRepoTransferPostBodyType",), + ".group_1056": ("ReposTemplateOwnerTemplateRepoGeneratePostBodyType",), + ".group_1057": ("TeamsTeamIdPatchBodyType",), + ".group_1058": ("TeamsTeamIdDiscussionsPostBodyType",), + ".group_1059": ("TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType",), + ".group_1060": ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType",), + ".group_1061": ( "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType", ), - ".group_1061": ( + ".group_1062": ( "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType", ), - ".group_1062": ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType",), - ".group_1063": ("TeamsTeamIdMembershipsUsernamePutBodyType",), - ".group_1064": ("TeamsTeamIdProjectsProjectIdPutBodyType",), - ".group_1065": ("TeamsTeamIdProjectsProjectIdPutResponse403Type",), - ".group_1066": ("TeamsTeamIdReposOwnerRepoPutBodyType",), - ".group_1067": ("UserPatchBodyType",), - ".group_1068": ("UserCodespacesGetResponse200Type",), - ".group_1069": ("UserCodespacesPostBodyOneof0Type",), - ".group_1070": ( + ".group_1063": ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType",), + ".group_1064": ("TeamsTeamIdMembershipsUsernamePutBodyType",), + ".group_1065": ("TeamsTeamIdProjectsProjectIdPutBodyType",), + ".group_1066": ("TeamsTeamIdProjectsProjectIdPutResponse403Type",), + ".group_1067": ("TeamsTeamIdReposOwnerRepoPutBodyType",), + ".group_1068": ("UserPatchBodyType",), + ".group_1069": ("UserCodespacesGetResponse200Type",), + ".group_1070": ("UserCodespacesPostBodyOneof0Type",), + ".group_1071": ( "UserCodespacesPostBodyOneof1Type", "UserCodespacesPostBodyOneof1PropPullRequestType", ), - ".group_1071": ( + ".group_1072": ( "UserCodespacesSecretsGetResponse200Type", "CodespacesSecretType", ), - ".group_1072": ("UserCodespacesSecretsSecretNamePutBodyType",), - ".group_1073": ( + ".group_1073": ("UserCodespacesSecretsSecretNamePutBodyType",), + ".group_1074": ( "UserCodespacesSecretsSecretNameRepositoriesGetResponse200Type", ), - ".group_1074": ("UserCodespacesSecretsSecretNameRepositoriesPutBodyType",), - ".group_1075": ("UserCodespacesCodespaceNamePatchBodyType",), - ".group_1076": ("UserCodespacesCodespaceNameMachinesGetResponse200Type",), - ".group_1077": ("UserCodespacesCodespaceNamePublishPostBodyType",), - ".group_1078": ("UserEmailVisibilityPatchBodyType",), - ".group_1079": ("UserEmailsPostBodyOneof0Type",), - ".group_1080": ("UserEmailsDeleteBodyOneof0Type",), - ".group_1081": ("UserGpgKeysPostBodyType",), - ".group_1082": ("UserInstallationsGetResponse200Type",), - ".group_1083": ( + ".group_1075": ("UserCodespacesSecretsSecretNameRepositoriesPutBodyType",), + ".group_1076": ("UserCodespacesCodespaceNamePatchBodyType",), + ".group_1077": ("UserCodespacesCodespaceNameMachinesGetResponse200Type",), + ".group_1078": ("UserCodespacesCodespaceNamePublishPostBodyType",), + ".group_1079": ("UserEmailVisibilityPatchBodyType",), + ".group_1080": ("UserEmailsPostBodyOneof0Type",), + ".group_1081": ("UserEmailsDeleteBodyOneof0Type",), + ".group_1082": ("UserGpgKeysPostBodyType",), + ".group_1083": ("UserInstallationsGetResponse200Type",), + ".group_1084": ( "UserInstallationsInstallationIdRepositoriesGetResponse200Type", ), - ".group_1084": ("UserInteractionLimitsGetResponse200Anyof1Type",), - ".group_1085": ("UserKeysPostBodyType",), - ".group_1086": ("UserMembershipsOrgsOrgPatchBodyType",), - ".group_1087": ("UserMigrationsPostBodyType",), - ".group_1088": ("UserProjectsPostBodyType",), - ".group_1089": ("UserReposPostBodyType",), - ".group_1090": ("UserSocialAccountsPostBodyType",), - ".group_1091": ("UserSocialAccountsDeleteBodyType",), - ".group_1092": ("UserSshSigningKeysPostBodyType",), - ".group_1093": ( + ".group_1085": ("UserInteractionLimitsGetResponse200Anyof1Type",), + ".group_1086": ("UserKeysPostBodyType",), + ".group_1087": ("UserMembershipsOrgsOrgPatchBodyType",), + ".group_1088": ("UserMigrationsPostBodyType",), + ".group_1089": ("UserProjectsPostBodyType",), + ".group_1090": ("UserReposPostBodyType",), + ".group_1091": ("UserSocialAccountsPostBodyType",), + ".group_1092": ("UserSocialAccountsDeleteBodyType",), + ".group_1093": ("UserSshSigningKeysPostBodyType",), + ".group_1094": ( "UsersUsernameAttestationsSubjectDigestGetResponse200Type", "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType", "SigstoreBundle0Type", diff --git a/githubkit/versions/v2022_11_28/types/group_0074.py b/githubkit/versions/v2022_11_28/types/group_0074.py index f82f0e955..48b03fc73 100644 --- a/githubkit/versions/v2022_11_28/types/group_0074.py +++ b/githubkit/versions/v2022_11_28/types/group_0074.py @@ -39,6 +39,7 @@ class CodeSecurityConfigurationType(TypedDict): private_vulnerability_reporting: NotRequired[ Literal["enabled", "disabled", "not_set"] ] + enforcement: NotRequired[Literal["enforced", "unenforced"]] url: NotRequired[str] html_url: NotRequired[str] created_at: NotRequired[datetime] diff --git a/githubkit/versions/v2022_11_28/types/group_0797.py b/githubkit/versions/v2022_11_28/types/group_0797.py index 311ee4044..52d791953 100644 --- a/githubkit/versions/v2022_11_28/types/group_0797.py +++ b/githubkit/versions/v2022_11_28/types/group_0797.py @@ -33,6 +33,7 @@ class OrgsOrgCodeSecurityConfigurationsPostBodyType(TypedDict): private_vulnerability_reporting: NotRequired[ Literal["enabled", "disabled", "not_set"] ] + enforcement: NotRequired[Literal["enforced", "unenforced"]] __all__ = ("OrgsOrgCodeSecurityConfigurationsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0798.py b/githubkit/versions/v2022_11_28/types/group_0798.py index 7f905fdbc..e910eb18d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0798.py +++ b/githubkit/versions/v2022_11_28/types/group_0798.py @@ -9,30 +9,14 @@ from __future__ import annotations -from typing import Literal +from typing import List from typing_extensions import TypedDict, NotRequired -class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyType(TypedDict): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody""" - - name: NotRequired[str] - description: NotRequired[str] - advanced_security: NotRequired[Literal["enabled", "disabled"]] - dependency_graph: NotRequired[Literal["enabled", "disabled", "not_set"]] - 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"]] - 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"] - ] - private_vulnerability_reporting: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - - -__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyType",) +class OrgsOrgCodeSecurityConfigurationsDetachDeleteBodyType(TypedDict): + """OrgsOrgCodeSecurityConfigurationsDetachDeleteBody""" + + selected_repository_ids: NotRequired[List[int]] + + +__all__ = ("OrgsOrgCodeSecurityConfigurationsDetachDeleteBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0799.py b/githubkit/versions/v2022_11_28/types/group_0799.py index 171204dc4..1f990e379 100644 --- a/githubkit/versions/v2022_11_28/types/group_0799.py +++ b/githubkit/versions/v2022_11_28/types/group_0799.py @@ -9,15 +9,31 @@ from __future__ import annotations -from typing import List, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -class OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBodyType(TypedDict): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody""" - - scope: Literal["all", "public", "private_or_internal", "selected"] - selected_repository_ids: NotRequired[List[int]] - - -__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBodyType",) +class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyType(TypedDict): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody""" + + name: NotRequired[str] + description: NotRequired[str] + advanced_security: NotRequired[Literal["enabled", "disabled"]] + dependency_graph: NotRequired[Literal["enabled", "disabled", "not_set"]] + 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"]] + 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"] + ] + private_vulnerability_reporting: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + enforcement: NotRequired[Literal["enforced", "unenforced"]] + + +__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0800.py b/githubkit/versions/v2022_11_28/types/group_0800.py index 657825ddf..171204dc4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0800.py +++ b/githubkit/versions/v2022_11_28/types/group_0800.py @@ -9,16 +9,15 @@ from __future__ import annotations -from typing import Literal +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -class OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType(TypedDict): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody""" +class OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBodyType(TypedDict): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody""" - default_for_new_repos: NotRequired[ - Literal["all", "none", "private_and_internal", "public"] - ] + scope: Literal["all", "public", "private_or_internal", "selected"] + selected_repository_ids: NotRequired[List[int]] -__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType",) +__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0801.py b/githubkit/versions/v2022_11_28/types/group_0801.py index 2e68832c2..657825ddf 100644 --- a/githubkit/versions/v2022_11_28/types/group_0801.py +++ b/githubkit/versions/v2022_11_28/types/group_0801.py @@ -12,20 +12,13 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0074 import CodeSecurityConfigurationType - -class OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type( - TypedDict -): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200""" +class OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType(TypedDict): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody""" default_for_new_repos: NotRequired[ Literal["all", "none", "private_and_internal", "public"] ] - configuration: NotRequired[CodeSecurityConfigurationType] -__all__ = ( - "OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type", -) +__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0802.py b/githubkit/versions/v2022_11_28/types/group_0802.py index 84d85d133..2e68832c2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0802.py +++ b/githubkit/versions/v2022_11_28/types/group_0802.py @@ -9,17 +9,23 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import TypedDict, NotRequired -from .group_0078 import CodespaceType +from .group_0074 import CodeSecurityConfigurationType -class OrgsOrgCodespacesGetResponse200Type(TypedDict): - """OrgsOrgCodespacesGetResponse200""" +class OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type( + TypedDict +): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200""" - total_count: int - codespaces: List[CodespaceType] + default_for_new_repos: NotRequired[ + Literal["all", "none", "private_and_internal", "public"] + ] + configuration: NotRequired[CodeSecurityConfigurationType] -__all__ = ("OrgsOrgCodespacesGetResponse200Type",) +__all__ = ( + "OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0803.py b/githubkit/versions/v2022_11_28/types/group_0803.py index 11890a4e9..84d85d133 100644 --- a/githubkit/versions/v2022_11_28/types/group_0803.py +++ b/githubkit/versions/v2022_11_28/types/group_0803.py @@ -9,20 +9,17 @@ from __future__ import annotations -from typing import List, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict +from .group_0078 import CodespaceType -class OrgsOrgCodespacesAccessPutBodyType(TypedDict): - """OrgsOrgCodespacesAccessPutBody""" - visibility: Literal[ - "disabled", - "selected_members", - "all_members", - "all_members_and_outside_collaborators", - ] - selected_usernames: NotRequired[List[str]] +class OrgsOrgCodespacesGetResponse200Type(TypedDict): + """OrgsOrgCodespacesGetResponse200""" + total_count: int + codespaces: List[CodespaceType] -__all__ = ("OrgsOrgCodespacesAccessPutBodyType",) + +__all__ = ("OrgsOrgCodespacesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0804.py b/githubkit/versions/v2022_11_28/types/group_0804.py index ecb5a7ff7..11890a4e9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0804.py +++ b/githubkit/versions/v2022_11_28/types/group_0804.py @@ -9,14 +9,20 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import List, Literal +from typing_extensions import TypedDict, NotRequired -class OrgsOrgCodespacesAccessSelectedUsersPostBodyType(TypedDict): - """OrgsOrgCodespacesAccessSelectedUsersPostBody""" +class OrgsOrgCodespacesAccessPutBodyType(TypedDict): + """OrgsOrgCodespacesAccessPutBody""" - selected_usernames: List[str] + visibility: Literal[ + "disabled", + "selected_members", + "all_members", + "all_members_and_outside_collaborators", + ] + selected_usernames: NotRequired[List[str]] -__all__ = ("OrgsOrgCodespacesAccessSelectedUsersPostBodyType",) +__all__ = ("OrgsOrgCodespacesAccessPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0805.py b/githubkit/versions/v2022_11_28/types/group_0805.py index 343148794..ecb5a7ff7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0805.py +++ b/githubkit/versions/v2022_11_28/types/group_0805.py @@ -13,10 +13,10 @@ from typing_extensions import TypedDict -class OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType(TypedDict): - """OrgsOrgCodespacesAccessSelectedUsersDeleteBody""" +class OrgsOrgCodespacesAccessSelectedUsersPostBodyType(TypedDict): + """OrgsOrgCodespacesAccessSelectedUsersPostBody""" selected_usernames: List[str] -__all__ = ("OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType",) +__all__ = ("OrgsOrgCodespacesAccessSelectedUsersPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0806.py b/githubkit/versions/v2022_11_28/types/group_0806.py index 9f9f2b273..343148794 100644 --- a/githubkit/versions/v2022_11_28/types/group_0806.py +++ b/githubkit/versions/v2022_11_28/types/group_0806.py @@ -9,32 +9,14 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -class OrgsOrgCodespacesSecretsGetResponse200Type(TypedDict): - """OrgsOrgCodespacesSecretsGetResponse200""" +class OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType(TypedDict): + """OrgsOrgCodespacesAccessSelectedUsersDeleteBody""" - total_count: int - secrets: List[CodespacesOrgSecretType] + selected_usernames: List[str] -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__ = ( - "OrgsOrgCodespacesSecretsGetResponse200Type", - "CodespacesOrgSecretType", -) +__all__ = ("OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0807.py b/githubkit/versions/v2022_11_28/types/group_0807.py index df9701450..9f9f2b273 100644 --- a/githubkit/versions/v2022_11_28/types/group_0807.py +++ b/githubkit/versions/v2022_11_28/types/group_0807.py @@ -9,17 +9,32 @@ from __future__ import annotations +from datetime import datetime from typing import List, Literal from typing_extensions import TypedDict, NotRequired -class OrgsOrgCodespacesSecretsSecretNamePutBodyType(TypedDict): - """OrgsOrgCodespacesSecretsSecretNamePutBody""" +class OrgsOrgCodespacesSecretsGetResponse200Type(TypedDict): + """OrgsOrgCodespacesSecretsGetResponse200""" - encrypted_value: NotRequired[str] - key_id: NotRequired[str] + total_count: int + secrets: List[CodespacesOrgSecretType] + + +class CodespacesOrgSecretType(TypedDict): + """Codespaces Secret + + Secrets for a GitHub Codespace. + """ + + name: str + created_at: datetime + updated_at: datetime visibility: Literal["all", "private", "selected"] - selected_repository_ids: NotRequired[List[int]] + selected_repositories_url: NotRequired[str] -__all__ = ("OrgsOrgCodespacesSecretsSecretNamePutBodyType",) +__all__ = ( + "OrgsOrgCodespacesSecretsGetResponse200Type", + "CodespacesOrgSecretType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0808.py b/githubkit/versions/v2022_11_28/types/group_0808.py index 018460019..df9701450 100644 --- a/githubkit/versions/v2022_11_28/types/group_0808.py +++ b/githubkit/versions/v2022_11_28/types/group_0808.py @@ -9,17 +9,17 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import List, Literal +from typing_extensions import TypedDict, NotRequired -from .group_0055 import MinimalRepositoryType +class OrgsOrgCodespacesSecretsSecretNamePutBodyType(TypedDict): + """OrgsOrgCodespacesSecretsSecretNamePutBody""" -class OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): - """OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200""" + encrypted_value: NotRequired[str] + key_id: NotRequired[str] + visibility: Literal["all", "private", "selected"] + selected_repository_ids: NotRequired[List[int]] - total_count: int - repositories: List[MinimalRepositoryType] - -__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type",) +__all__ = ("OrgsOrgCodespacesSecretsSecretNamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0809.py b/githubkit/versions/v2022_11_28/types/group_0809.py index bc6a55ac2..018460019 100644 --- a/githubkit/versions/v2022_11_28/types/group_0809.py +++ b/githubkit/versions/v2022_11_28/types/group_0809.py @@ -12,11 +12,14 @@ from typing import List from typing_extensions import TypedDict +from .group_0055 import MinimalRepositoryType -class OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType(TypedDict): - """OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody""" - selected_repository_ids: List[int] +class OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): + """OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200""" + total_count: int + repositories: List[MinimalRepositoryType] -__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType",) + +__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0810.py b/githubkit/versions/v2022_11_28/types/group_0810.py index df38128d3..bc6a55ac2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0810.py +++ b/githubkit/versions/v2022_11_28/types/group_0810.py @@ -10,16 +10,13 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0028 import CopilotSeatDetailsType +class OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType(TypedDict): + """OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody""" -class OrgsOrgCopilotBillingSeatsGetResponse200Type(TypedDict): - """OrgsOrgCopilotBillingSeatsGetResponse200""" + selected_repository_ids: List[int] - total_seats: NotRequired[int] - seats: NotRequired[List[CopilotSeatDetailsType]] - -__all__ = ("OrgsOrgCopilotBillingSeatsGetResponse200Type",) +__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0811.py b/githubkit/versions/v2022_11_28/types/group_0811.py index f5fc4cf2b..df38128d3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0811.py +++ b/githubkit/versions/v2022_11_28/types/group_0811.py @@ -10,13 +10,16 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired +from .group_0028 import CopilotSeatDetailsType -class OrgsOrgCopilotBillingSelectedTeamsPostBodyType(TypedDict): - """OrgsOrgCopilotBillingSelectedTeamsPostBody""" - selected_teams: List[str] +class OrgsOrgCopilotBillingSeatsGetResponse200Type(TypedDict): + """OrgsOrgCopilotBillingSeatsGetResponse200""" + total_seats: NotRequired[int] + seats: NotRequired[List[CopilotSeatDetailsType]] -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostBodyType",) + +__all__ = ("OrgsOrgCopilotBillingSeatsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0812.py b/githubkit/versions/v2022_11_28/types/group_0812.py index 7d801be5e..f5fc4cf2b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0812.py +++ b/githubkit/versions/v2022_11_28/types/group_0812.py @@ -9,16 +9,14 @@ from __future__ import annotations +from typing import List from typing_extensions import TypedDict -class OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type(TypedDict): - """OrgsOrgCopilotBillingSelectedTeamsPostResponse201 +class OrgsOrgCopilotBillingSelectedTeamsPostBodyType(TypedDict): + """OrgsOrgCopilotBillingSelectedTeamsPostBody""" - The total number of seat assignments created. - """ + selected_teams: List[str] - seats_created: int - -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type",) +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0813.py b/githubkit/versions/v2022_11_28/types/group_0813.py index ad2745b9f..7d801be5e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0813.py +++ b/githubkit/versions/v2022_11_28/types/group_0813.py @@ -9,14 +9,16 @@ from __future__ import annotations -from typing import List from typing_extensions import TypedDict -class OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType(TypedDict): - """OrgsOrgCopilotBillingSelectedTeamsDeleteBody""" +class OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type(TypedDict): + """OrgsOrgCopilotBillingSelectedTeamsPostResponse201 - selected_teams: List[str] + The total number of seat assignments created. + """ + seats_created: int -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType",) + +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0814.py b/githubkit/versions/v2022_11_28/types/group_0814.py index 2c06d525c..ad2745b9f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0814.py +++ b/githubkit/versions/v2022_11_28/types/group_0814.py @@ -9,16 +9,14 @@ from __future__ import annotations +from typing import List from typing_extensions import TypedDict -class OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type(TypedDict): - """OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200 +class OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType(TypedDict): + """OrgsOrgCopilotBillingSelectedTeamsDeleteBody""" - The total number of seat assignments cancelled. - """ + selected_teams: List[str] - seats_cancelled: int - -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type",) +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0815.py b/githubkit/versions/v2022_11_28/types/group_0815.py index d2bc78059..2c06d525c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0815.py +++ b/githubkit/versions/v2022_11_28/types/group_0815.py @@ -9,14 +9,16 @@ from __future__ import annotations -from typing import List from typing_extensions import TypedDict -class OrgsOrgCopilotBillingSelectedUsersPostBodyType(TypedDict): - """OrgsOrgCopilotBillingSelectedUsersPostBody""" +class OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type(TypedDict): + """OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200 - selected_usernames: List[str] + The total number of seat assignments cancelled. + """ + seats_cancelled: int -__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostBodyType",) + +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0816.py b/githubkit/versions/v2022_11_28/types/group_0816.py index c59c644d1..d2bc78059 100644 --- a/githubkit/versions/v2022_11_28/types/group_0816.py +++ b/githubkit/versions/v2022_11_28/types/group_0816.py @@ -9,16 +9,14 @@ from __future__ import annotations +from typing import List from typing_extensions import TypedDict -class OrgsOrgCopilotBillingSelectedUsersPostResponse201Type(TypedDict): - """OrgsOrgCopilotBillingSelectedUsersPostResponse201 +class OrgsOrgCopilotBillingSelectedUsersPostBodyType(TypedDict): + """OrgsOrgCopilotBillingSelectedUsersPostBody""" - The total number of seat assignments created. - """ + selected_usernames: List[str] - seats_created: int - -__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostResponse201Type",) +__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0817.py b/githubkit/versions/v2022_11_28/types/group_0817.py index b06b1b236..c59c644d1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0817.py +++ b/githubkit/versions/v2022_11_28/types/group_0817.py @@ -9,14 +9,16 @@ from __future__ import annotations -from typing import List from typing_extensions import TypedDict -class OrgsOrgCopilotBillingSelectedUsersDeleteBodyType(TypedDict): - """OrgsOrgCopilotBillingSelectedUsersDeleteBody""" +class OrgsOrgCopilotBillingSelectedUsersPostResponse201Type(TypedDict): + """OrgsOrgCopilotBillingSelectedUsersPostResponse201 - selected_usernames: List[str] + The total number of seat assignments created. + """ + seats_created: int -__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteBodyType",) + +__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostResponse201Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0818.py b/githubkit/versions/v2022_11_28/types/group_0818.py index 146387615..b06b1b236 100644 --- a/githubkit/versions/v2022_11_28/types/group_0818.py +++ b/githubkit/versions/v2022_11_28/types/group_0818.py @@ -9,16 +9,14 @@ from __future__ import annotations +from typing import List from typing_extensions import TypedDict -class OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type(TypedDict): - """OrgsOrgCopilotBillingSelectedUsersDeleteResponse200 +class OrgsOrgCopilotBillingSelectedUsersDeleteBodyType(TypedDict): + """OrgsOrgCopilotBillingSelectedUsersDeleteBody""" - The total number of seat assignments cancelled. - """ + selected_usernames: List[str] - seats_cancelled: int - -__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type",) +__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0819.py b/githubkit/versions/v2022_11_28/types/group_0819.py index a4754484f..146387615 100644 --- a/githubkit/versions/v2022_11_28/types/group_0819.py +++ b/githubkit/versions/v2022_11_28/types/group_0819.py @@ -9,32 +9,16 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class OrgsOrgDependabotSecretsGetResponse200Type(TypedDict): - """OrgsOrgDependabotSecretsGetResponse200""" +class OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type(TypedDict): + """OrgsOrgCopilotBillingSelectedUsersDeleteResponse200 - total_count: int - secrets: List[OrganizationDependabotSecretType] - - -class OrganizationDependabotSecretType(TypedDict): - """Dependabot Secret for an Organization - - Secrets for GitHub Dependabot for an organization. + The total number of seat assignments cancelled. """ - name: str - created_at: datetime - updated_at: datetime - visibility: Literal["all", "private", "selected"] - selected_repositories_url: NotRequired[str] + seats_cancelled: int -__all__ = ( - "OrgsOrgDependabotSecretsGetResponse200Type", - "OrganizationDependabotSecretType", -) +__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0820.py b/githubkit/versions/v2022_11_28/types/group_0820.py index eb6772b44..a4754484f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0820.py +++ b/githubkit/versions/v2022_11_28/types/group_0820.py @@ -9,17 +9,32 @@ from __future__ import annotations +from datetime import datetime from typing import List, Literal from typing_extensions import TypedDict, NotRequired -class OrgsOrgDependabotSecretsSecretNamePutBodyType(TypedDict): - """OrgsOrgDependabotSecretsSecretNamePutBody""" +class OrgsOrgDependabotSecretsGetResponse200Type(TypedDict): + """OrgsOrgDependabotSecretsGetResponse200""" - encrypted_value: NotRequired[str] - key_id: NotRequired[str] + total_count: int + 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_repository_ids: NotRequired[List[str]] + selected_repositories_url: NotRequired[str] -__all__ = ("OrgsOrgDependabotSecretsSecretNamePutBodyType",) +__all__ = ( + "OrgsOrgDependabotSecretsGetResponse200Type", + "OrganizationDependabotSecretType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0821.py b/githubkit/versions/v2022_11_28/types/group_0821.py index a56995700..eb6772b44 100644 --- a/githubkit/versions/v2022_11_28/types/group_0821.py +++ b/githubkit/versions/v2022_11_28/types/group_0821.py @@ -9,17 +9,17 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import List, Literal +from typing_extensions import TypedDict, NotRequired -from .group_0055 import MinimalRepositoryType +class OrgsOrgDependabotSecretsSecretNamePutBodyType(TypedDict): + """OrgsOrgDependabotSecretsSecretNamePutBody""" -class OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): - """OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200""" + encrypted_value: NotRequired[str] + key_id: NotRequired[str] + visibility: Literal["all", "private", "selected"] + selected_repository_ids: NotRequired[List[str]] - total_count: int - repositories: List[MinimalRepositoryType] - -__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type",) +__all__ = ("OrgsOrgDependabotSecretsSecretNamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0822.py b/githubkit/versions/v2022_11_28/types/group_0822.py index 20b1891ca..a56995700 100644 --- a/githubkit/versions/v2022_11_28/types/group_0822.py +++ b/githubkit/versions/v2022_11_28/types/group_0822.py @@ -12,11 +12,14 @@ from typing import List from typing_extensions import TypedDict +from .group_0055 import MinimalRepositoryType -class OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType(TypedDict): - """OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody""" - selected_repository_ids: List[int] +class OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): + """OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200""" + total_count: int + repositories: List[MinimalRepositoryType] -__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType",) + +__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0823.py b/githubkit/versions/v2022_11_28/types/group_0823.py index 122ba557e..20b1891ca 100644 --- a/githubkit/versions/v2022_11_28/types/group_0823.py +++ b/githubkit/versions/v2022_11_28/types/group_0823.py @@ -9,34 +9,14 @@ from __future__ import annotations -from typing import List, Union -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -class OrgsOrgHooksPostBodyType(TypedDict): - """OrgsOrgHooksPostBody""" +class OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType(TypedDict): + """OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody""" - name: str - config: OrgsOrgHooksPostBodyPropConfigType - events: NotRequired[List[str]] - active: NotRequired[bool] + selected_repository_ids: List[int] -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__ = ( - "OrgsOrgHooksPostBodyType", - "OrgsOrgHooksPostBodyPropConfigType", -) +__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0824.py b/githubkit/versions/v2022_11_28/types/group_0824.py index 11e886a2e..122ba557e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0824.py +++ b/githubkit/versions/v2022_11_28/types/group_0824.py @@ -13,17 +13,17 @@ from typing_extensions import TypedDict, NotRequired -class OrgsOrgHooksHookIdPatchBodyType(TypedDict): - """OrgsOrgHooksHookIdPatchBody""" +class OrgsOrgHooksPostBodyType(TypedDict): + """OrgsOrgHooksPostBody""" - config: NotRequired[OrgsOrgHooksHookIdPatchBodyPropConfigType] + name: str + config: OrgsOrgHooksPostBodyPropConfigType events: NotRequired[List[str]] active: NotRequired[bool] - name: NotRequired[str] -class OrgsOrgHooksHookIdPatchBodyPropConfigType(TypedDict): - """OrgsOrgHooksHookIdPatchBodyPropConfig +class OrgsOrgHooksPostBodyPropConfigType(TypedDict): + """OrgsOrgHooksPostBodyPropConfig Key/value pairs to provide settings for this webhook. """ @@ -32,9 +32,11 @@ class OrgsOrgHooksHookIdPatchBodyPropConfigType(TypedDict): content_type: NotRequired[str] secret: NotRequired[str] insecure_ssl: NotRequired[Union[str, float]] + username: NotRequired[str] + password: NotRequired[str] __all__ = ( - "OrgsOrgHooksHookIdPatchBodyType", - "OrgsOrgHooksHookIdPatchBodyPropConfigType", + "OrgsOrgHooksPostBodyType", + "OrgsOrgHooksPostBodyPropConfigType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0825.py b/githubkit/versions/v2022_11_28/types/group_0825.py index 7e5067447..11e886a2e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0825.py +++ b/githubkit/versions/v2022_11_28/types/group_0825.py @@ -9,17 +9,32 @@ from __future__ import annotations -from typing import Union +from typing import List, Union from typing_extensions import TypedDict, NotRequired -class OrgsOrgHooksHookIdConfigPatchBodyType(TypedDict): - """OrgsOrgHooksHookIdConfigPatchBody""" +class OrgsOrgHooksHookIdPatchBodyType(TypedDict): + """OrgsOrgHooksHookIdPatchBody""" - url: NotRequired[str] + config: NotRequired[OrgsOrgHooksHookIdPatchBodyPropConfigType] + events: NotRequired[List[str]] + active: NotRequired[bool] + name: NotRequired[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__ = ("OrgsOrgHooksHookIdConfigPatchBodyType",) +__all__ = ( + "OrgsOrgHooksHookIdPatchBodyType", + "OrgsOrgHooksHookIdPatchBodyPropConfigType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0826.py b/githubkit/versions/v2022_11_28/types/group_0826.py index 6cb3bd343..7e5067447 100644 --- a/githubkit/versions/v2022_11_28/types/group_0826.py +++ b/githubkit/versions/v2022_11_28/types/group_0826.py @@ -9,17 +9,17 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import TypedDict, NotRequired -from .group_0015 import InstallationType +class OrgsOrgHooksHookIdConfigPatchBodyType(TypedDict): + """OrgsOrgHooksHookIdConfigPatchBody""" -class OrgsOrgInstallationsGetResponse200Type(TypedDict): - """OrgsOrgInstallationsGetResponse200""" + url: NotRequired[str] + content_type: NotRequired[str] + secret: NotRequired[str] + insecure_ssl: NotRequired[Union[str, float]] - total_count: int - installations: List[InstallationType] - -__all__ = ("OrgsOrgInstallationsGetResponse200Type",) +__all__ = ("OrgsOrgHooksHookIdConfigPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0827.py b/githubkit/versions/v2022_11_28/types/group_0827.py index 5916d7d10..6cb3bd343 100644 --- a/githubkit/versions/v2022_11_28/types/group_0827.py +++ b/githubkit/versions/v2022_11_28/types/group_0827.py @@ -9,11 +9,17 @@ from __future__ import annotations +from typing import List from typing_extensions import TypedDict +from .group_0015 import InstallationType -class OrgsOrgInteractionLimitsGetResponse200Anyof1Type(TypedDict): - """OrgsOrgInteractionLimitsGetResponse200Anyof1""" +class OrgsOrgInstallationsGetResponse200Type(TypedDict): + """OrgsOrgInstallationsGetResponse200""" -__all__ = ("OrgsOrgInteractionLimitsGetResponse200Anyof1Type",) + total_count: int + installations: List[InstallationType] + + +__all__ = ("OrgsOrgInstallationsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0828.py b/githubkit/versions/v2022_11_28/types/group_0828.py index 53e71b67a..5916d7d10 100644 --- a/githubkit/versions/v2022_11_28/types/group_0828.py +++ b/githubkit/versions/v2022_11_28/types/group_0828.py @@ -9,17 +9,11 @@ from __future__ import annotations -from typing import List, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class OrgsOrgInvitationsPostBodyType(TypedDict): - """OrgsOrgInvitationsPostBody""" +class OrgsOrgInteractionLimitsGetResponse200Anyof1Type(TypedDict): + """OrgsOrgInteractionLimitsGetResponse200Anyof1""" - invitee_id: NotRequired[int] - email: NotRequired[str] - role: NotRequired[Literal["admin", "direct_member", "billing_manager", "reinstate"]] - team_ids: NotRequired[List[int]] - -__all__ = ("OrgsOrgInvitationsPostBodyType",) +__all__ = ("OrgsOrgInteractionLimitsGetResponse200Anyof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0829.py b/githubkit/versions/v2022_11_28/types/group_0829.py index d65d3c14f..53e71b67a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0829.py +++ b/githubkit/versions/v2022_11_28/types/group_0829.py @@ -9,17 +9,17 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import List, Literal +from typing_extensions import TypedDict, NotRequired -from .group_0078 import CodespaceType +class OrgsOrgInvitationsPostBodyType(TypedDict): + """OrgsOrgInvitationsPostBody""" -class OrgsOrgMembersUsernameCodespacesGetResponse200Type(TypedDict): - """OrgsOrgMembersUsernameCodespacesGetResponse200""" + invitee_id: NotRequired[int] + email: NotRequired[str] + role: NotRequired[Literal["admin", "direct_member", "billing_manager", "reinstate"]] + team_ids: NotRequired[List[int]] - total_count: int - codespaces: List[CodespaceType] - -__all__ = ("OrgsOrgMembersUsernameCodespacesGetResponse200Type",) +__all__ = ("OrgsOrgInvitationsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0830.py b/githubkit/versions/v2022_11_28/types/group_0830.py index 8a9c0bc90..d65d3c14f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0830.py +++ b/githubkit/versions/v2022_11_28/types/group_0830.py @@ -9,14 +9,17 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict +from .group_0078 import CodespaceType -class OrgsOrgMembershipsUsernamePutBodyType(TypedDict): - """OrgsOrgMembershipsUsernamePutBody""" - role: NotRequired[Literal["admin", "member"]] +class OrgsOrgMembersUsernameCodespacesGetResponse200Type(TypedDict): + """OrgsOrgMembersUsernameCodespacesGetResponse200""" + total_count: int + codespaces: List[CodespaceType] -__all__ = ("OrgsOrgMembershipsUsernamePutBodyType",) + +__all__ = ("OrgsOrgMembersUsernameCodespacesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0831.py b/githubkit/versions/v2022_11_28/types/group_0831.py index f222d73fb..8a9c0bc90 100644 --- a/githubkit/versions/v2022_11_28/types/group_0831.py +++ b/githubkit/versions/v2022_11_28/types/group_0831.py @@ -9,22 +9,14 @@ from __future__ import annotations -from typing import List, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -class OrgsOrgMigrationsPostBodyType(TypedDict): - """OrgsOrgMigrationsPostBody""" +class OrgsOrgMembershipsUsernamePutBodyType(TypedDict): + """OrgsOrgMembershipsUsernamePutBody""" - 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"]]] + role: NotRequired[Literal["admin", "member"]] -__all__ = ("OrgsOrgMigrationsPostBodyType",) +__all__ = ("OrgsOrgMembershipsUsernamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0832.py b/githubkit/versions/v2022_11_28/types/group_0832.py index 174eddcfe..f222d73fb 100644 --- a/githubkit/versions/v2022_11_28/types/group_0832.py +++ b/githubkit/versions/v2022_11_28/types/group_0832.py @@ -9,16 +9,22 @@ from __future__ import annotations -from typing import List +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -class OrgsOrgOrganizationRolesPostBodyType(TypedDict): - """OrgsOrgOrganizationRolesPostBody""" +class OrgsOrgMigrationsPostBodyType(TypedDict): + """OrgsOrgMigrationsPostBody""" - name: str - description: NotRequired[str] - permissions: List[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__ = ("OrgsOrgOrganizationRolesPostBodyType",) +__all__ = ("OrgsOrgMigrationsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0833.py b/githubkit/versions/v2022_11_28/types/group_0833.py index 7b35bcb3e..174eddcfe 100644 --- a/githubkit/versions/v2022_11_28/types/group_0833.py +++ b/githubkit/versions/v2022_11_28/types/group_0833.py @@ -13,12 +13,12 @@ from typing_extensions import TypedDict, NotRequired -class OrgsOrgOrganizationRolesRoleIdPatchBodyType(TypedDict): - """OrgsOrgOrganizationRolesRoleIdPatchBody""" +class OrgsOrgOrganizationRolesPostBodyType(TypedDict): + """OrgsOrgOrganizationRolesPostBody""" - name: NotRequired[str] + name: str description: NotRequired[str] - permissions: NotRequired[List[str]] + permissions: List[str] -__all__ = ("OrgsOrgOrganizationRolesRoleIdPatchBodyType",) +__all__ = ("OrgsOrgOrganizationRolesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0834.py b/githubkit/versions/v2022_11_28/types/group_0834.py index 76bef7987..7b35bcb3e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0834.py +++ b/githubkit/versions/v2022_11_28/types/group_0834.py @@ -9,13 +9,16 @@ from __future__ import annotations +from typing import List from typing_extensions import TypedDict, NotRequired -class OrgsOrgOutsideCollaboratorsUsernamePutBodyType(TypedDict): - """OrgsOrgOutsideCollaboratorsUsernamePutBody""" +class OrgsOrgOrganizationRolesRoleIdPatchBodyType(TypedDict): + """OrgsOrgOrganizationRolesRoleIdPatchBody""" - async_: NotRequired[bool] + name: NotRequired[str] + description: NotRequired[str] + permissions: NotRequired[List[str]] -__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutBodyType",) +__all__ = ("OrgsOrgOrganizationRolesRoleIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0835.py b/githubkit/versions/v2022_11_28/types/group_0835.py index 5de4170f2..76bef7987 100644 --- a/githubkit/versions/v2022_11_28/types/group_0835.py +++ b/githubkit/versions/v2022_11_28/types/group_0835.py @@ -9,11 +9,13 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type(TypedDict): - """OrgsOrgOutsideCollaboratorsUsernamePutResponse202""" +class OrgsOrgOutsideCollaboratorsUsernamePutBodyType(TypedDict): + """OrgsOrgOutsideCollaboratorsUsernamePutBody""" + async_: NotRequired[bool] -__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type",) + +__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0836.py b/githubkit/versions/v2022_11_28/types/group_0836.py index c6b448fef..5de4170f2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0836.py +++ b/githubkit/versions/v2022_11_28/types/group_0836.py @@ -9,14 +9,11 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type(TypedDict): - """OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422""" +class OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type(TypedDict): + """OrgsOrgOutsideCollaboratorsUsernamePutResponse202""" - message: NotRequired[str] - documentation_url: NotRequired[str] - -__all__ = ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type",) +__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0837.py b/githubkit/versions/v2022_11_28/types/group_0837.py index 606354a4b..c6b448fef 100644 --- a/githubkit/versions/v2022_11_28/types/group_0837.py +++ b/githubkit/versions/v2022_11_28/types/group_0837.py @@ -9,16 +9,14 @@ from __future__ import annotations -from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -class OrgsOrgPersonalAccessTokenRequestsPostBodyType(TypedDict): - """OrgsOrgPersonalAccessTokenRequestsPostBody""" +class OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type(TypedDict): + """OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422""" - pat_request_ids: NotRequired[List[int]] - action: Literal["approve", "deny"] - reason: NotRequired[Union[str, None]] + message: NotRequired[str] + documentation_url: NotRequired[str] -__all__ = ("OrgsOrgPersonalAccessTokenRequestsPostBodyType",) +__all__ = ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0838.py b/githubkit/versions/v2022_11_28/types/group_0838.py index 4fc23e50a..606354a4b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0838.py +++ b/githubkit/versions/v2022_11_28/types/group_0838.py @@ -9,15 +9,16 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -class OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType(TypedDict): - """OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody""" +class OrgsOrgPersonalAccessTokenRequestsPostBodyType(TypedDict): + """OrgsOrgPersonalAccessTokenRequestsPostBody""" + pat_request_ids: NotRequired[List[int]] action: Literal["approve", "deny"] reason: NotRequired[Union[str, None]] -__all__ = ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType",) +__all__ = ("OrgsOrgPersonalAccessTokenRequestsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0839.py b/githubkit/versions/v2022_11_28/types/group_0839.py index 23297838b..4fc23e50a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0839.py +++ b/githubkit/versions/v2022_11_28/types/group_0839.py @@ -9,15 +9,15 @@ from __future__ import annotations -from typing import List, Literal -from typing_extensions import TypedDict +from typing import Union, Literal +from typing_extensions import TypedDict, NotRequired -class OrgsOrgPersonalAccessTokensPostBodyType(TypedDict): - """OrgsOrgPersonalAccessTokensPostBody""" +class OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType(TypedDict): + """OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody""" - action: Literal["revoke"] - pat_ids: List[int] + action: Literal["approve", "deny"] + reason: NotRequired[Union[str, None]] -__all__ = ("OrgsOrgPersonalAccessTokensPostBodyType",) +__all__ = ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0840.py b/githubkit/versions/v2022_11_28/types/group_0840.py index 32c37cd97..23297838b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0840.py +++ b/githubkit/versions/v2022_11_28/types/group_0840.py @@ -9,14 +9,15 @@ from __future__ import annotations -from typing import Literal +from typing import List, Literal from typing_extensions import TypedDict -class OrgsOrgPersonalAccessTokensPatIdPostBodyType(TypedDict): - """OrgsOrgPersonalAccessTokensPatIdPostBody""" +class OrgsOrgPersonalAccessTokensPostBodyType(TypedDict): + """OrgsOrgPersonalAccessTokensPostBody""" action: Literal["revoke"] + pat_ids: List[int] -__all__ = ("OrgsOrgPersonalAccessTokensPatIdPostBodyType",) +__all__ = ("OrgsOrgPersonalAccessTokensPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0841.py b/githubkit/versions/v2022_11_28/types/group_0841.py index afad09a25..32c37cd97 100644 --- a/githubkit/versions/v2022_11_28/types/group_0841.py +++ b/githubkit/versions/v2022_11_28/types/group_0841.py @@ -9,14 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing import Literal +from typing_extensions import TypedDict -class OrgsOrgProjectsPostBodyType(TypedDict): - """OrgsOrgProjectsPostBody""" +class OrgsOrgPersonalAccessTokensPatIdPostBodyType(TypedDict): + """OrgsOrgPersonalAccessTokensPatIdPostBody""" - name: str - body: NotRequired[str] + action: Literal["revoke"] -__all__ = ("OrgsOrgProjectsPostBodyType",) +__all__ = ("OrgsOrgPersonalAccessTokensPatIdPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0842.py b/githubkit/versions/v2022_11_28/types/group_0842.py index 856220a32..afad09a25 100644 --- a/githubkit/versions/v2022_11_28/types/group_0842.py +++ b/githubkit/versions/v2022_11_28/types/group_0842.py @@ -9,16 +9,14 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0097 import OrgCustomPropertyType +class OrgsOrgProjectsPostBodyType(TypedDict): + """OrgsOrgProjectsPostBody""" -class OrgsOrgPropertiesSchemaPatchBodyType(TypedDict): - """OrgsOrgPropertiesSchemaPatchBody""" + name: str + body: NotRequired[str] - properties: List[OrgCustomPropertyType] - -__all__ = ("OrgsOrgPropertiesSchemaPatchBodyType",) +__all__ = ("OrgsOrgProjectsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0843.py b/githubkit/versions/v2022_11_28/types/group_0843.py index fef4a5519..856220a32 100644 --- a/githubkit/versions/v2022_11_28/types/group_0843.py +++ b/githubkit/versions/v2022_11_28/types/group_0843.py @@ -9,18 +9,16 @@ from __future__ import annotations -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict +from .group_0097 import OrgCustomPropertyType -class OrgsOrgPropertiesSchemaCustomPropertyNamePutBodyType(TypedDict): - """OrgsOrgPropertiesSchemaCustomPropertyNamePutBody""" - 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]] +class OrgsOrgPropertiesSchemaPatchBodyType(TypedDict): + """OrgsOrgPropertiesSchemaPatchBody""" + properties: List[OrgCustomPropertyType] -__all__ = ("OrgsOrgPropertiesSchemaCustomPropertyNamePutBodyType",) + +__all__ = ("OrgsOrgPropertiesSchemaPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0844.py b/githubkit/versions/v2022_11_28/types/group_0844.py index 137184541..fef4a5519 100644 --- a/githubkit/versions/v2022_11_28/types/group_0844.py +++ b/githubkit/versions/v2022_11_28/types/group_0844.py @@ -9,17 +9,18 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired -from .group_0098 import CustomPropertyValueType +class OrgsOrgPropertiesSchemaCustomPropertyNamePutBodyType(TypedDict): + """OrgsOrgPropertiesSchemaCustomPropertyNamePutBody""" -class OrgsOrgPropertiesValuesPatchBodyType(TypedDict): - """OrgsOrgPropertiesValuesPatchBody""" + 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]] - repository_names: List[str] - properties: List[CustomPropertyValueType] - -__all__ = ("OrgsOrgPropertiesValuesPatchBodyType",) +__all__ = ("OrgsOrgPropertiesSchemaCustomPropertyNamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0845.py b/githubkit/versions/v2022_11_28/types/group_0845.py index 45d01becb..137184541 100644 --- a/githubkit/versions/v2022_11_28/types/group_0845.py +++ b/githubkit/versions/v2022_11_28/types/group_0845.py @@ -9,51 +9,17 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired - - -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] - - -class OrgsOrgReposPostBodyPropCustomPropertiesType(TypedDict): - """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__ = ( - "OrgsOrgReposPostBodyType", - "OrgsOrgReposPostBodyPropCustomPropertiesType", -) +from typing import List +from typing_extensions import TypedDict + +from .group_0098 import CustomPropertyValueType + + +class OrgsOrgPropertiesValuesPatchBodyType(TypedDict): + """OrgsOrgPropertiesValuesPatchBody""" + + repository_names: List[str] + properties: List[CustomPropertyValueType] + + +__all__ = ("OrgsOrgPropertiesValuesPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0846.py b/githubkit/versions/v2022_11_28/types/group_0846.py index b41ffe205..45d01becb 100644 --- a/githubkit/versions/v2022_11_28/types/group_0846.py +++ b/githubkit/versions/v2022_11_28/types/group_0846.py @@ -9,79 +9,51 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0115 import RepositoryRuleUpdateType -from .group_0139 import RepositoryRuleOneof17Type -from .group_0135 import RepositoryRuleWorkflowsType -from .group_0120 import RepositoryRulePullRequestType -from .group_0111 import OrgRulesetConditionsOneof0Type -from .group_0112 import OrgRulesetConditionsOneof1Type -from .group_0113 import OrgRulesetConditionsOneof2Type -from .group_0137 import RepositoryRuleCodeScanningType -from .group_0102 import RepositoryRulesetBypassActorType -from .group_0132 import RepositoryRuleTagNamePatternType -from .group_0130 import RepositoryRuleBranchNamePatternType -from .group_0118 import RepositoryRuleRequiredDeploymentsType -from .group_0122 import RepositoryRuleRequiredStatusChecksType -from .group_0124 import RepositoryRuleCommitMessagePatternType -from .group_0128 import RepositoryRuleCommitterEmailPatternType -from .group_0126 import RepositoryRuleCommitAuthorEmailPatternType -from .group_0117 import ( - RepositoryRuleOneof15Type, - RepositoryRuleRequiredLinearHistoryType, -) -from .group_0114 import ( - RepositoryRuleOneof14Type, - RepositoryRuleOneof16Type, - RepositoryRuleCreationType, - RepositoryRuleDeletionType, - RepositoryRuleNonFastForwardType, - RepositoryRuleRequiredSignaturesType, -) - -class OrgsOrgRulesetsPostBodyType(TypedDict): - """OrgsOrgRulesetsPostBody""" +class OrgsOrgReposPostBodyType(TypedDict): + """OrgsOrgReposPostBody""" name: str - target: NotRequired[Literal["branch", "tag", "push"]] - enforcement: Literal["disabled", "active", "evaluate"] - bypass_actors: NotRequired[List[RepositoryRulesetBypassActorType]] - conditions: NotRequired[ - Union[ - OrgRulesetConditionsOneof0Type, - OrgRulesetConditionsOneof1Type, - OrgRulesetConditionsOneof2Type, - ] - ] - rules: NotRequired[ - List[ - Union[ - RepositoryRuleCreationType, - RepositoryRuleUpdateType, - RepositoryRuleDeletionType, - RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleRequiredDeploymentsType, - RepositoryRuleRequiredSignaturesType, - RepositoryRulePullRequestType, - RepositoryRuleRequiredStatusChecksType, - RepositoryRuleNonFastForwardType, - RepositoryRuleCommitMessagePatternType, - RepositoryRuleCommitAuthorEmailPatternType, - RepositoryRuleCommitterEmailPatternType, - RepositoryRuleBranchNamePatternType, - RepositoryRuleTagNamePatternType, - RepositoryRuleOneof14Type, - RepositoryRuleOneof15Type, - RepositoryRuleOneof16Type, - RepositoryRuleOneof17Type, - RepositoryRuleWorkflowsType, - RepositoryRuleCodeScanningType, - ] - ] + 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] -__all__ = ("OrgsOrgRulesetsPostBodyType",) +class OrgsOrgReposPostBodyPropCustomPropertiesType(TypedDict): + """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__ = ( + "OrgsOrgReposPostBodyType", + "OrgsOrgReposPostBodyPropCustomPropertiesType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0847.py b/githubkit/versions/v2022_11_28/types/group_0847.py index a9d7029fc..b41ffe205 100644 --- a/githubkit/versions/v2022_11_28/types/group_0847.py +++ b/githubkit/versions/v2022_11_28/types/group_0847.py @@ -42,12 +42,12 @@ ) -class OrgsOrgRulesetsRulesetIdPutBodyType(TypedDict): - """OrgsOrgRulesetsRulesetIdPutBody""" +class OrgsOrgRulesetsPostBodyType(TypedDict): + """OrgsOrgRulesetsPostBody""" - name: NotRequired[str] + name: str target: NotRequired[Literal["branch", "tag", "push"]] - enforcement: NotRequired[Literal["disabled", "active", "evaluate"]] + enforcement: Literal["disabled", "active", "evaluate"] bypass_actors: NotRequired[List[RepositoryRulesetBypassActorType]] conditions: NotRequired[ Union[ @@ -84,4 +84,4 @@ class OrgsOrgRulesetsRulesetIdPutBodyType(TypedDict): ] -__all__ = ("OrgsOrgRulesetsRulesetIdPutBodyType",) +__all__ = ("OrgsOrgRulesetsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0848.py b/githubkit/versions/v2022_11_28/types/group_0848.py index 2bfa5cbd0..a9d7029fc 100644 --- a/githubkit/versions/v2022_11_28/types/group_0848.py +++ b/githubkit/versions/v2022_11_28/types/group_0848.py @@ -9,23 +9,79 @@ from __future__ import annotations -from typing import List, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0115 import RepositoryRuleUpdateType +from .group_0139 import RepositoryRuleOneof17Type +from .group_0135 import RepositoryRuleWorkflowsType +from .group_0120 import RepositoryRulePullRequestType +from .group_0111 import OrgRulesetConditionsOneof0Type +from .group_0112 import OrgRulesetConditionsOneof1Type +from .group_0113 import OrgRulesetConditionsOneof2Type +from .group_0137 import RepositoryRuleCodeScanningType +from .group_0102 import RepositoryRulesetBypassActorType +from .group_0132 import RepositoryRuleTagNamePatternType +from .group_0130 import RepositoryRuleBranchNamePatternType +from .group_0118 import RepositoryRuleRequiredDeploymentsType +from .group_0122 import RepositoryRuleRequiredStatusChecksType +from .group_0124 import RepositoryRuleCommitMessagePatternType +from .group_0128 import RepositoryRuleCommitterEmailPatternType +from .group_0126 import RepositoryRuleCommitAuthorEmailPatternType +from .group_0117 import ( + RepositoryRuleOneof15Type, + RepositoryRuleRequiredLinearHistoryType, +) +from .group_0114 import ( + RepositoryRuleOneof14Type, + RepositoryRuleOneof16Type, + RepositoryRuleCreationType, + RepositoryRuleDeletionType, + RepositoryRuleNonFastForwardType, + RepositoryRuleRequiredSignaturesType, +) -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"] +class OrgsOrgRulesetsRulesetIdPutBodyType(TypedDict): + """OrgsOrgRulesetsRulesetIdPutBody""" + + name: NotRequired[str] + target: NotRequired[Literal["branch", "tag", "push"]] + 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, + RepositoryRuleRequiredDeploymentsType, + RepositoryRuleRequiredSignaturesType, + RepositoryRulePullRequestType, + RepositoryRuleRequiredStatusChecksType, + RepositoryRuleNonFastForwardType, + RepositoryRuleCommitMessagePatternType, + RepositoryRuleCommitAuthorEmailPatternType, + RepositoryRuleCommitterEmailPatternType, + RepositoryRuleBranchNamePatternType, + RepositoryRuleTagNamePatternType, + RepositoryRuleOneof14Type, + RepositoryRuleOneof15Type, + RepositoryRuleOneof16Type, + RepositoryRuleOneof17Type, + RepositoryRuleWorkflowsType, + RepositoryRuleCodeScanningType, + ] + ] ] - permission: NotRequired[Literal["pull", "push"]] - parent_team_id: NotRequired[int] -__all__ = ("OrgsOrgTeamsPostBodyType",) +__all__ = ("OrgsOrgRulesetsRulesetIdPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0849.py b/githubkit/versions/v2022_11_28/types/group_0849.py index 19f0b0ccd..2bfa5cbd0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0849.py +++ b/githubkit/versions/v2022_11_28/types/group_0849.py @@ -9,21 +9,23 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -class OrgsOrgTeamsTeamSlugPatchBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugPatchBody""" +class OrgsOrgTeamsPostBodyType(TypedDict): + """OrgsOrgTeamsPostBody""" - name: NotRequired[str] + 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", "admin"]] - parent_team_id: NotRequired[Union[int, None]] + permission: NotRequired[Literal["pull", "push"]] + parent_team_id: NotRequired[int] -__all__ = ("OrgsOrgTeamsTeamSlugPatchBodyType",) +__all__ = ("OrgsOrgTeamsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0850.py b/githubkit/versions/v2022_11_28/types/group_0850.py index 81e2f4f67..19f0b0ccd 100644 --- a/githubkit/versions/v2022_11_28/types/group_0850.py +++ b/githubkit/versions/v2022_11_28/types/group_0850.py @@ -9,15 +9,21 @@ from __future__ import annotations +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -class OrgsOrgTeamsTeamSlugDiscussionsPostBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugDiscussionsPostBody""" +class OrgsOrgTeamsTeamSlugPatchBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugPatchBody""" - title: str - body: str - private: NotRequired[bool] + 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__ = ("OrgsOrgTeamsTeamSlugDiscussionsPostBodyType",) +__all__ = ("OrgsOrgTeamsTeamSlugPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0851.py b/githubkit/versions/v2022_11_28/types/group_0851.py index 555845d86..81e2f4f67 100644 --- a/githubkit/versions/v2022_11_28/types/group_0851.py +++ b/githubkit/versions/v2022_11_28/types/group_0851.py @@ -12,11 +12,12 @@ from typing_extensions import TypedDict, NotRequired -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody""" +class OrgsOrgTeamsTeamSlugDiscussionsPostBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugDiscussionsPostBody""" - title: NotRequired[str] - body: NotRequired[str] + title: str + body: str + private: NotRequired[bool] -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBodyType",) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0852.py b/githubkit/versions/v2022_11_28/types/group_0852.py index a05290583..555845d86 100644 --- a/githubkit/versions/v2022_11_28/types/group_0852.py +++ b/githubkit/versions/v2022_11_28/types/group_0852.py @@ -9,13 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody""" - body: str + title: NotRequired[str] + body: NotRequired[str] -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType",) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0853.py b/githubkit/versions/v2022_11_28/types/group_0853.py index a6b974137..a05290583 100644 --- a/githubkit/versions/v2022_11_28/types/group_0853.py +++ b/githubkit/versions/v2022_11_28/types/group_0853.py @@ -12,14 +12,10 @@ from typing_extensions import TypedDict -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType( - TypedDict -): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody""" body: str -__all__ = ( - "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType", -) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0854.py b/githubkit/versions/v2022_11_28/types/group_0854.py index 937b98f91..a6b974137 100644 --- a/githubkit/versions/v2022_11_28/types/group_0854.py +++ b/githubkit/versions/v2022_11_28/types/group_0854.py @@ -9,22 +9,17 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType( +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType( TypedDict ): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPos - tBody - """ + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] + body: str __all__ = ( - "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType", + "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0855.py b/githubkit/versions/v2022_11_28/types/group_0855.py index c71526f64..937b98f91 100644 --- a/githubkit/versions/v2022_11_28/types/group_0855.py +++ b/githubkit/versions/v2022_11_28/types/group_0855.py @@ -13,12 +13,18 @@ from typing_extensions import TypedDict -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType( + TypedDict +): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPos + tBody + """ content: Literal[ "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" ] -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBodyType",) +__all__ = ( + "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0856.py b/githubkit/versions/v2022_11_28/types/group_0856.py index 3551630af..c71526f64 100644 --- a/githubkit/versions/v2022_11_28/types/group_0856.py +++ b/githubkit/versions/v2022_11_28/types/group_0856.py @@ -10,13 +10,15 @@ from __future__ import annotations from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody""" - role: NotRequired[Literal["member", "maintainer"]] + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] -__all__ = ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType",) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0857.py b/githubkit/versions/v2022_11_28/types/group_0857.py index 4e75e8844..3551630af 100644 --- a/githubkit/versions/v2022_11_28/types/group_0857.py +++ b/githubkit/versions/v2022_11_28/types/group_0857.py @@ -13,10 +13,10 @@ from typing_extensions import TypedDict, NotRequired -class OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody""" +class OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody""" - permission: NotRequired[Literal["read", "write", "admin"]] + role: NotRequired[Literal["member", "maintainer"]] -__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType",) +__all__ = ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0858.py b/githubkit/versions/v2022_11_28/types/group_0858.py index 42d481609..4e75e8844 100644 --- a/githubkit/versions/v2022_11_28/types/group_0858.py +++ b/githubkit/versions/v2022_11_28/types/group_0858.py @@ -9,14 +9,14 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict, NotRequired -class OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type(TypedDict): - """OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403""" +class OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody""" - message: NotRequired[str] - documentation_url: NotRequired[str] + permission: NotRequired[Literal["read", "write", "admin"]] -__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type",) +__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0859.py b/githubkit/versions/v2022_11_28/types/group_0859.py index 0851e1500..42d481609 100644 --- a/githubkit/versions/v2022_11_28/types/group_0859.py +++ b/githubkit/versions/v2022_11_28/types/group_0859.py @@ -12,10 +12,11 @@ from typing_extensions import TypedDict, NotRequired -class OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody""" +class OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type(TypedDict): + """OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403""" - permission: NotRequired[str] + message: NotRequired[str] + documentation_url: NotRequired[str] -__all__ = ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType",) +__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0860.py b/githubkit/versions/v2022_11_28/types/group_0860.py index 5ef349fe1..0851e1500 100644 --- a/githubkit/versions/v2022_11_28/types/group_0860.py +++ b/githubkit/versions/v2022_11_28/types/group_0860.py @@ -9,14 +9,13 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict, NotRequired -class OrgsOrgSecurityProductEnablementPostBodyType(TypedDict): - """OrgsOrgSecurityProductEnablementPostBody""" +class OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody""" - query_suite: NotRequired[Literal["default", "extended"]] + permission: NotRequired[str] -__all__ = ("OrgsOrgSecurityProductEnablementPostBodyType",) +__all__ = ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0861.py b/githubkit/versions/v2022_11_28/types/group_0861.py index 90b8767cf..5ef349fe1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0861.py +++ b/githubkit/versions/v2022_11_28/types/group_0861.py @@ -9,16 +9,14 @@ from __future__ import annotations -from typing import List +from typing import Literal from typing_extensions import TypedDict, NotRequired -class ProjectsColumnsCardsCardIdDeleteResponse403Type(TypedDict): - """ProjectsColumnsCardsCardIdDeleteResponse403""" +class OrgsOrgSecurityProductEnablementPostBodyType(TypedDict): + """OrgsOrgSecurityProductEnablementPostBody""" - message: NotRequired[str] - documentation_url: NotRequired[str] - errors: NotRequired[List[str]] + query_suite: NotRequired[Literal["default", "extended"]] -__all__ = ("ProjectsColumnsCardsCardIdDeleteResponse403Type",) +__all__ = ("OrgsOrgSecurityProductEnablementPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0862.py b/githubkit/versions/v2022_11_28/types/group_0862.py index 201f880aa..90b8767cf 100644 --- a/githubkit/versions/v2022_11_28/types/group_0862.py +++ b/githubkit/versions/v2022_11_28/types/group_0862.py @@ -9,15 +9,16 @@ from __future__ import annotations -from typing import Union +from typing import List from typing_extensions import TypedDict, NotRequired -class ProjectsColumnsCardsCardIdPatchBodyType(TypedDict): - """ProjectsColumnsCardsCardIdPatchBody""" +class ProjectsColumnsCardsCardIdDeleteResponse403Type(TypedDict): + """ProjectsColumnsCardsCardIdDeleteResponse403""" - note: NotRequired[Union[str, None]] - archived: NotRequired[bool] + message: NotRequired[str] + documentation_url: NotRequired[str] + errors: NotRequired[List[str]] -__all__ = ("ProjectsColumnsCardsCardIdPatchBodyType",) +__all__ = ("ProjectsColumnsCardsCardIdDeleteResponse403Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0863.py b/githubkit/versions/v2022_11_28/types/group_0863.py index 6ae64aa6a..201f880aa 100644 --- a/githubkit/versions/v2022_11_28/types/group_0863.py +++ b/githubkit/versions/v2022_11_28/types/group_0863.py @@ -9,14 +9,15 @@ from __future__ import annotations +from typing import Union from typing_extensions import TypedDict, NotRequired -class ProjectsColumnsCardsCardIdMovesPostBodyType(TypedDict): - """ProjectsColumnsCardsCardIdMovesPostBody""" +class ProjectsColumnsCardsCardIdPatchBodyType(TypedDict): + """ProjectsColumnsCardsCardIdPatchBody""" - position: str - column_id: NotRequired[int] + note: NotRequired[Union[str, None]] + archived: NotRequired[bool] -__all__ = ("ProjectsColumnsCardsCardIdMovesPostBodyType",) +__all__ = ("ProjectsColumnsCardsCardIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0864.py b/githubkit/versions/v2022_11_28/types/group_0864.py index 7c136f63a..6ae64aa6a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0864.py +++ b/githubkit/versions/v2022_11_28/types/group_0864.py @@ -9,11 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class ProjectsColumnsCardsCardIdMovesPostResponse201Type(TypedDict): - """ProjectsColumnsCardsCardIdMovesPostResponse201""" +class ProjectsColumnsCardsCardIdMovesPostBodyType(TypedDict): + """ProjectsColumnsCardsCardIdMovesPostBody""" + position: str + column_id: NotRequired[int] -__all__ = ("ProjectsColumnsCardsCardIdMovesPostResponse201Type",) + +__all__ = ("ProjectsColumnsCardsCardIdMovesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0865.py b/githubkit/versions/v2022_11_28/types/group_0865.py index dd0f1fcf5..7c136f63a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0865.py +++ b/githubkit/versions/v2022_11_28/types/group_0865.py @@ -9,30 +9,11 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ProjectsColumnsCardsCardIdMovesPostResponse403Type(TypedDict): - """ProjectsColumnsCardsCardIdMovesPostResponse403""" +class ProjectsColumnsCardsCardIdMovesPostResponse201Type(TypedDict): + """ProjectsColumnsCardsCardIdMovesPostResponse201""" - message: NotRequired[str] - documentation_url: NotRequired[str] - errors: NotRequired[ - List[ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType] - ] - -class ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType(TypedDict): - """ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems""" - - code: NotRequired[str] - message: NotRequired[str] - resource: NotRequired[str] - field: NotRequired[str] - - -__all__ = ( - "ProjectsColumnsCardsCardIdMovesPostResponse403Type", - "ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType", -) +__all__ = ("ProjectsColumnsCardsCardIdMovesPostResponse201Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0866.py b/githubkit/versions/v2022_11_28/types/group_0866.py index b4b6ae8c8..dd0f1fcf5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0866.py +++ b/githubkit/versions/v2022_11_28/types/group_0866.py @@ -13,25 +13,26 @@ from typing_extensions import TypedDict, NotRequired -class ProjectsColumnsCardsCardIdMovesPostResponse503Type(TypedDict): - """ProjectsColumnsCardsCardIdMovesPostResponse503""" +class ProjectsColumnsCardsCardIdMovesPostResponse403Type(TypedDict): + """ProjectsColumnsCardsCardIdMovesPostResponse403""" - code: NotRequired[str] message: NotRequired[str] documentation_url: NotRequired[str] errors: NotRequired[ - List[ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType] + List[ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType] ] -class ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType(TypedDict): - """ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems""" +class ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType(TypedDict): + """ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems""" code: NotRequired[str] message: NotRequired[str] + resource: NotRequired[str] + field: NotRequired[str] __all__ = ( - "ProjectsColumnsCardsCardIdMovesPostResponse503Type", - "ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType", + "ProjectsColumnsCardsCardIdMovesPostResponse403Type", + "ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0867.py b/githubkit/versions/v2022_11_28/types/group_0867.py index 62ebaaaef..b4b6ae8c8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0867.py +++ b/githubkit/versions/v2022_11_28/types/group_0867.py @@ -9,13 +9,29 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import List +from typing_extensions import TypedDict, NotRequired -class ProjectsColumnsColumnIdPatchBodyType(TypedDict): - """ProjectsColumnsColumnIdPatchBody""" +class ProjectsColumnsCardsCardIdMovesPostResponse503Type(TypedDict): + """ProjectsColumnsCardsCardIdMovesPostResponse503""" - name: str + code: NotRequired[str] + message: NotRequired[str] + documentation_url: NotRequired[str] + errors: NotRequired[ + List[ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType] + ] -__all__ = ("ProjectsColumnsColumnIdPatchBodyType",) +class ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType(TypedDict): + """ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems""" + + code: NotRequired[str] + message: NotRequired[str] + + +__all__ = ( + "ProjectsColumnsCardsCardIdMovesPostResponse503Type", + "ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0868.py b/githubkit/versions/v2022_11_28/types/group_0868.py index 1fdc1bf2e..62ebaaaef 100644 --- a/githubkit/versions/v2022_11_28/types/group_0868.py +++ b/githubkit/versions/v2022_11_28/types/group_0868.py @@ -9,14 +9,13 @@ from __future__ import annotations -from typing import Union from typing_extensions import TypedDict -class ProjectsColumnsColumnIdCardsPostBodyOneof0Type(TypedDict): - """ProjectsColumnsColumnIdCardsPostBodyOneof0""" +class ProjectsColumnsColumnIdPatchBodyType(TypedDict): + """ProjectsColumnsColumnIdPatchBody""" - note: Union[str, None] + name: str -__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof0Type",) +__all__ = ("ProjectsColumnsColumnIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0869.py b/githubkit/versions/v2022_11_28/types/group_0869.py index 93c271e2e..1fdc1bf2e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0869.py +++ b/githubkit/versions/v2022_11_28/types/group_0869.py @@ -9,14 +9,14 @@ from __future__ import annotations +from typing import Union from typing_extensions import TypedDict -class ProjectsColumnsColumnIdCardsPostBodyOneof1Type(TypedDict): - """ProjectsColumnsColumnIdCardsPostBodyOneof1""" +class ProjectsColumnsColumnIdCardsPostBodyOneof0Type(TypedDict): + """ProjectsColumnsColumnIdCardsPostBodyOneof0""" - content_id: int - content_type: str + note: Union[str, None] -__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof1Type",) +__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0870.py b/githubkit/versions/v2022_11_28/types/group_0870.py index ff00e5f62..93c271e2e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0870.py +++ b/githubkit/versions/v2022_11_28/types/group_0870.py @@ -9,29 +9,14 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ProjectsColumnsColumnIdCardsPostResponse503Type(TypedDict): - """ProjectsColumnsColumnIdCardsPostResponse503""" +class ProjectsColumnsColumnIdCardsPostBodyOneof1Type(TypedDict): + """ProjectsColumnsColumnIdCardsPostBodyOneof1""" - code: NotRequired[str] - message: NotRequired[str] - documentation_url: NotRequired[str] - errors: NotRequired[ - List[ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType] - ] + content_id: int + content_type: str -class ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType(TypedDict): - """ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems""" - - code: NotRequired[str] - message: NotRequired[str] - - -__all__ = ( - "ProjectsColumnsColumnIdCardsPostResponse503Type", - "ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType", -) +__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0871.py b/githubkit/versions/v2022_11_28/types/group_0871.py index 1eee63273..ff00e5f62 100644 --- a/githubkit/versions/v2022_11_28/types/group_0871.py +++ b/githubkit/versions/v2022_11_28/types/group_0871.py @@ -9,13 +9,29 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import List +from typing_extensions import TypedDict, NotRequired -class ProjectsColumnsColumnIdMovesPostBodyType(TypedDict): - """ProjectsColumnsColumnIdMovesPostBody""" +class ProjectsColumnsColumnIdCardsPostResponse503Type(TypedDict): + """ProjectsColumnsColumnIdCardsPostResponse503""" - position: str + code: NotRequired[str] + message: NotRequired[str] + documentation_url: NotRequired[str] + errors: NotRequired[ + List[ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType] + ] -__all__ = ("ProjectsColumnsColumnIdMovesPostBodyType",) +class ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType(TypedDict): + """ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems""" + + code: NotRequired[str] + message: NotRequired[str] + + +__all__ = ( + "ProjectsColumnsColumnIdCardsPostResponse503Type", + "ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0872.py b/githubkit/versions/v2022_11_28/types/group_0872.py index 7df563c61..1eee63273 100644 --- a/githubkit/versions/v2022_11_28/types/group_0872.py +++ b/githubkit/versions/v2022_11_28/types/group_0872.py @@ -12,8 +12,10 @@ from typing_extensions import TypedDict -class ProjectsColumnsColumnIdMovesPostResponse201Type(TypedDict): - """ProjectsColumnsColumnIdMovesPostResponse201""" +class ProjectsColumnsColumnIdMovesPostBodyType(TypedDict): + """ProjectsColumnsColumnIdMovesPostBody""" + position: str -__all__ = ("ProjectsColumnsColumnIdMovesPostResponse201Type",) + +__all__ = ("ProjectsColumnsColumnIdMovesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0873.py b/githubkit/versions/v2022_11_28/types/group_0873.py index 9109dd1f5..7df563c61 100644 --- a/githubkit/versions/v2022_11_28/types/group_0873.py +++ b/githubkit/versions/v2022_11_28/types/group_0873.py @@ -9,16 +9,11 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ProjectsProjectIdDeleteResponse403Type(TypedDict): - """ProjectsProjectIdDeleteResponse403""" +class ProjectsColumnsColumnIdMovesPostResponse201Type(TypedDict): + """ProjectsColumnsColumnIdMovesPostResponse201""" - message: NotRequired[str] - documentation_url: NotRequired[str] - errors: NotRequired[List[str]] - -__all__ = ("ProjectsProjectIdDeleteResponse403Type",) +__all__ = ("ProjectsColumnsColumnIdMovesPostResponse201Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0874.py b/githubkit/versions/v2022_11_28/types/group_0874.py index c0a6113f3..9109dd1f5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0874.py +++ b/githubkit/versions/v2022_11_28/types/group_0874.py @@ -9,18 +9,16 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List from typing_extensions import TypedDict, NotRequired -class ProjectsProjectIdPatchBodyType(TypedDict): - """ProjectsProjectIdPatchBody""" +class ProjectsProjectIdDeleteResponse403Type(TypedDict): + """ProjectsProjectIdDeleteResponse403""" - 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[str]] -__all__ = ("ProjectsProjectIdPatchBodyType",) +__all__ = ("ProjectsProjectIdDeleteResponse403Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0875.py b/githubkit/versions/v2022_11_28/types/group_0875.py index 86724eccf..c0a6113f3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0875.py +++ b/githubkit/versions/v2022_11_28/types/group_0875.py @@ -9,16 +9,18 @@ from __future__ import annotations -from typing import List +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -class ProjectsProjectIdPatchResponse403Type(TypedDict): - """ProjectsProjectIdPatchResponse403""" +class ProjectsProjectIdPatchBodyType(TypedDict): + """ProjectsProjectIdPatchBody""" - message: NotRequired[str] - documentation_url: NotRequired[str] - errors: NotRequired[List[str]] + name: NotRequired[str] + body: NotRequired[Union[str, None]] + state: NotRequired[str] + organization_permission: NotRequired[Literal["read", "write", "admin", "none"]] + private: NotRequired[bool] -__all__ = ("ProjectsProjectIdPatchResponse403Type",) +__all__ = ("ProjectsProjectIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0876.py b/githubkit/versions/v2022_11_28/types/group_0876.py index 42de766b0..86724eccf 100644 --- a/githubkit/versions/v2022_11_28/types/group_0876.py +++ b/githubkit/versions/v2022_11_28/types/group_0876.py @@ -9,14 +9,16 @@ from __future__ import annotations -from typing import Literal +from typing import List from typing_extensions import TypedDict, NotRequired -class ProjectsProjectIdCollaboratorsUsernamePutBodyType(TypedDict): - """ProjectsProjectIdCollaboratorsUsernamePutBody""" +class ProjectsProjectIdPatchResponse403Type(TypedDict): + """ProjectsProjectIdPatchResponse403""" - permission: NotRequired[Literal["read", "write", "admin"]] + message: NotRequired[str] + documentation_url: NotRequired[str] + errors: NotRequired[List[str]] -__all__ = ("ProjectsProjectIdCollaboratorsUsernamePutBodyType",) +__all__ = ("ProjectsProjectIdPatchResponse403Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0877.py b/githubkit/versions/v2022_11_28/types/group_0877.py index 8c02d8953..42de766b0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0877.py +++ b/githubkit/versions/v2022_11_28/types/group_0877.py @@ -9,13 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import TypedDict, NotRequired -class ProjectsProjectIdColumnsPostBodyType(TypedDict): - """ProjectsProjectIdColumnsPostBody""" +class ProjectsProjectIdCollaboratorsUsernamePutBodyType(TypedDict): + """ProjectsProjectIdCollaboratorsUsernamePutBody""" - name: str + permission: NotRequired[Literal["read", "write", "admin"]] -__all__ = ("ProjectsProjectIdColumnsPostBodyType",) +__all__ = ("ProjectsProjectIdCollaboratorsUsernamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0878.py b/githubkit/versions/v2022_11_28/types/group_0878.py index f63d55222..8c02d8953 100644 --- a/githubkit/versions/v2022_11_28/types/group_0878.py +++ b/githubkit/versions/v2022_11_28/types/group_0878.py @@ -9,14 +9,13 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ReposOwnerRepoDeleteResponse403Type(TypedDict): - """ReposOwnerRepoDeleteResponse403""" +class ProjectsProjectIdColumnsPostBodyType(TypedDict): + """ProjectsProjectIdColumnsPostBody""" - message: NotRequired[str] - documentation_url: NotRequired[str] + name: str -__all__ = ("ReposOwnerRepoDeleteResponse403Type",) +__all__ = ("ProjectsProjectIdColumnsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0879.py b/githubkit/versions/v2022_11_28/types/group_0879.py index 2d5f66d33..f63d55222 100644 --- a/githubkit/versions/v2022_11_28/types/group_0879.py +++ b/githubkit/versions/v2022_11_28/types/group_0879.py @@ -9,135 +9,14 @@ from __future__ import annotations -from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoPatchBodyType(TypedDict): - """ReposOwnerRepoPatchBody""" +class ReposOwnerRepoDeleteResponse403Type(TypedDict): + """ReposOwnerRepoDeleteResponse403""" - 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] + message: NotRequired[str] + documentation_url: NotRequired[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/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 - ] - secret_scanning: NotRequired[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType - ] - secret_scanning_push_protection: NotRequired[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType - ] - 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 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 ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatternsType( - TypedDict -): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatte - rns - - Use the `status` property to enable or disable secret scanning non-provider - patterns for this repository. For more information, see "[Secret scanning - supported secrets](/code-security/secret-scanning/secret-scanning- - patterns#supported-secrets)." - """ - - status: NotRequired[str] - - -__all__ = ( - "ReposOwnerRepoPatchBodyType", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatternsType", -) +__all__ = ("ReposOwnerRepoDeleteResponse403Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0880.py b/githubkit/versions/v2022_11_28/types/group_0880.py index 461bdbfb1..2d5f66d33 100644 --- a/githubkit/versions/v2022_11_28/types/group_0880.py +++ b/githubkit/versions/v2022_11_28/types/group_0880.py @@ -9,17 +9,135 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import Union, Literal +from typing_extensions import TypedDict, NotRequired -from .group_0161 import ArtifactType +class ReposOwnerRepoPatchBodyType(TypedDict): + """ReposOwnerRepoPatchBody""" -class ReposOwnerRepoActionsArtifactsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsArtifactsGetResponse200""" + 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] - total_count: int - artifacts: List[ArtifactType] +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType(TypedDict): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysis -__all__ = ("ReposOwnerRepoActionsArtifactsGetResponse200Type",) + 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 + ] + secret_scanning: NotRequired[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType + ] + secret_scanning_push_protection: NotRequired[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType + ] + 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 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 ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatternsType( + TypedDict +): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatte + rns + + Use the `status` property to enable or disable secret scanning non-provider + patterns for this repository. For more information, see "[Secret scanning + supported secrets](/code-security/secret-scanning/secret-scanning- + patterns#supported-secrets)." + """ + + status: NotRequired[str] + + +__all__ = ( + "ReposOwnerRepoPatchBodyType", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatternsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0881.py b/githubkit/versions/v2022_11_28/types/group_0881.py index 2956c520b..461bdbfb1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0881.py +++ b/githubkit/versions/v2022_11_28/types/group_0881.py @@ -9,13 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict +from .group_0161 import ArtifactType -class ReposOwnerRepoActionsJobsJobIdRerunPostBodyType(TypedDict): - """ReposOwnerRepoActionsJobsJobIdRerunPostBody""" - enable_debug_logging: NotRequired[bool] +class ReposOwnerRepoActionsArtifactsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsArtifactsGetResponse200""" + total_count: int + artifacts: List[ArtifactType] -__all__ = ("ReposOwnerRepoActionsJobsJobIdRerunPostBodyType",) + +__all__ = ("ReposOwnerRepoActionsArtifactsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0882.py b/githubkit/versions/v2022_11_28/types/group_0882.py index 47a8c99be..2956c520b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0882.py +++ b/githubkit/versions/v2022_11_28/types/group_0882.py @@ -9,18 +9,13 @@ from __future__ import annotations -from typing import List from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoActionsOidcCustomizationSubPutBodyType(TypedDict): - """Actions OIDC subject customization for a repository +class ReposOwnerRepoActionsJobsJobIdRerunPostBodyType(TypedDict): + """ReposOwnerRepoActionsJobsJobIdRerunPostBody""" - Actions OIDC subject customization for a repository - """ + enable_debug_logging: NotRequired[bool] - use_default: bool - include_claim_keys: NotRequired[List[str]] - -__all__ = ("ReposOwnerRepoActionsOidcCustomizationSubPutBodyType",) +__all__ = ("ReposOwnerRepoActionsJobsJobIdRerunPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0883.py b/githubkit/versions/v2022_11_28/types/group_0883.py index 5b4834926..47a8c99be 100644 --- a/githubkit/versions/v2022_11_28/types/group_0883.py +++ b/githubkit/versions/v2022_11_28/types/group_0883.py @@ -10,16 +10,17 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0165 import ActionsSecretType +class ReposOwnerRepoActionsOidcCustomizationSubPutBodyType(TypedDict): + """Actions OIDC subject customization for a repository -class ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsOrganizationSecretsGetResponse200""" + Actions OIDC subject customization for a repository + """ - total_count: int - secrets: List[ActionsSecretType] + use_default: bool + include_claim_keys: NotRequired[List[str]] -__all__ = ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type",) +__all__ = ("ReposOwnerRepoActionsOidcCustomizationSubPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0884.py b/githubkit/versions/v2022_11_28/types/group_0884.py index c26dd2053..5b4834926 100644 --- a/githubkit/versions/v2022_11_28/types/group_0884.py +++ b/githubkit/versions/v2022_11_28/types/group_0884.py @@ -12,14 +12,14 @@ from typing import List from typing_extensions import TypedDict -from .group_0166 import ActionsVariableType +from .group_0165 import ActionsSecretType -class ReposOwnerRepoActionsOrganizationVariablesGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsOrganizationVariablesGetResponse200""" +class ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsOrganizationSecretsGetResponse200""" total_count: int - variables: List[ActionsVariableType] + secrets: List[ActionsSecretType] -__all__ = ("ReposOwnerRepoActionsOrganizationVariablesGetResponse200Type",) +__all__ = ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0885.py b/githubkit/versions/v2022_11_28/types/group_0885.py index a82dcbc99..c26dd2053 100644 --- a/githubkit/versions/v2022_11_28/types/group_0885.py +++ b/githubkit/versions/v2022_11_28/types/group_0885.py @@ -9,15 +9,17 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict +from .group_0166 import ActionsVariableType -class ReposOwnerRepoActionsPermissionsPutBodyType(TypedDict): - """ReposOwnerRepoActionsPermissionsPutBody""" - enabled: bool - allowed_actions: NotRequired[Literal["all", "local_only", "selected"]] +class ReposOwnerRepoActionsOrganizationVariablesGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsOrganizationVariablesGetResponse200""" + total_count: int + variables: List[ActionsVariableType] -__all__ = ("ReposOwnerRepoActionsPermissionsPutBodyType",) + +__all__ = ("ReposOwnerRepoActionsOrganizationVariablesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0886.py b/githubkit/versions/v2022_11_28/types/group_0886.py index fc095dd13..a82dcbc99 100644 --- a/githubkit/versions/v2022_11_28/types/group_0886.py +++ b/githubkit/versions/v2022_11_28/types/group_0886.py @@ -9,17 +9,15 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import TypedDict, NotRequired -from .group_0066 import RunnerType +class ReposOwnerRepoActionsPermissionsPutBodyType(TypedDict): + """ReposOwnerRepoActionsPermissionsPutBody""" -class ReposOwnerRepoActionsRunnersGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsRunnersGetResponse200""" + enabled: bool + allowed_actions: NotRequired[Literal["all", "local_only", "selected"]] - total_count: int - runners: List[RunnerType] - -__all__ = ("ReposOwnerRepoActionsRunnersGetResponse200Type",) +__all__ = ("ReposOwnerRepoActionsPermissionsPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0887.py b/githubkit/versions/v2022_11_28/types/group_0887.py index 97ef4a4a4..fc095dd13 100644 --- a/githubkit/versions/v2022_11_28/types/group_0887.py +++ b/githubkit/versions/v2022_11_28/types/group_0887.py @@ -10,16 +10,16 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict +from .group_0066 import RunnerType -class ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType(TypedDict): - """ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody""" - name: str - runner_group_id: int - labels: List[str] - work_folder: NotRequired[str] +class ReposOwnerRepoActionsRunnersGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsRunnersGetResponse200""" + total_count: int + runners: List[RunnerType] -__all__ = ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType",) + +__all__ = ("ReposOwnerRepoActionsRunnersGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0888.py b/githubkit/versions/v2022_11_28/types/group_0888.py index cfeabe90a..97ef4a4a4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0888.py +++ b/githubkit/versions/v2022_11_28/types/group_0888.py @@ -10,13 +10,16 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType(TypedDict): - """ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody""" +class ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType(TypedDict): + """ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody""" + name: str + runner_group_id: int labels: List[str] + work_folder: NotRequired[str] -__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType",) +__all__ = ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0889.py b/githubkit/versions/v2022_11_28/types/group_0889.py index 1162ab0c2..cfeabe90a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0889.py +++ b/githubkit/versions/v2022_11_28/types/group_0889.py @@ -13,10 +13,10 @@ from typing_extensions import TypedDict -class ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType(TypedDict): - """ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody""" +class ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType(TypedDict): + """ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody""" labels: List[str] -__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType",) +__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0890.py b/githubkit/versions/v2022_11_28/types/group_0890.py index ea89de642..1162ab0c2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0890.py +++ b/githubkit/versions/v2022_11_28/types/group_0890.py @@ -12,14 +12,11 @@ from typing import List from typing_extensions import TypedDict -from .group_0171 import WorkflowRunType +class ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType(TypedDict): + """ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody""" -class ReposOwnerRepoActionsRunsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsRunsGetResponse200""" + labels: List[str] - total_count: int - workflow_runs: List[WorkflowRunType] - -__all__ = ("ReposOwnerRepoActionsRunsGetResponse200Type",) +__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0891.py b/githubkit/versions/v2022_11_28/types/group_0891.py index 97b33e796..ea89de642 100644 --- a/githubkit/versions/v2022_11_28/types/group_0891.py +++ b/githubkit/versions/v2022_11_28/types/group_0891.py @@ -12,14 +12,14 @@ from typing import List from typing_extensions import TypedDict -from .group_0161 import ArtifactType +from .group_0171 import WorkflowRunType -class ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200""" +class ReposOwnerRepoActionsRunsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsRunsGetResponse200""" total_count: int - artifacts: List[ArtifactType] + workflow_runs: List[WorkflowRunType] -__all__ = ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type",) +__all__ = ("ReposOwnerRepoActionsRunsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0892.py b/githubkit/versions/v2022_11_28/types/group_0892.py index e6a36c802..97b33e796 100644 --- a/githubkit/versions/v2022_11_28/types/group_0892.py +++ b/githubkit/versions/v2022_11_28/types/group_0892.py @@ -12,16 +12,14 @@ from typing import List from typing_extensions import TypedDict -from .group_0163 import JobType +from .group_0161 import ArtifactType -class ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200Type( - TypedDict -): - """ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200""" +class ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200""" total_count: int - jobs: List[JobType] + artifacts: List[ArtifactType] -__all__ = ("ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200Type",) +__all__ = ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0893.py b/githubkit/versions/v2022_11_28/types/group_0893.py index 1d350fefe..e6a36c802 100644 --- a/githubkit/versions/v2022_11_28/types/group_0893.py +++ b/githubkit/versions/v2022_11_28/types/group_0893.py @@ -15,11 +15,13 @@ from .group_0163 import JobType -class ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsRunsRunIdJobsGetResponse200""" +class ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200Type( + TypedDict +): + """ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200""" total_count: int jobs: List[JobType] -__all__ = ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type",) +__all__ = ("ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0894.py b/githubkit/versions/v2022_11_28/types/group_0894.py index 88fd8a6dd..1d350fefe 100644 --- a/githubkit/versions/v2022_11_28/types/group_0894.py +++ b/githubkit/versions/v2022_11_28/types/group_0894.py @@ -9,16 +9,17 @@ from __future__ import annotations -from typing import List, Literal +from typing import List from typing_extensions import TypedDict +from .group_0163 import JobType -class ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBodyType(TypedDict): - """ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody""" - environment_ids: List[int] - state: Literal["approved", "rejected"] - comment: str +class ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsRunsRunIdJobsGetResponse200""" + total_count: int + jobs: List[JobType] -__all__ = ("ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBodyType",) + +__all__ = ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0895.py b/githubkit/versions/v2022_11_28/types/group_0895.py index c33d4529b..88fd8a6dd 100644 --- a/githubkit/versions/v2022_11_28/types/group_0895.py +++ b/githubkit/versions/v2022_11_28/types/group_0895.py @@ -9,13 +9,16 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing import List, Literal +from typing_extensions import TypedDict -class ReposOwnerRepoActionsRunsRunIdRerunPostBodyType(TypedDict): - """ReposOwnerRepoActionsRunsRunIdRerunPostBody""" +class ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBodyType(TypedDict): + """ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody""" - enable_debug_logging: NotRequired[bool] + environment_ids: List[int] + state: Literal["approved", "rejected"] + comment: str -__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunPostBodyType",) +__all__ = ("ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0896.py b/githubkit/versions/v2022_11_28/types/group_0896.py index 1160daba0..c33d4529b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0896.py +++ b/githubkit/versions/v2022_11_28/types/group_0896.py @@ -12,10 +12,10 @@ from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType(TypedDict): - """ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody""" +class ReposOwnerRepoActionsRunsRunIdRerunPostBodyType(TypedDict): + """ReposOwnerRepoActionsRunsRunIdRerunPostBody""" enable_debug_logging: NotRequired[bool] -__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType",) +__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0897.py b/githubkit/versions/v2022_11_28/types/group_0897.py index 73cc61927..1160daba0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0897.py +++ b/githubkit/versions/v2022_11_28/types/group_0897.py @@ -9,17 +9,13 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0165 import ActionsSecretType +class ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType(TypedDict): + """ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody""" -class ReposOwnerRepoActionsSecretsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsSecretsGetResponse200""" + enable_debug_logging: NotRequired[bool] - total_count: int - secrets: List[ActionsSecretType] - -__all__ = ("ReposOwnerRepoActionsSecretsGetResponse200Type",) +__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0898.py b/githubkit/versions/v2022_11_28/types/group_0898.py index c1ad71389..73cc61927 100644 --- a/githubkit/versions/v2022_11_28/types/group_0898.py +++ b/githubkit/versions/v2022_11_28/types/group_0898.py @@ -9,14 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict +from .group_0165 import ActionsSecretType -class ReposOwnerRepoActionsSecretsSecretNamePutBodyType(TypedDict): - """ReposOwnerRepoActionsSecretsSecretNamePutBody""" - encrypted_value: NotRequired[str] - key_id: NotRequired[str] +class ReposOwnerRepoActionsSecretsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsSecretsGetResponse200""" + total_count: int + secrets: List[ActionsSecretType] -__all__ = ("ReposOwnerRepoActionsSecretsSecretNamePutBodyType",) + +__all__ = ("ReposOwnerRepoActionsSecretsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0899.py b/githubkit/versions/v2022_11_28/types/group_0899.py index aba604319..c1ad71389 100644 --- a/githubkit/versions/v2022_11_28/types/group_0899.py +++ b/githubkit/versions/v2022_11_28/types/group_0899.py @@ -9,17 +9,14 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0166 import ActionsVariableType +class ReposOwnerRepoActionsSecretsSecretNamePutBodyType(TypedDict): + """ReposOwnerRepoActionsSecretsSecretNamePutBody""" -class ReposOwnerRepoActionsVariablesGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsVariablesGetResponse200""" + encrypted_value: NotRequired[str] + key_id: NotRequired[str] - total_count: int - variables: List[ActionsVariableType] - -__all__ = ("ReposOwnerRepoActionsVariablesGetResponse200Type",) +__all__ = ("ReposOwnerRepoActionsSecretsSecretNamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0900.py b/githubkit/versions/v2022_11_28/types/group_0900.py index a5b1bcda1..aba604319 100644 --- a/githubkit/versions/v2022_11_28/types/group_0900.py +++ b/githubkit/versions/v2022_11_28/types/group_0900.py @@ -9,14 +9,17 @@ from __future__ import annotations +from typing import List from typing_extensions import TypedDict +from .group_0166 import ActionsVariableType -class ReposOwnerRepoActionsVariablesPostBodyType(TypedDict): - """ReposOwnerRepoActionsVariablesPostBody""" - name: str - value: str +class ReposOwnerRepoActionsVariablesGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsVariablesGetResponse200""" + total_count: int + variables: List[ActionsVariableType] -__all__ = ("ReposOwnerRepoActionsVariablesPostBodyType",) + +__all__ = ("ReposOwnerRepoActionsVariablesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0901.py b/githubkit/versions/v2022_11_28/types/group_0901.py index ad7d7d522..a5b1bcda1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0901.py +++ b/githubkit/versions/v2022_11_28/types/group_0901.py @@ -9,14 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ReposOwnerRepoActionsVariablesNamePatchBodyType(TypedDict): - """ReposOwnerRepoActionsVariablesNamePatchBody""" +class ReposOwnerRepoActionsVariablesPostBodyType(TypedDict): + """ReposOwnerRepoActionsVariablesPostBody""" - name: NotRequired[str] - value: NotRequired[str] + name: str + value: str -__all__ = ("ReposOwnerRepoActionsVariablesNamePatchBodyType",) +__all__ = ("ReposOwnerRepoActionsVariablesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0902.py b/githubkit/versions/v2022_11_28/types/group_0902.py index 20e7c3509..ad7d7d522 100644 --- a/githubkit/versions/v2022_11_28/types/group_0902.py +++ b/githubkit/versions/v2022_11_28/types/group_0902.py @@ -9,40 +9,14 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoActionsWorkflowsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsWorkflowsGetResponse200""" +class ReposOwnerRepoActionsVariablesNamePatchBodyType(TypedDict): + """ReposOwnerRepoActionsVariablesNamePatchBody""" - total_count: int - workflows: List[WorkflowType] + name: NotRequired[str] + value: NotRequired[str] -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", -) +__all__ = ("ReposOwnerRepoActionsVariablesNamePatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0903.py b/githubkit/versions/v2022_11_28/types/group_0903.py index 08a15748d..20e7c3509 100644 --- a/githubkit/versions/v2022_11_28/types/group_0903.py +++ b/githubkit/versions/v2022_11_28/types/group_0903.py @@ -9,30 +9,40 @@ from __future__ import annotations +from datetime import datetime +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyType(TypedDict): - """ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody""" +class ReposOwnerRepoActionsWorkflowsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsWorkflowsGetResponse200""" - ref: str - inputs: NotRequired[ - ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType - ] + total_count: int + workflows: List[WorkflowType] -class ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType( - TypedDict -): - """ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs +class WorkflowType(TypedDict): + """Workflow - 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. + 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__ = ( - "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyType", - "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType", + "ReposOwnerRepoActionsWorkflowsGetResponse200Type", + "WorkflowType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0904.py b/githubkit/versions/v2022_11_28/types/group_0904.py index 0cc7b52e3..08a15748d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0904.py +++ b/githubkit/versions/v2022_11_28/types/group_0904.py @@ -9,17 +9,30 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0171 import WorkflowRunType +class ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyType(TypedDict): + """ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody""" -class ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200""" + ref: str + inputs: NotRequired[ + ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType + ] - total_count: int - workflow_runs: List[WorkflowRunType] +class ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType( + TypedDict +): + """ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs -__all__ = ("ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200Type",) + 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__ = ( + "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyType", + "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0905.py b/githubkit/versions/v2022_11_28/types/group_0905.py index 12bc802f9..0cc7b52e3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0905.py +++ b/githubkit/versions/v2022_11_28/types/group_0905.py @@ -9,46 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict +from .group_0171 import WorkflowRunType -class ReposOwnerRepoAttestationsPostBodyType(TypedDict): - """ReposOwnerRepoAttestationsPostBody""" - bundle: ReposOwnerRepoAttestationsPostBodyPropBundleType +class ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200""" + total_count: int + workflow_runs: List[WorkflowRunType] -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 - ] - - -class ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterialType( - TypedDict -): - """ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial""" - - -class ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelopeType(TypedDict): - """ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope""" - - -__all__ = ( - "ReposOwnerRepoAttestationsPostBodyType", - "ReposOwnerRepoAttestationsPostBodyPropBundleType", - "ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterialType", - "ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelopeType", -) +__all__ = ("ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0906.py b/githubkit/versions/v2022_11_28/types/group_0906.py index 65a2e6e51..12bc802f9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0906.py +++ b/githubkit/versions/v2022_11_28/types/group_0906.py @@ -12,10 +12,43 @@ from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoAttestationsPostResponse201Type(TypedDict): - """ReposOwnerRepoAttestationsPostResponse201""" +class ReposOwnerRepoAttestationsPostBodyType(TypedDict): + """ReposOwnerRepoAttestationsPostBody""" - id: NotRequired[int] + bundle: ReposOwnerRepoAttestationsPostBodyPropBundleType -__all__ = ("ReposOwnerRepoAttestationsPostResponse201Type",) +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 + ] + + +class ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterialType( + TypedDict +): + """ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial""" + + +class ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelopeType(TypedDict): + """ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope""" + + +__all__ = ( + "ReposOwnerRepoAttestationsPostBodyType", + "ReposOwnerRepoAttestationsPostBodyPropBundleType", + "ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterialType", + "ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelopeType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0907.py b/githubkit/versions/v2022_11_28/types/group_0907.py index dcefb1572..65a2e6e51 100644 --- a/githubkit/versions/v2022_11_28/types/group_0907.py +++ b/githubkit/versions/v2022_11_28/types/group_0907.py @@ -9,72 +9,13 @@ from __future__ import annotations -from typing import List from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoAttestationsSubjectDigestGetResponse200Type(TypedDict): - """ReposOwnerRepoAttestationsSubjectDigestGetResponse200""" +class ReposOwnerRepoAttestationsPostResponse201Type(TypedDict): + """ReposOwnerRepoAttestationsPostResponse201""" - attestations: NotRequired[ - List[ - ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsType - ] - ] + id: NotRequired[int] -class ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsType( - TypedDict -): - """ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems""" - - bundle: NotRequired[ - ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType - ] - repository_id: NotRequired[int] - - -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 - ] - - -class ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType( - TypedDict -): - """ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBu - ndlePropVerificationMaterial - """ - - -class ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType( - TypedDict -): - """ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBu - ndlePropDsseEnvelope - """ - - -__all__ = ( - "ReposOwnerRepoAttestationsSubjectDigestGetResponse200Type", - "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsType", - "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType", - "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType", - "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType", -) +__all__ = ("ReposOwnerRepoAttestationsPostResponse201Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0908.py b/githubkit/versions/v2022_11_28/types/group_0908.py index a77eacf3e..dcefb1572 100644 --- a/githubkit/versions/v2022_11_28/types/group_0908.py +++ b/githubkit/versions/v2022_11_28/types/group_0908.py @@ -9,15 +9,72 @@ from __future__ import annotations +from typing import List from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoAutolinksPostBodyType(TypedDict): - """ReposOwnerRepoAutolinksPostBody""" +class ReposOwnerRepoAttestationsSubjectDigestGetResponse200Type(TypedDict): + """ReposOwnerRepoAttestationsSubjectDigestGetResponse200""" - key_prefix: str - url_template: str - is_alphanumeric: NotRequired[bool] + attestations: NotRequired[ + List[ + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsType + ] + ] -__all__ = ("ReposOwnerRepoAutolinksPostBodyType",) +class ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsType( + TypedDict +): + """ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems""" + + bundle: NotRequired[ + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType + ] + repository_id: NotRequired[int] + + +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 + ] + + +class ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType( + TypedDict +): + """ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBu + ndlePropVerificationMaterial + """ + + +class ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType( + TypedDict +): + """ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBu + ndlePropDsseEnvelope + """ + + +__all__ = ( + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200Type", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsType", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0909.py b/githubkit/versions/v2022_11_28/types/group_0909.py index 5daf56489..a77eacf3e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0909.py +++ b/githubkit/versions/v2022_11_28/types/group_0909.py @@ -9,132 +9,15 @@ from __future__ import annotations -from typing import List, Union from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoBranchesBranchProtectionPutBodyType(TypedDict): - """ReposOwnerRepoBranchesBranchProtectionPutBody""" +class ReposOwnerRepoAutolinksPostBodyType(TypedDict): + """ReposOwnerRepoAutolinksPostBody""" - 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] + key_prefix: str + url_template: str + is_alphanumeric: 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 -): - """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__ = ( - "ReposOwnerRepoBranchesBranchProtectionPutBodyType", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksType", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItemsType", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsType", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictionsType", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictionsType", -) +__all__ = ("ReposOwnerRepoAutolinksPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0910.py b/githubkit/versions/v2022_11_28/types/group_0910.py index d51a66b7c..5daf56489 100644 --- a/githubkit/versions/v2022_11_28/types/group_0910.py +++ b/githubkit/versions/v2022_11_28/types/group_0910.py @@ -9,32 +9,87 @@ from __future__ import annotations -from typing import List +from typing import List, Union from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyType( +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 ): - """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody""" + """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[ - ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType + 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[ - ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType ] -class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType( +class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictionsType( TypedDict ): - """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDis - missalRestrictions + """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropD + ismissalRestrictions Specify which users, teams, and apps can dismiss pull request reviews. Pass an empty `dismissal_restrictions` object to disable. User and team @@ -47,11 +102,11 @@ class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyP apps: NotRequired[List[str]] -class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType( +class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType( TypedDict ): - """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropByp - assPullRequestAllowances + """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropB + ypassPullRequestAllowances Allow specific users, teams, or apps to bypass pull request requirements. """ @@ -61,8 +116,25 @@ class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyP 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__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyType", - "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType", - "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType", + "ReposOwnerRepoBranchesBranchProtectionPutBodyType", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksType", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItemsType", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsType", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictionsType", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictionsType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0911.py b/githubkit/versions/v2022_11_28/types/group_0911.py index 39cfa7c56..d51a66b7c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0911.py +++ b/githubkit/versions/v2022_11_28/types/group_0911.py @@ -13,32 +13,56 @@ from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyType( +class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyType( TypedDict ): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody""" - - strict: NotRequired[bool] - contexts: NotRequired[List[str]] - checks: NotRequired[ - List[ - ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType - ] + """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody""" + + 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 ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType( +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 ): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksIte - ms + """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropByp + assPullRequestAllowances + + Allow specific users, teams, or apps to bypass pull request requirements. """ - context: str - app_id: NotRequired[int] + users: NotRequired[List[str]] + teams: NotRequired[List[str]] + apps: NotRequired[List[str]] __all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyType", - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType", + "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyType", + "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType", + "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0912.py b/githubkit/versions/v2022_11_28/types/group_0912.py index f36c7fdb0..39cfa7c56 100644 --- a/githubkit/versions/v2022_11_28/types/group_0912.py +++ b/githubkit/versions/v2022_11_28/types/group_0912.py @@ -10,21 +10,35 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type( +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyType( TypedDict ): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody""" - Examples: - {'contexts': ['contexts']} + strict: NotRequired[bool] + contexts: NotRequired[List[str]] + checks: NotRequired[ + List[ + ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType + ] + ] + + +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksIte + ms """ - contexts: List[str] + context: str + app_id: NotRequired[int] __all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type", + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyType", + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0913.py b/githubkit/versions/v2022_11_28/types/group_0913.py index b350535de..f36c7fdb0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0913.py +++ b/githubkit/versions/v2022_11_28/types/group_0913.py @@ -13,10 +13,10 @@ from typing_extensions import TypedDict -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0Type( +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type( TypedDict ): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0 + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 Examples: {'contexts': ['contexts']} @@ -26,5 +26,5 @@ class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBody __all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0Type", + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0914.py b/githubkit/versions/v2022_11_28/types/group_0914.py index 2d802b1fa..b350535de 100644 --- a/githubkit/versions/v2022_11_28/types/group_0914.py +++ b/githubkit/versions/v2022_11_28/types/group_0914.py @@ -13,11 +13,10 @@ from typing_extensions import TypedDict -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0Type( +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0Type( TypedDict ): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneo - f0 + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0 Examples: {'contexts': ['contexts']} @@ -27,5 +26,5 @@ class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBo __all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0Type", + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0915.py b/githubkit/versions/v2022_11_28/types/group_0915.py index ad870a329..2d802b1fa 100644 --- a/githubkit/versions/v2022_11_28/types/group_0915.py +++ b/githubkit/versions/v2022_11_28/types/group_0915.py @@ -13,16 +13,19 @@ from typing_extensions import TypedDict -class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0Type( +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0Type( TypedDict ): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0 + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneo + f0 Examples: - {'apps': ['my-app']} + {'contexts': ['contexts']} """ - apps: List[str] + contexts: List[str] -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0Type",) +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0916.py b/githubkit/versions/v2022_11_28/types/group_0916.py index 633ffe55f..ad870a329 100644 --- a/githubkit/versions/v2022_11_28/types/group_0916.py +++ b/githubkit/versions/v2022_11_28/types/group_0916.py @@ -13,10 +13,10 @@ from typing_extensions import TypedDict -class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0Type( +class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0Type( TypedDict ): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0 + """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0 Examples: {'apps': ['my-app']} @@ -25,4 +25,4 @@ class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0Type( apps: List[str] -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0Type",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0917.py b/githubkit/versions/v2022_11_28/types/group_0917.py index 0e54dbe56..633ffe55f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0917.py +++ b/githubkit/versions/v2022_11_28/types/group_0917.py @@ -13,10 +13,10 @@ from typing_extensions import TypedDict -class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0Type( +class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0Type( TypedDict ): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0 + """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0 Examples: {'apps': ['my-app']} @@ -25,6 +25,4 @@ class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0Type apps: List[str] -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0Type", -) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0918.py b/githubkit/versions/v2022_11_28/types/group_0918.py index c8d87b3e2..0e54dbe56 100644 --- a/githubkit/versions/v2022_11_28/types/group_0918.py +++ b/githubkit/versions/v2022_11_28/types/group_0918.py @@ -13,16 +13,18 @@ from typing_extensions import TypedDict -class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0Type( +class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0Type( TypedDict ): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0 + """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0 Examples: - {'teams': ['justice-league']} + {'apps': ['my-app']} """ - teams: List[str] + apps: List[str] -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0Type",) +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0919.py b/githubkit/versions/v2022_11_28/types/group_0919.py index 8ec4d5ff7..c8d87b3e2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0919.py +++ b/githubkit/versions/v2022_11_28/types/group_0919.py @@ -13,16 +13,16 @@ from typing_extensions import TypedDict -class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type( +class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0Type( TypedDict ): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0 + """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0 Examples: - {'teams': ['my-team']} + {'teams': ['justice-league']} """ teams: List[str] -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0920.py b/githubkit/versions/v2022_11_28/types/group_0920.py index 4c0d1741f..8ec4d5ff7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0920.py +++ b/githubkit/versions/v2022_11_28/types/group_0920.py @@ -13,10 +13,10 @@ from typing_extensions import TypedDict -class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Type( +class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type( TypedDict ): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0 + """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0 Examples: {'teams': ['my-team']} @@ -25,6 +25,4 @@ class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Typ teams: List[str] -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Type", -) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0921.py b/githubkit/versions/v2022_11_28/types/group_0921.py index d1f4b8ce2..4c0d1741f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0921.py +++ b/githubkit/versions/v2022_11_28/types/group_0921.py @@ -13,16 +13,18 @@ from typing_extensions import TypedDict -class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0Type( +class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Type( TypedDict ): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0 + """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0 Examples: - {'users': ['mona']} + {'teams': ['my-team']} """ - users: List[str] + teams: List[str] -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0Type",) +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0922.py b/githubkit/versions/v2022_11_28/types/group_0922.py index 26651df87..d1f4b8ce2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0922.py +++ b/githubkit/versions/v2022_11_28/types/group_0922.py @@ -13,10 +13,10 @@ from typing_extensions import TypedDict -class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0Type( +class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0Type( TypedDict ): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0 + """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0 Examples: {'users': ['mona']} @@ -25,4 +25,4 @@ class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0Type( users: List[str] -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0Type",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0923.py b/githubkit/versions/v2022_11_28/types/group_0923.py index 20edcde18..26651df87 100644 --- a/githubkit/versions/v2022_11_28/types/group_0923.py +++ b/githubkit/versions/v2022_11_28/types/group_0923.py @@ -13,10 +13,10 @@ from typing_extensions import TypedDict -class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0Type( +class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0Type( TypedDict ): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0 + """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0 Examples: {'users': ['mona']} @@ -25,6 +25,4 @@ class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0Typ users: List[str] -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0Type", -) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0924.py b/githubkit/versions/v2022_11_28/types/group_0924.py index b46802659..20edcde18 100644 --- a/githubkit/versions/v2022_11_28/types/group_0924.py +++ b/githubkit/versions/v2022_11_28/types/group_0924.py @@ -9,13 +9,22 @@ from __future__ import annotations +from typing import List from typing_extensions import TypedDict -class ReposOwnerRepoBranchesBranchRenamePostBodyType(TypedDict): - """ReposOwnerRepoBranchesBranchRenamePostBody""" +class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0Type( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0 - new_name: str + Examples: + {'users': ['mona']} + """ + users: List[str] -__all__ = ("ReposOwnerRepoBranchesBranchRenamePostBodyType",) + +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0925.py b/githubkit/versions/v2022_11_28/types/group_0925.py index 78164b5f0..b46802659 100644 --- a/githubkit/versions/v2022_11_28/types/group_0925.py +++ b/githubkit/versions/v2022_11_28/types/group_0925.py @@ -9,62 +9,13 @@ from __future__ import annotations -from typing import List, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ReposOwnerRepoCheckRunsPostBodyPropOutputType(TypedDict): - """ReposOwnerRepoCheckRunsPostBodyPropOutput +class ReposOwnerRepoBranchesBranchRenamePostBodyType(TypedDict): + """ReposOwnerRepoBranchesBranchRenamePostBody""" - 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. - """ + new_name: str - title: str - summary: str - text: NotRequired[str] - annotations: NotRequired[ - List[ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType] - ] - images: NotRequired[ - List[ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType] - ] - -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__ = ( - "ReposOwnerRepoCheckRunsPostBodyPropOutputType", - "ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType", - "ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType", - "ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType", -) +__all__ = ("ReposOwnerRepoBranchesBranchRenamePostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0926.py b/githubkit/versions/v2022_11_28/types/group_0926.py index 768fbffd1..78164b5f0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0926.py +++ b/githubkit/versions/v2022_11_28/types/group_0926.py @@ -9,38 +9,62 @@ from __future__ import annotations -from datetime import datetime from typing import List, Literal from typing_extensions import TypedDict, NotRequired -from .group_0925 import ( - ReposOwnerRepoCheckRunsPostBodyPropOutputType, - ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType, -) +class ReposOwnerRepoCheckRunsPostBodyPropOutputType(TypedDict): + """ReposOwnerRepoCheckRunsPostBodyPropOutput + + 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. + """ -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", + title: str + summary: str + text: NotRequired[str] + annotations: NotRequired[ + List[ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType] ] - completed_at: NotRequired[datetime] - output: NotRequired[ReposOwnerRepoCheckRunsPostBodyPropOutputType] - actions: NotRequired[List[ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType]] + images: NotRequired[ + List[ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType] + ] + + +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""" -__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof0Type",) + alt: str + image_url: str + caption: NotRequired[str] + + +class ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType(TypedDict): + """ReposOwnerRepoCheckRunsPostBodyPropActionsItems""" + + label: str + description: str + identifier: str + + +__all__ = ( + "ReposOwnerRepoCheckRunsPostBodyPropOutputType", + "ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType", + "ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType", + "ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0927.py b/githubkit/versions/v2022_11_28/types/group_0927.py index ea2c82c79..66f6e335a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0927.py +++ b/githubkit/versions/v2022_11_28/types/group_0927.py @@ -13,36 +13,34 @@ from typing import List, Literal from typing_extensions import TypedDict, NotRequired -from .group_0925 import ( +from .group_0926 import ( ReposOwnerRepoCheckRunsPostBodyPropOutputType, ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType, ) -class ReposOwnerRepoCheckRunsPostBodyOneof1Type(TypedDict): - """ReposOwnerRepoCheckRunsPostBodyOneof1""" +class ReposOwnerRepoCheckRunsPostBodyOneof0Type(TypedDict): + """ReposOwnerRepoCheckRunsPostBodyOneof0""" name: str head_sha: str details_url: NotRequired[str] external_id: NotRequired[str] - status: NotRequired[Literal["queued", "in_progress"]] + status: Literal["completed"] started_at: NotRequired[datetime] - conclusion: NotRequired[ - Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "success", - "skipped", - "stale", - "timed_out", - ] + conclusion: Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "success", + "skipped", + "stale", + "timed_out", ] completed_at: NotRequired[datetime] output: NotRequired[ReposOwnerRepoCheckRunsPostBodyPropOutputType] actions: NotRequired[List[ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType]] -__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof1Type",) +__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0928.py b/githubkit/versions/v2022_11_28/types/group_0928.py index f4f9ec07a..b3378ca47 100644 --- a/githubkit/versions/v2022_11_28/types/group_0928.py +++ b/githubkit/versions/v2022_11_28/types/group_0928.py @@ -9,68 +9,40 @@ from __future__ import annotations +from datetime import datetime from typing import List, Literal from typing_extensions import TypedDict, NotRequired +from .group_0926 import ( + ReposOwnerRepoCheckRunsPostBodyPropOutputType, + ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType, +) -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 +class ReposOwnerRepoCheckRunsPostBodyOneof1Type(TypedDict): + """ReposOwnerRepoCheckRunsPostBodyOneof1""" + + name: str + head_sha: str + details_url: NotRequired[str] + external_id: NotRequired[str] + status: NotRequired[Literal["queued", "in_progress"]] + started_at: NotRequired[datetime] + conclusion: NotRequired[ + Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "success", + "skipped", + "stale", + "timed_out", ] ] - images: NotRequired[ - List[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType] - ] - - -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] - + completed_at: NotRequired[datetime] + output: NotRequired[ReposOwnerRepoCheckRunsPostBodyPropOutputType] + actions: NotRequired[List[ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType]] -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType( - TypedDict -): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems""" - alt: str - image_url: str - caption: NotRequired[str] - - -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType(TypedDict): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems""" - - label: str - description: str - identifier: str - - -__all__ = ( - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType", - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType", - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType", - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType", -) +__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0929.py b/githubkit/versions/v2022_11_28/types/group_0929.py index fc5ebcbba..f4f9ec07a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0929.py +++ b/githubkit/versions/v2022_11_28/types/group_0929.py @@ -9,39 +9,68 @@ from __future__ import annotations -from datetime import datetime from typing import List, Literal from typing_extensions import TypedDict, NotRequired -from .group_0928 import ( - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType, - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType, -) +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. + """ -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", + title: NotRequired[str] + summary: str + text: NotRequired[str] + annotations: NotRequired[ + List[ + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType + ] ] - completed_at: NotRequired[datetime] - output: NotRequired[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType] - actions: NotRequired[ - List[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType] + images: NotRequired[ + List[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType] ] -__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type",) +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__ = ( + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType", + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType", + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType", + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0930.py b/githubkit/versions/v2022_11_28/types/group_0930.py index f1d5f4062..917049ca4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0930.py +++ b/githubkit/versions/v2022_11_28/types/group_0930.py @@ -13,31 +13,29 @@ from typing import List, Literal from typing_extensions import TypedDict, NotRequired -from .group_0928 import ( +from .group_0929 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType, ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType, ) -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type(TypedDict): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1""" +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type(TypedDict): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0""" 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", - ] + status: NotRequired[Literal["completed"]] + conclusion: Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "success", + "skipped", + "stale", + "timed_out", ] completed_at: NotRequired[datetime] output: NotRequired[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType] @@ -46,4 +44,4 @@ class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type(TypedDict): ] -__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type",) +__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0931.py b/githubkit/versions/v2022_11_28/types/group_0931.py index 5d8ac49c1..30321ec5a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0931.py +++ b/githubkit/versions/v2022_11_28/types/group_0931.py @@ -9,13 +9,41 @@ from __future__ import annotations -from typing_extensions import TypedDict - - -class ReposOwnerRepoCheckSuitesPostBodyType(TypedDict): - """ReposOwnerRepoCheckSuitesPostBody""" - - head_sha: str - - -__all__ = ("ReposOwnerRepoCheckSuitesPostBodyType",) +from datetime import datetime +from typing import List, Literal +from typing_extensions import TypedDict, NotRequired + +from .group_0929 import ( + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType, + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType, +) + + +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_0932.py b/githubkit/versions/v2022_11_28/types/group_0932.py index ef98987e3..5d8ac49c1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0932.py +++ b/githubkit/versions/v2022_11_28/types/group_0932.py @@ -9,30 +9,13 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ReposOwnerRepoCheckSuitesPreferencesPatchBodyType(TypedDict): - """ReposOwnerRepoCheckSuitesPreferencesPatchBody""" +class ReposOwnerRepoCheckSuitesPostBodyType(TypedDict): + """ReposOwnerRepoCheckSuitesPostBody""" - auto_trigger_checks: NotRequired[ - List[ - ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType - ] - ] + head_sha: str -class ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType( - TypedDict -): - """ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems""" - - app_id: int - setting: bool - - -__all__ = ( - "ReposOwnerRepoCheckSuitesPreferencesPatchBodyType", - "ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType", -) +__all__ = ("ReposOwnerRepoCheckSuitesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0933.py b/githubkit/versions/v2022_11_28/types/group_0933.py index e2eebc51c..ef98987e3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0933.py +++ b/githubkit/versions/v2022_11_28/types/group_0933.py @@ -10,16 +10,29 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0197 import CheckRunType +class ReposOwnerRepoCheckSuitesPreferencesPatchBodyType(TypedDict): + """ReposOwnerRepoCheckSuitesPreferencesPatchBody""" -class ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type(TypedDict): - """ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200""" + auto_trigger_checks: NotRequired[ + List[ + ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType + ] + ] - total_count: int - check_runs: List[CheckRunType] +class ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType( + TypedDict +): + """ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems""" -__all__ = ("ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type",) + app_id: int + setting: bool + + +__all__ = ( + "ReposOwnerRepoCheckSuitesPreferencesPatchBodyType", + "ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0934.py b/githubkit/versions/v2022_11_28/types/group_0934.py index aa6436005..e2eebc51c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0934.py +++ b/githubkit/versions/v2022_11_28/types/group_0934.py @@ -9,18 +9,17 @@ from __future__ import annotations -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict +from .group_0197 import CheckRunType -class ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType(TypedDict): - """ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody""" - state: Literal["open", "dismissed"] - dismissed_reason: NotRequired[ - Union[None, Literal["false positive", "won't fix", "used in tests"]] - ] - dismissed_comment: NotRequired[Union[str, None]] +class ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type(TypedDict): + """ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200""" + total_count: int + check_runs: List[CheckRunType] -__all__ = ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType",) + +__all__ = ("ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0935.py b/githubkit/versions/v2022_11_28/types/group_0935.py index aae1919ec..aa6436005 100644 --- a/githubkit/versions/v2022_11_28/types/group_0935.py +++ b/githubkit/versions/v2022_11_28/types/group_0935.py @@ -9,20 +9,18 @@ from __future__ import annotations -from typing import List, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0Type(TypedDict): - """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0""" +class ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType(TypedDict): + """ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody""" - language: Literal[ - "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "swift" + state: Literal["open", "dismissed"] + dismissed_reason: NotRequired[ + Union[None, Literal["false positive", "won't fix", "used in tests"]] ] - query_pack: str - repositories: List[str] - repository_lists: NotRequired[List[str]] - repository_owners: NotRequired[List[str]] + dismissed_comment: NotRequired[Union[str, None]] -__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0Type",) +__all__ = ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0936.py b/githubkit/versions/v2022_11_28/types/group_0936.py index 9793471ab..aae1919ec 100644 --- a/githubkit/versions/v2022_11_28/types/group_0936.py +++ b/githubkit/versions/v2022_11_28/types/group_0936.py @@ -13,16 +13,16 @@ from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1Type(TypedDict): - """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1""" +class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0Type(TypedDict): + """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0""" language: Literal[ "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "swift" ] query_pack: str - repositories: NotRequired[List[str]] - repository_lists: List[str] + repositories: List[str] + repository_lists: NotRequired[List[str]] repository_owners: NotRequired[List[str]] -__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1Type",) +__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0937.py b/githubkit/versions/v2022_11_28/types/group_0937.py index bea5490c7..9793471ab 100644 --- a/githubkit/versions/v2022_11_28/types/group_0937.py +++ b/githubkit/versions/v2022_11_28/types/group_0937.py @@ -13,16 +13,16 @@ from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2Type(TypedDict): - """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2""" +class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1Type(TypedDict): + """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1""" language: Literal[ "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "swift" ] query_pack: str repositories: NotRequired[List[str]] - repository_lists: NotRequired[List[str]] - repository_owners: List[str] + repository_lists: List[str] + repository_owners: NotRequired[List[str]] -__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2Type",) +__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0938.py b/githubkit/versions/v2022_11_28/types/group_0938.py index 5cd0c722e..bea5490c7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0938.py +++ b/githubkit/versions/v2022_11_28/types/group_0938.py @@ -9,20 +9,20 @@ from __future__ import annotations -from datetime import datetime +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoCodeScanningSarifsPostBodyType(TypedDict): - """ReposOwnerRepoCodeScanningSarifsPostBody""" +class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2Type(TypedDict): + """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2""" - commit_sha: str - ref: str - sarif: str - checkout_uri: NotRequired[str] - started_at: NotRequired[datetime] - tool_name: NotRequired[str] - validate_: NotRequired[bool] + language: Literal[ + "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "swift" + ] + query_pack: str + repositories: NotRequired[List[str]] + repository_lists: NotRequired[List[str]] + repository_owners: List[str] -__all__ = ("ReposOwnerRepoCodeScanningSarifsPostBodyType",) +__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0939.py b/githubkit/versions/v2022_11_28/types/group_0939.py index bee1a1383..5cd0c722e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0939.py +++ b/githubkit/versions/v2022_11_28/types/group_0939.py @@ -9,17 +9,20 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from datetime import datetime +from typing_extensions import TypedDict, NotRequired -from .group_0078 import CodespaceType +class ReposOwnerRepoCodeScanningSarifsPostBodyType(TypedDict): + """ReposOwnerRepoCodeScanningSarifsPostBody""" -class ReposOwnerRepoCodespacesGetResponse200Type(TypedDict): - """ReposOwnerRepoCodespacesGetResponse200""" + commit_sha: str + ref: str + sarif: str + checkout_uri: NotRequired[str] + started_at: NotRequired[datetime] + tool_name: NotRequired[str] + validate_: NotRequired[bool] - total_count: int - codespaces: List[CodespaceType] - -__all__ = ("ReposOwnerRepoCodespacesGetResponse200Type",) +__all__ = ("ReposOwnerRepoCodeScanningSarifsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0940.py b/githubkit/versions/v2022_11_28/types/group_0940.py index ded7468cd..bee1a1383 100644 --- a/githubkit/versions/v2022_11_28/types/group_0940.py +++ b/githubkit/versions/v2022_11_28/types/group_0940.py @@ -9,24 +9,17 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict +from .group_0078 import CodespaceType -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] +class ReposOwnerRepoCodespacesGetResponse200Type(TypedDict): + """ReposOwnerRepoCodespacesGetResponse200""" + total_count: int + codespaces: List[CodespaceType] -__all__ = ("ReposOwnerRepoCodespacesPostBodyType",) + +__all__ = ("ReposOwnerRepoCodespacesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0941.py b/githubkit/versions/v2022_11_28/types/group_0941.py index aae507935..ded7468cd 100644 --- a/githubkit/versions/v2022_11_28/types/group_0941.py +++ b/githubkit/versions/v2022_11_28/types/group_0941.py @@ -9,30 +9,24 @@ from __future__ import annotations -from typing import List +from typing import Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoCodespacesDevcontainersGetResponse200Type(TypedDict): - """ReposOwnerRepoCodespacesDevcontainersGetResponse200""" +class ReposOwnerRepoCodespacesPostBodyType(TypedDict): + """ReposOwnerRepoCodespacesPostBody""" - total_count: int - devcontainers: List[ - ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType - ] - - -class ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType( - TypedDict -): - """ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems""" - - path: str - name: NotRequired[str] + 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__ = ( - "ReposOwnerRepoCodespacesDevcontainersGetResponse200Type", - "ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType", -) +__all__ = ("ReposOwnerRepoCodespacesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0942.py b/githubkit/versions/v2022_11_28/types/group_0942.py index 61127e2e3..aae507935 100644 --- a/githubkit/versions/v2022_11_28/types/group_0942.py +++ b/githubkit/versions/v2022_11_28/types/group_0942.py @@ -10,16 +10,29 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0077 import CodespaceMachineType - -class ReposOwnerRepoCodespacesMachinesGetResponse200Type(TypedDict): - """ReposOwnerRepoCodespacesMachinesGetResponse200""" +class ReposOwnerRepoCodespacesDevcontainersGetResponse200Type(TypedDict): + """ReposOwnerRepoCodespacesDevcontainersGetResponse200""" total_count: int - machines: List[CodespaceMachineType] + devcontainers: List[ + ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType + ] + + +class ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType( + TypedDict +): + """ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems""" + + path: str + name: NotRequired[str] + display_name: NotRequired[str] -__all__ = ("ReposOwnerRepoCodespacesMachinesGetResponse200Type",) +__all__ = ( + "ReposOwnerRepoCodespacesDevcontainersGetResponse200Type", + "ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0943.py b/githubkit/versions/v2022_11_28/types/group_0943.py index a33cbd9bf..61127e2e3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0943.py +++ b/githubkit/versions/v2022_11_28/types/group_0943.py @@ -9,27 +9,17 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -from .group_0001 import SimpleUserType +from .group_0077 import CodespaceMachineType -class ReposOwnerRepoCodespacesNewGetResponse200Type(TypedDict): - """ReposOwnerRepoCodespacesNewGetResponse200""" +class ReposOwnerRepoCodespacesMachinesGetResponse200Type(TypedDict): + """ReposOwnerRepoCodespacesMachinesGetResponse200""" - billable_owner: NotRequired[SimpleUserType] - defaults: NotRequired[ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType] + total_count: int + machines: List[CodespaceMachineType] -class ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType(TypedDict): - """ReposOwnerRepoCodespacesNewGetResponse200PropDefaults""" - - location: str - devcontainer_path: Union[str, None] - - -__all__ = ( - "ReposOwnerRepoCodespacesNewGetResponse200Type", - "ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType", -) +__all__ = ("ReposOwnerRepoCodespacesMachinesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0944.py b/githubkit/versions/v2022_11_28/types/group_0944.py index 4c82ea53d..a33cbd9bf 100644 --- a/githubkit/versions/v2022_11_28/types/group_0944.py +++ b/githubkit/versions/v2022_11_28/types/group_0944.py @@ -9,30 +9,27 @@ from __future__ import annotations -from typing import List -from datetime import datetime -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import TypedDict, NotRequired +from .group_0001 import SimpleUserType -class ReposOwnerRepoCodespacesSecretsGetResponse200Type(TypedDict): - """ReposOwnerRepoCodespacesSecretsGetResponse200""" - total_count: int - secrets: List[RepoCodespacesSecretType] +class ReposOwnerRepoCodespacesNewGetResponse200Type(TypedDict): + """ReposOwnerRepoCodespacesNewGetResponse200""" + billable_owner: NotRequired[SimpleUserType] + defaults: NotRequired[ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType] -class RepoCodespacesSecretType(TypedDict): - """Codespaces Secret - Set repository secrets for GitHub Codespaces. - """ +class ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType(TypedDict): + """ReposOwnerRepoCodespacesNewGetResponse200PropDefaults""" - name: str - created_at: datetime - updated_at: datetime + location: str + devcontainer_path: Union[str, None] __all__ = ( - "ReposOwnerRepoCodespacesSecretsGetResponse200Type", - "RepoCodespacesSecretType", + "ReposOwnerRepoCodespacesNewGetResponse200Type", + "ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0945.py b/githubkit/versions/v2022_11_28/types/group_0945.py index 127388d30..4c82ea53d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0945.py +++ b/githubkit/versions/v2022_11_28/types/group_0945.py @@ -9,14 +9,30 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing import List +from datetime import datetime +from typing_extensions import TypedDict -class ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType(TypedDict): - """ReposOwnerRepoCodespacesSecretsSecretNamePutBody""" +class ReposOwnerRepoCodespacesSecretsGetResponse200Type(TypedDict): + """ReposOwnerRepoCodespacesSecretsGetResponse200""" - encrypted_value: NotRequired[str] - key_id: NotRequired[str] + total_count: int + secrets: List[RepoCodespacesSecretType] -__all__ = ("ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType",) +class RepoCodespacesSecretType(TypedDict): + """Codespaces Secret + + Set repository secrets for GitHub Codespaces. + """ + + name: str + created_at: datetime + updated_at: datetime + + +__all__ = ( + "ReposOwnerRepoCodespacesSecretsGetResponse200Type", + "RepoCodespacesSecretType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0946.py b/githubkit/versions/v2022_11_28/types/group_0946.py index 3048a3c3a..127388d30 100644 --- a/githubkit/versions/v2022_11_28/types/group_0946.py +++ b/githubkit/versions/v2022_11_28/types/group_0946.py @@ -12,10 +12,11 @@ from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoCollaboratorsUsernamePutBodyType(TypedDict): - """ReposOwnerRepoCollaboratorsUsernamePutBody""" +class ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType(TypedDict): + """ReposOwnerRepoCodespacesSecretsSecretNamePutBody""" - permission: NotRequired[str] + encrypted_value: NotRequired[str] + key_id: NotRequired[str] -__all__ = ("ReposOwnerRepoCollaboratorsUsernamePutBodyType",) +__all__ = ("ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0947.py b/githubkit/versions/v2022_11_28/types/group_0947.py index 25f26d78b..3048a3c3a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0947.py +++ b/githubkit/versions/v2022_11_28/types/group_0947.py @@ -9,13 +9,13 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoCommentsCommentIdPatchBodyType(TypedDict): - """ReposOwnerRepoCommentsCommentIdPatchBody""" +class ReposOwnerRepoCollaboratorsUsernamePutBodyType(TypedDict): + """ReposOwnerRepoCollaboratorsUsernamePutBody""" - body: str + permission: NotRequired[str] -__all__ = ("ReposOwnerRepoCommentsCommentIdPatchBodyType",) +__all__ = ("ReposOwnerRepoCollaboratorsUsernamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0948.py b/githubkit/versions/v2022_11_28/types/group_0948.py index ce91eec32..25f26d78b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0948.py +++ b/githubkit/versions/v2022_11_28/types/group_0948.py @@ -9,16 +9,13 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict -class ReposOwnerRepoCommentsCommentIdReactionsPostBodyType(TypedDict): - """ReposOwnerRepoCommentsCommentIdReactionsPostBody""" +class ReposOwnerRepoCommentsCommentIdPatchBodyType(TypedDict): + """ReposOwnerRepoCommentsCommentIdPatchBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] + body: str -__all__ = ("ReposOwnerRepoCommentsCommentIdReactionsPostBodyType",) +__all__ = ("ReposOwnerRepoCommentsCommentIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0949.py b/githubkit/versions/v2022_11_28/types/group_0949.py index 64def9673..ce91eec32 100644 --- a/githubkit/versions/v2022_11_28/types/group_0949.py +++ b/githubkit/versions/v2022_11_28/types/group_0949.py @@ -9,16 +9,16 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing import Literal +from typing_extensions import TypedDict -class ReposOwnerRepoCommitsCommitShaCommentsPostBodyType(TypedDict): - """ReposOwnerRepoCommitsCommitShaCommentsPostBody""" +class ReposOwnerRepoCommentsCommentIdReactionsPostBodyType(TypedDict): + """ReposOwnerRepoCommentsCommentIdReactionsPostBody""" - body: str - path: NotRequired[str] - position: NotRequired[int] - line: NotRequired[int] + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] -__all__ = ("ReposOwnerRepoCommitsCommitShaCommentsPostBodyType",) +__all__ = ("ReposOwnerRepoCommentsCommentIdReactionsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0950.py b/githubkit/versions/v2022_11_28/types/group_0950.py index 93d084dee..64def9673 100644 --- a/githubkit/versions/v2022_11_28/types/group_0950.py +++ b/githubkit/versions/v2022_11_28/types/group_0950.py @@ -9,17 +9,16 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0197 import CheckRunType +class ReposOwnerRepoCommitsCommitShaCommentsPostBodyType(TypedDict): + """ReposOwnerRepoCommitsCommitShaCommentsPostBody""" -class ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type(TypedDict): - """ReposOwnerRepoCommitsRefCheckRunsGetResponse200""" + body: str + path: NotRequired[str] + position: NotRequired[int] + line: NotRequired[int] - total_count: int - check_runs: List[CheckRunType] - -__all__ = ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type",) +__all__ = ("ReposOwnerRepoCommitsCommitShaCommentsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0951.py b/githubkit/versions/v2022_11_28/types/group_0951.py index 2242ad973..93d084dee 100644 --- a/githubkit/versions/v2022_11_28/types/group_0951.py +++ b/githubkit/versions/v2022_11_28/types/group_0951.py @@ -9,45 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict +from .group_0197 import CheckRunType -class ReposOwnerRepoContentsPathPutBodyType(TypedDict): - """ReposOwnerRepoContentsPathPutBody""" - message: str - content: str - sha: NotRequired[str] - branch: NotRequired[str] - committer: NotRequired[ReposOwnerRepoContentsPathPutBodyPropCommitterType] - author: NotRequired[ReposOwnerRepoContentsPathPutBodyPropAuthorType] +class ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type(TypedDict): + """ReposOwnerRepoCommitsRefCheckRunsGetResponse200""" + total_count: int + check_runs: List[CheckRunType] -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__ = ( - "ReposOwnerRepoContentsPathPutBodyType", - "ReposOwnerRepoContentsPathPutBodyPropCommitterType", - "ReposOwnerRepoContentsPathPutBodyPropAuthorType", -) +__all__ = ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0952.py b/githubkit/versions/v2022_11_28/types/group_0952.py index 952a58aa5..2242ad973 100644 --- a/githubkit/versions/v2022_11_28/types/group_0952.py +++ b/githubkit/versions/v2022_11_28/types/group_0952.py @@ -12,38 +12,42 @@ from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoContentsPathDeleteBodyType(TypedDict): - """ReposOwnerRepoContentsPathDeleteBody""" +class ReposOwnerRepoContentsPathPutBodyType(TypedDict): + """ReposOwnerRepoContentsPathPutBody""" message: str - sha: str + content: str + sha: NotRequired[str] branch: NotRequired[str] - committer: NotRequired[ReposOwnerRepoContentsPathDeleteBodyPropCommitterType] - author: NotRequired[ReposOwnerRepoContentsPathDeleteBodyPropAuthorType] + committer: NotRequired[ReposOwnerRepoContentsPathPutBodyPropCommitterType] + author: NotRequired[ReposOwnerRepoContentsPathPutBodyPropAuthorType] -class ReposOwnerRepoContentsPathDeleteBodyPropCommitterType(TypedDict): - """ReposOwnerRepoContentsPathDeleteBodyPropCommitter +class ReposOwnerRepoContentsPathPutBodyPropCommitterType(TypedDict): + """ReposOwnerRepoContentsPathPutBodyPropCommitter - object containing information about the committer. + The person that committed the file. Default: the authenticated user. """ - name: NotRequired[str] - email: NotRequired[str] + name: str + email: str + date: NotRequired[str] -class ReposOwnerRepoContentsPathDeleteBodyPropAuthorType(TypedDict): - """ReposOwnerRepoContentsPathDeleteBodyPropAuthor +class ReposOwnerRepoContentsPathPutBodyPropAuthorType(TypedDict): + """ReposOwnerRepoContentsPathPutBodyPropAuthor - object containing information about the author. + The author of the file. Default: The `committer` or the authenticated user if + you omit `committer`. """ - name: NotRequired[str] - email: NotRequired[str] + name: str + email: str + date: NotRequired[str] __all__ = ( - "ReposOwnerRepoContentsPathDeleteBodyType", - "ReposOwnerRepoContentsPathDeleteBodyPropCommitterType", - "ReposOwnerRepoContentsPathDeleteBodyPropAuthorType", + "ReposOwnerRepoContentsPathPutBodyType", + "ReposOwnerRepoContentsPathPutBodyPropCommitterType", + "ReposOwnerRepoContentsPathPutBodyPropAuthorType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0953.py b/githubkit/versions/v2022_11_28/types/group_0953.py index e6000744d..952a58aa5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0953.py +++ b/githubkit/versions/v2022_11_28/types/group_0953.py @@ -9,20 +9,41 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType(TypedDict): - """ReposOwnerRepoDependabotAlertsAlertNumberPatchBody""" +class ReposOwnerRepoContentsPathDeleteBodyType(TypedDict): + """ReposOwnerRepoContentsPathDeleteBody""" - state: Literal["dismissed", "open"] - dismissed_reason: NotRequired[ - Literal[ - "fix_started", "inaccurate", "no_bandwidth", "not_used", "tolerable_risk" - ] - ] - dismissed_comment: NotRequired[str] + message: str + sha: str + branch: NotRequired[str] + committer: NotRequired[ReposOwnerRepoContentsPathDeleteBodyPropCommitterType] + author: NotRequired[ReposOwnerRepoContentsPathDeleteBodyPropAuthorType] -__all__ = ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType",) +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__ = ( + "ReposOwnerRepoContentsPathDeleteBodyType", + "ReposOwnerRepoContentsPathDeleteBodyPropCommitterType", + "ReposOwnerRepoContentsPathDeleteBodyPropAuthorType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0954.py b/githubkit/versions/v2022_11_28/types/group_0954.py index b01790e23..e6000744d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0954.py +++ b/githubkit/versions/v2022_11_28/types/group_0954.py @@ -9,30 +9,20 @@ from __future__ import annotations -from typing import List -from datetime import datetime -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoDependabotSecretsGetResponse200Type(TypedDict): - """ReposOwnerRepoDependabotSecretsGetResponse200""" +class ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType(TypedDict): + """ReposOwnerRepoDependabotAlertsAlertNumberPatchBody""" - total_count: int - secrets: List[DependabotSecretType] + state: Literal["dismissed", "open"] + dismissed_reason: NotRequired[ + Literal[ + "fix_started", "inaccurate", "no_bandwidth", "not_used", "tolerable_risk" + ] + ] + dismissed_comment: NotRequired[str] -class DependabotSecretType(TypedDict): - """Dependabot Secret - - Set secrets for Dependabot. - """ - - name: str - created_at: datetime - updated_at: datetime - - -__all__ = ( - "ReposOwnerRepoDependabotSecretsGetResponse200Type", - "DependabotSecretType", -) +__all__ = ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0955.py b/githubkit/versions/v2022_11_28/types/group_0955.py index b77f06192..b01790e23 100644 --- a/githubkit/versions/v2022_11_28/types/group_0955.py +++ b/githubkit/versions/v2022_11_28/types/group_0955.py @@ -9,14 +9,30 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing import List +from datetime import datetime +from typing_extensions import TypedDict -class ReposOwnerRepoDependabotSecretsSecretNamePutBodyType(TypedDict): - """ReposOwnerRepoDependabotSecretsSecretNamePutBody""" +class ReposOwnerRepoDependabotSecretsGetResponse200Type(TypedDict): + """ReposOwnerRepoDependabotSecretsGetResponse200""" - encrypted_value: NotRequired[str] - key_id: NotRequired[str] + total_count: int + secrets: List[DependabotSecretType] -__all__ = ("ReposOwnerRepoDependabotSecretsSecretNamePutBodyType",) +class DependabotSecretType(TypedDict): + """Dependabot Secret + + Set secrets for Dependabot. + """ + + name: str + created_at: datetime + updated_at: datetime + + +__all__ = ( + "ReposOwnerRepoDependabotSecretsGetResponse200Type", + "DependabotSecretType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0956.py b/githubkit/versions/v2022_11_28/types/group_0956.py index 6e9243ec2..b77f06192 100644 --- a/githubkit/versions/v2022_11_28/types/group_0956.py +++ b/githubkit/versions/v2022_11_28/types/group_0956.py @@ -9,16 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type(TypedDict): - """ReposOwnerRepoDependencyGraphSnapshotsPostResponse201""" +class ReposOwnerRepoDependabotSecretsSecretNamePutBodyType(TypedDict): + """ReposOwnerRepoDependabotSecretsSecretNamePutBody""" - id: int - created_at: str - result: str - message: str + encrypted_value: NotRequired[str] + key_id: NotRequired[str] -__all__ = ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type",) +__all__ = ("ReposOwnerRepoDependabotSecretsSecretNamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0957.py b/githubkit/versions/v2022_11_28/types/group_0957.py index 614766fa1..6e9243ec2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0957.py +++ b/githubkit/versions/v2022_11_28/types/group_0957.py @@ -9,31 +9,16 @@ from __future__ import annotations -from typing import List, Union -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ReposOwnerRepoDeploymentsPostBodyType(TypedDict): - """ReposOwnerRepoDeploymentsPostBody""" +class ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type(TypedDict): + """ReposOwnerRepoDependencyGraphSnapshotsPostResponse201""" - 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] + id: int + created_at: str + result: str + message: str -class ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type(TypedDict): - """ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0""" - - -__all__ = ( - "ReposOwnerRepoDeploymentsPostBodyType", - "ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type", -) +__all__ = ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0958.py b/githubkit/versions/v2022_11_28/types/group_0958.py index 31c81fc99..614766fa1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0958.py +++ b/githubkit/versions/v2022_11_28/types/group_0958.py @@ -9,13 +9,31 @@ from __future__ import annotations +from typing import List, Union from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoDeploymentsPostResponse202Type(TypedDict): - """ReposOwnerRepoDeploymentsPostResponse202""" +class ReposOwnerRepoDeploymentsPostBodyType(TypedDict): + """ReposOwnerRepoDeploymentsPostBody""" - message: NotRequired[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__ = ("ReposOwnerRepoDeploymentsPostResponse202Type",) +class ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type(TypedDict): + """ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0""" + + +__all__ = ( + "ReposOwnerRepoDeploymentsPostBodyType", + "ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0959.py b/githubkit/versions/v2022_11_28/types/group_0959.py index bf2c3b692..31c81fc99 100644 --- a/githubkit/versions/v2022_11_28/types/group_0959.py +++ b/githubkit/versions/v2022_11_28/types/group_0959.py @@ -9,22 +9,13 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType(TypedDict): - """ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody""" +class ReposOwnerRepoDeploymentsPostResponse202Type(TypedDict): + """ReposOwnerRepoDeploymentsPostResponse202""" - 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] + message: NotRequired[str] -__all__ = ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType",) +__all__ = ("ReposOwnerRepoDeploymentsPostResponse202Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0960.py b/githubkit/versions/v2022_11_28/types/group_0960.py index 28590d115..bf2c3b692 100644 --- a/githubkit/versions/v2022_11_28/types/group_0960.py +++ b/githubkit/versions/v2022_11_28/types/group_0960.py @@ -9,25 +9,22 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoDispatchesPostBodyType(TypedDict): - """ReposOwnerRepoDispatchesPostBody""" +class ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType(TypedDict): + """ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody""" - event_type: str - client_payload: NotRequired[ReposOwnerRepoDispatchesPostBodyPropClientPayloadType] + 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 ReposOwnerRepoDispatchesPostBodyPropClientPayloadType(TypedDict): - """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. - """ - - -__all__ = ( - "ReposOwnerRepoDispatchesPostBodyType", - "ReposOwnerRepoDispatchesPostBodyPropClientPayloadType", -) +__all__ = ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0961.py b/githubkit/versions/v2022_11_28/types/group_0961.py index 01c515ab9..28590d115 100644 --- a/githubkit/versions/v2022_11_28/types/group_0961.py +++ b/githubkit/versions/v2022_11_28/types/group_0961.py @@ -9,38 +9,25 @@ from __future__ import annotations -from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0248 import DeploymentBranchPolicySettingsType +class ReposOwnerRepoDispatchesPostBodyType(TypedDict): + """ReposOwnerRepoDispatchesPostBody""" -class ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyType(TypedDict): - """ReposOwnerRepoEnvironmentsEnvironmentNamePutBody""" + event_type: str + client_payload: NotRequired[ReposOwnerRepoDispatchesPostBodyPropClientPayloadType] - wait_timer: NotRequired[int] - prevent_self_review: NotRequired[bool] - reviewers: NotRequired[ - Union[ - List[ - ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType - ], - None, - ] - ] - deployment_branch_policy: NotRequired[ - Union[DeploymentBranchPolicySettingsType, None] - ] +class ReposOwnerRepoDispatchesPostBodyPropClientPayloadType(TypedDict): + """ReposOwnerRepoDispatchesPostBodyPropClientPayload -class ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType(TypedDict): - """ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems""" - - type: NotRequired[Literal["User", "Team"]] - id: NotRequired[int] + 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. + """ __all__ = ( - "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyType", - "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType", + "ReposOwnerRepoDispatchesPostBodyType", + "ReposOwnerRepoDispatchesPostBodyPropClientPayloadType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0962.py b/githubkit/versions/v2022_11_28/types/group_0962.py index b65e8765b..01c515ab9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0962.py +++ b/githubkit/versions/v2022_11_28/types/group_0962.py @@ -9,32 +9,38 @@ from __future__ import annotations -from typing import List, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0248 import DeploymentBranchPolicySettingsType -class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type( - TypedDict -): - """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200""" - total_count: int - branch_policies: List[DeploymentBranchPolicyType] +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] + ] -class DeploymentBranchPolicyType(TypedDict): - """Deployment branch policy - Details of a deployment branch or tag policy. - """ +class ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType(TypedDict): + """ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems""" + type: NotRequired[Literal["User", "Team"]] id: NotRequired[int] - node_id: NotRequired[str] - name: NotRequired[str] - type: NotRequired[Literal["branch", "tag"]] __all__ = ( - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type", - "DeploymentBranchPolicyType", + "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyType", + "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0963.py b/githubkit/versions/v2022_11_28/types/group_0963.py index aa86463eb..b65e8765b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0963.py +++ b/githubkit/versions/v2022_11_28/types/group_0963.py @@ -9,17 +9,32 @@ from __future__ import annotations +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType( +class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type( TypedDict ): - """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody""" + """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200""" - integration_id: NotRequired[int] + total_count: int + branch_policies: List[DeploymentBranchPolicyType] + + +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__ = ( - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType", + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type", + "DeploymentBranchPolicyType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0964.py b/githubkit/versions/v2022_11_28/types/group_0964.py index e7dbe7df6..aa86463eb 100644 --- a/githubkit/versions/v2022_11_28/types/group_0964.py +++ b/githubkit/versions/v2022_11_28/types/group_0964.py @@ -9,25 +9,17 @@ from __future__ import annotations -from typing import List from typing_extensions import TypedDict, NotRequired -from .group_0254 import CustomDeploymentRuleAppType - -class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type( +class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType( TypedDict ): - """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetRespons - e200 - """ + """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody""" - total_count: NotRequired[int] - available_custom_deployment_protection_rule_integrations: NotRequired[ - List[CustomDeploymentRuleAppType] - ] + integration_id: NotRequired[int] __all__ = ( - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type", + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0965.py b/githubkit/versions/v2022_11_28/types/group_0965.py index 070b6f5c3..e7dbe7df6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0965.py +++ b/githubkit/versions/v2022_11_28/types/group_0965.py @@ -10,16 +10,24 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0165 import ActionsSecretType +from .group_0254 import CustomDeploymentRuleAppType -class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200Type(TypedDict): - """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200""" +class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type( + TypedDict +): + """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetRespons + e200 + """ - total_count: int - secrets: List[ActionsSecretType] + total_count: NotRequired[int] + available_custom_deployment_protection_rule_integrations: NotRequired[ + List[CustomDeploymentRuleAppType] + ] -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200Type",) +__all__ = ( + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0966.py b/githubkit/versions/v2022_11_28/types/group_0966.py index 3ec440fb1..070b6f5c3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0966.py +++ b/githubkit/versions/v2022_11_28/types/group_0966.py @@ -9,14 +9,17 @@ from __future__ import annotations +from typing import List from typing_extensions import TypedDict +from .group_0165 import ActionsSecretType -class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBodyType(TypedDict): - """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody""" - encrypted_value: str - key_id: str +class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200Type(TypedDict): + """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200""" + total_count: int + secrets: List[ActionsSecretType] -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBodyType",) + +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0967.py b/githubkit/versions/v2022_11_28/types/group_0967.py index 283b874f8..3ec440fb1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0967.py +++ b/githubkit/versions/v2022_11_28/types/group_0967.py @@ -9,17 +9,14 @@ from __future__ import annotations -from typing import List from typing_extensions import TypedDict -from .group_0166 import ActionsVariableType +class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBodyType(TypedDict): + """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody""" -class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200Type(TypedDict): - """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200""" + encrypted_value: str + key_id: str - total_count: int - variables: List[ActionsVariableType] - -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200Type",) +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0968.py b/githubkit/versions/v2022_11_28/types/group_0968.py index f3a29926f..283b874f8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0968.py +++ b/githubkit/versions/v2022_11_28/types/group_0968.py @@ -9,14 +9,17 @@ from __future__ import annotations +from typing import List from typing_extensions import TypedDict +from .group_0166 import ActionsVariableType -class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBodyType(TypedDict): - """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody""" - name: str - value: str +class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200Type(TypedDict): + """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200""" + total_count: int + variables: List[ActionsVariableType] -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBodyType",) + +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0969.py b/githubkit/versions/v2022_11_28/types/group_0969.py index c1fff1a36..f3a29926f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0969.py +++ b/githubkit/versions/v2022_11_28/types/group_0969.py @@ -9,14 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType(TypedDict): - """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody""" +class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBodyType(TypedDict): + """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody""" - name: NotRequired[str] - value: NotRequired[str] + name: str + value: str -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType",) +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0970.py b/githubkit/versions/v2022_11_28/types/group_0970.py index 8bba2acbd..c1fff1a36 100644 --- a/githubkit/versions/v2022_11_28/types/group_0970.py +++ b/githubkit/versions/v2022_11_28/types/group_0970.py @@ -12,12 +12,11 @@ from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoForksPostBodyType(TypedDict): - """ReposOwnerRepoForksPostBody""" +class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType(TypedDict): + """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody""" - organization: NotRequired[str] name: NotRequired[str] - default_branch_only: NotRequired[bool] + value: NotRequired[str] -__all__ = ("ReposOwnerRepoForksPostBodyType",) +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0971.py b/githubkit/versions/v2022_11_28/types/group_0971.py index dcd2ec0cb..8bba2acbd 100644 --- a/githubkit/versions/v2022_11_28/types/group_0971.py +++ b/githubkit/versions/v2022_11_28/types/group_0971.py @@ -12,11 +12,12 @@ from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoGitBlobsPostBodyType(TypedDict): - """ReposOwnerRepoGitBlobsPostBody""" +class ReposOwnerRepoForksPostBodyType(TypedDict): + """ReposOwnerRepoForksPostBody""" - content: str - encoding: NotRequired[str] + organization: NotRequired[str] + name: NotRequired[str] + default_branch_only: NotRequired[bool] -__all__ = ("ReposOwnerRepoGitBlobsPostBodyType",) +__all__ = ("ReposOwnerRepoForksPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0972.py b/githubkit/versions/v2022_11_28/types/group_0972.py index 166b3b1b7..dcd2ec0cb 100644 --- a/githubkit/versions/v2022_11_28/types/group_0972.py +++ b/githubkit/versions/v2022_11_28/types/group_0972.py @@ -9,50 +9,14 @@ from __future__ import annotations -from typing import List -from datetime import datetime from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoGitCommitsPostBodyType(TypedDict): - """ReposOwnerRepoGitCommitsPostBody""" +class ReposOwnerRepoGitBlobsPostBodyType(TypedDict): + """ReposOwnerRepoGitBlobsPostBody""" - message: str - tree: str - parents: NotRequired[List[str]] - author: NotRequired[ReposOwnerRepoGitCommitsPostBodyPropAuthorType] - committer: NotRequired[ReposOwnerRepoGitCommitsPostBodyPropCommitterType] - signature: NotRequired[str] + content: str + encoding: 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] - - -__all__ = ( - "ReposOwnerRepoGitCommitsPostBodyType", - "ReposOwnerRepoGitCommitsPostBodyPropAuthorType", - "ReposOwnerRepoGitCommitsPostBodyPropCommitterType", -) +__all__ = ("ReposOwnerRepoGitBlobsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0973.py b/githubkit/versions/v2022_11_28/types/group_0973.py index aa4d83aff..166b3b1b7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0973.py +++ b/githubkit/versions/v2022_11_28/types/group_0973.py @@ -9,14 +9,50 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import List +from datetime import datetime +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoGitRefsPostBodyType(TypedDict): - """ReposOwnerRepoGitRefsPostBody""" +class ReposOwnerRepoGitCommitsPostBodyType(TypedDict): + """ReposOwnerRepoGitCommitsPostBody""" - ref: str - sha: str + message: str + tree: str + parents: NotRequired[List[str]] + author: NotRequired[ReposOwnerRepoGitCommitsPostBodyPropAuthorType] + committer: NotRequired[ReposOwnerRepoGitCommitsPostBodyPropCommitterType] + signature: NotRequired[str] -__all__ = ("ReposOwnerRepoGitRefsPostBodyType",) +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__ = ( + "ReposOwnerRepoGitCommitsPostBodyType", + "ReposOwnerRepoGitCommitsPostBodyPropAuthorType", + "ReposOwnerRepoGitCommitsPostBodyPropCommitterType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0974.py b/githubkit/versions/v2022_11_28/types/group_0974.py index c7aa1330c..aa4d83aff 100644 --- a/githubkit/versions/v2022_11_28/types/group_0974.py +++ b/githubkit/versions/v2022_11_28/types/group_0974.py @@ -9,14 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ReposOwnerRepoGitRefsRefPatchBodyType(TypedDict): - """ReposOwnerRepoGitRefsRefPatchBody""" +class ReposOwnerRepoGitRefsPostBodyType(TypedDict): + """ReposOwnerRepoGitRefsPostBody""" + ref: str sha: str - force: NotRequired[bool] -__all__ = ("ReposOwnerRepoGitRefsRefPatchBodyType",) +__all__ = ("ReposOwnerRepoGitRefsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0975.py b/githubkit/versions/v2022_11_28/types/group_0975.py index fe54aa32e..c7aa1330c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0975.py +++ b/githubkit/versions/v2022_11_28/types/group_0975.py @@ -9,33 +9,14 @@ from __future__ import annotations -from typing import Literal -from datetime import datetime from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoGitTagsPostBodyType(TypedDict): - """ReposOwnerRepoGitTagsPostBody""" +class ReposOwnerRepoGitRefsRefPatchBodyType(TypedDict): + """ReposOwnerRepoGitRefsRefPatchBody""" - tag: str - message: str - object_: str - type: Literal["commit", "tree", "blob"] - tagger: NotRequired[ReposOwnerRepoGitTagsPostBodyPropTaggerType] + sha: str + force: NotRequired[bool] -class ReposOwnerRepoGitTagsPostBodyPropTaggerType(TypedDict): - """ReposOwnerRepoGitTagsPostBodyPropTagger - - An object with information about the individual creating the tag. - """ - - name: str - email: str - date: NotRequired[datetime] - - -__all__ = ( - "ReposOwnerRepoGitTagsPostBodyType", - "ReposOwnerRepoGitTagsPostBodyPropTaggerType", -) +__all__ = ("ReposOwnerRepoGitRefsRefPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0976.py b/githubkit/versions/v2022_11_28/types/group_0976.py index a8fe4c648..fe54aa32e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0976.py +++ b/githubkit/versions/v2022_11_28/types/group_0976.py @@ -9,28 +9,33 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal +from datetime import datetime from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoGitTreesPostBodyType(TypedDict): - """ReposOwnerRepoGitTreesPostBody""" +class ReposOwnerRepoGitTagsPostBodyType(TypedDict): + """ReposOwnerRepoGitTagsPostBody""" - tree: List[ReposOwnerRepoGitTreesPostBodyPropTreeItemsType] - base_tree: NotRequired[str] + tag: str + message: str + object_: str + type: Literal["commit", "tree", "blob"] + tagger: NotRequired[ReposOwnerRepoGitTagsPostBodyPropTaggerType] -class ReposOwnerRepoGitTreesPostBodyPropTreeItemsType(TypedDict): - """ReposOwnerRepoGitTreesPostBodyPropTreeItems""" +class ReposOwnerRepoGitTagsPostBodyPropTaggerType(TypedDict): + """ReposOwnerRepoGitTagsPostBodyPropTagger - 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] + An object with information about the individual creating the tag. + """ + + name: str + email: str + date: NotRequired[datetime] __all__ = ( - "ReposOwnerRepoGitTreesPostBodyType", - "ReposOwnerRepoGitTreesPostBodyPropTreeItemsType", + "ReposOwnerRepoGitTagsPostBodyType", + "ReposOwnerRepoGitTagsPostBodyPropTaggerType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0977.py b/githubkit/versions/v2022_11_28/types/group_0977.py index 3f4bc96d4..a8fe4c648 100644 --- a/githubkit/versions/v2022_11_28/types/group_0977.py +++ b/githubkit/versions/v2022_11_28/types/group_0977.py @@ -9,32 +9,28 @@ from __future__ import annotations -from typing import List, Union +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoHooksPostBodyType(TypedDict): - """ReposOwnerRepoHooksPostBody""" +class ReposOwnerRepoGitTreesPostBodyType(TypedDict): + """ReposOwnerRepoGitTreesPostBody""" - name: NotRequired[str] - config: NotRequired[ReposOwnerRepoHooksPostBodyPropConfigType] - events: NotRequired[List[str]] - active: NotRequired[bool] + tree: List[ReposOwnerRepoGitTreesPostBodyPropTreeItemsType] + base_tree: NotRequired[str] -class ReposOwnerRepoHooksPostBodyPropConfigType(TypedDict): - """ReposOwnerRepoHooksPostBodyPropConfig +class ReposOwnerRepoGitTreesPostBodyPropTreeItemsType(TypedDict): + """ReposOwnerRepoGitTreesPostBodyPropTreeItems""" - 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]] + 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__ = ( - "ReposOwnerRepoHooksPostBodyType", - "ReposOwnerRepoHooksPostBodyPropConfigType", + "ReposOwnerRepoGitTreesPostBodyType", + "ReposOwnerRepoGitTreesPostBodyPropTreeItemsType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0978.py b/githubkit/versions/v2022_11_28/types/group_0978.py index a7b95ac0e..3f4bc96d4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0978.py +++ b/githubkit/versions/v2022_11_28/types/group_0978.py @@ -9,20 +9,32 @@ from __future__ import annotations -from typing import List +from typing import List, Union from typing_extensions import TypedDict, NotRequired -from .group_0007 import WebhookConfigType +class ReposOwnerRepoHooksPostBodyType(TypedDict): + """ReposOwnerRepoHooksPostBody""" -class ReposOwnerRepoHooksHookIdPatchBodyType(TypedDict): - """ReposOwnerRepoHooksHookIdPatchBody""" - - config: NotRequired[WebhookConfigType] + name: NotRequired[str] + config: NotRequired[ReposOwnerRepoHooksPostBodyPropConfigType] events: NotRequired[List[str]] - add_events: NotRequired[List[str]] - remove_events: NotRequired[List[str]] active: NotRequired[bool] -__all__ = ("ReposOwnerRepoHooksHookIdPatchBodyType",) +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__ = ( + "ReposOwnerRepoHooksPostBodyType", + "ReposOwnerRepoHooksPostBodyPropConfigType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0979.py b/githubkit/versions/v2022_11_28/types/group_0979.py index 8c044b8a1..a7b95ac0e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0979.py +++ b/githubkit/versions/v2022_11_28/types/group_0979.py @@ -9,17 +9,20 @@ from __future__ import annotations -from typing import Union +from typing import List from typing_extensions import TypedDict, NotRequired +from .group_0007 import WebhookConfigType -class ReposOwnerRepoHooksHookIdConfigPatchBodyType(TypedDict): - """ReposOwnerRepoHooksHookIdConfigPatchBody""" - url: NotRequired[str] - content_type: NotRequired[str] - secret: NotRequired[str] - insecure_ssl: NotRequired[Union[str, float]] +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__ = ("ReposOwnerRepoHooksHookIdConfigPatchBodyType",) + +__all__ = ("ReposOwnerRepoHooksHookIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0980.py b/githubkit/versions/v2022_11_28/types/group_0980.py index 40367efa2..8c044b8a1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0980.py +++ b/githubkit/versions/v2022_11_28/types/group_0980.py @@ -9,18 +9,17 @@ from __future__ import annotations -from typing import Literal +from typing import Union from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoImportPutBodyType(TypedDict): - """ReposOwnerRepoImportPutBody""" +class ReposOwnerRepoHooksHookIdConfigPatchBodyType(TypedDict): + """ReposOwnerRepoHooksHookIdConfigPatchBody""" - vcs_url: str - vcs: NotRequired[Literal["subversion", "git", "mercurial", "tfvc"]] - vcs_username: NotRequired[str] - vcs_password: NotRequired[str] - tfvc_project: NotRequired[str] + url: NotRequired[str] + content_type: NotRequired[str] + secret: NotRequired[str] + insecure_ssl: NotRequired[Union[str, float]] -__all__ = ("ReposOwnerRepoImportPutBodyType",) +__all__ = ("ReposOwnerRepoHooksHookIdConfigPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0981.py b/githubkit/versions/v2022_11_28/types/group_0981.py index ea3f1020c..40367efa2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0981.py +++ b/githubkit/versions/v2022_11_28/types/group_0981.py @@ -13,13 +13,14 @@ from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoImportPatchBodyType(TypedDict): - """ReposOwnerRepoImportPatchBody""" +class ReposOwnerRepoImportPutBodyType(TypedDict): + """ReposOwnerRepoImportPutBody""" + vcs_url: str + vcs: NotRequired[Literal["subversion", "git", "mercurial", "tfvc"]] vcs_username: NotRequired[str] vcs_password: NotRequired[str] - vcs: NotRequired[Literal["subversion", "tfvc", "git", "mercurial"]] tfvc_project: NotRequired[str] -__all__ = ("ReposOwnerRepoImportPatchBodyType",) +__all__ = ("ReposOwnerRepoImportPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0982.py b/githubkit/versions/v2022_11_28/types/group_0982.py index f3821d41d..ea3f1020c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0982.py +++ b/githubkit/versions/v2022_11_28/types/group_0982.py @@ -9,14 +9,17 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType(TypedDict): - """ReposOwnerRepoImportAuthorsAuthorIdPatchBody""" +class ReposOwnerRepoImportPatchBodyType(TypedDict): + """ReposOwnerRepoImportPatchBody""" - email: NotRequired[str] - name: NotRequired[str] + vcs_username: NotRequired[str] + vcs_password: NotRequired[str] + vcs: NotRequired[Literal["subversion", "tfvc", "git", "mercurial"]] + tfvc_project: NotRequired[str] -__all__ = ("ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType",) +__all__ = ("ReposOwnerRepoImportPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0983.py b/githubkit/versions/v2022_11_28/types/group_0983.py index f8207f6ea..f3821d41d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0983.py +++ b/githubkit/versions/v2022_11_28/types/group_0983.py @@ -9,14 +9,14 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoImportLfsPatchBodyType(TypedDict): - """ReposOwnerRepoImportLfsPatchBody""" +class ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType(TypedDict): + """ReposOwnerRepoImportAuthorsAuthorIdPatchBody""" - use_lfs: Literal["opt_in", "opt_out"] + email: NotRequired[str] + name: NotRequired[str] -__all__ = ("ReposOwnerRepoImportLfsPatchBodyType",) +__all__ = ("ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0984.py b/githubkit/versions/v2022_11_28/types/group_0984.py index ca60a7364..f8207f6ea 100644 --- a/githubkit/versions/v2022_11_28/types/group_0984.py +++ b/githubkit/versions/v2022_11_28/types/group_0984.py @@ -9,11 +9,14 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict -class ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type(TypedDict): - """ReposOwnerRepoInteractionLimitsGetResponse200Anyof1""" +class ReposOwnerRepoImportLfsPatchBodyType(TypedDict): + """ReposOwnerRepoImportLfsPatchBody""" + use_lfs: Literal["opt_in", "opt_out"] -__all__ = ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type",) + +__all__ = ("ReposOwnerRepoImportLfsPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0985.py b/githubkit/versions/v2022_11_28/types/group_0985.py index de920e175..ca60a7364 100644 --- a/githubkit/versions/v2022_11_28/types/group_0985.py +++ b/githubkit/versions/v2022_11_28/types/group_0985.py @@ -9,14 +9,11 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ReposOwnerRepoInvitationsInvitationIdPatchBodyType(TypedDict): - """ReposOwnerRepoInvitationsInvitationIdPatchBody""" +class ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type(TypedDict): + """ReposOwnerRepoInteractionLimitsGetResponse200Anyof1""" - permissions: NotRequired[Literal["read", "write", "maintain", "triage", "admin"]] - -__all__ = ("ReposOwnerRepoInvitationsInvitationIdPatchBodyType",) +__all__ = ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0986.py b/githubkit/versions/v2022_11_28/types/group_0986.py index 5fcbc4ed3..de920e175 100644 --- a/githubkit/versions/v2022_11_28/types/group_0986.py +++ b/githubkit/versions/v2022_11_28/types/group_0986.py @@ -9,33 +9,14 @@ from __future__ import annotations -from typing import List, Union +from typing import Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoIssuesPostBodyType(TypedDict): - """ReposOwnerRepoIssuesPostBody""" +class ReposOwnerRepoInvitationsInvitationIdPatchBodyType(TypedDict): + """ReposOwnerRepoInvitationsInvitationIdPatchBody""" - 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]] + permissions: NotRequired[Literal["read", "write", "maintain", "triage", "admin"]] -class ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type(TypedDict): - """ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1""" - - id: NotRequired[int] - name: NotRequired[str] - description: NotRequired[Union[str, None]] - color: NotRequired[Union[str, None]] - - -__all__ = ( - "ReposOwnerRepoIssuesPostBodyType", - "ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type", -) +__all__ = ("ReposOwnerRepoInvitationsInvitationIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0987.py b/githubkit/versions/v2022_11_28/types/group_0987.py index 4b0c546c3..5fcbc4ed3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0987.py +++ b/githubkit/versions/v2022_11_28/types/group_0987.py @@ -9,13 +9,33 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import List, Union +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType(TypedDict): - """ReposOwnerRepoIssuesCommentsCommentIdPatchBody""" +class ReposOwnerRepoIssuesPostBodyType(TypedDict): + """ReposOwnerRepoIssuesPostBody""" - body: 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]] -__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType",) +class ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type(TypedDict): + """ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1""" + + id: NotRequired[int] + name: NotRequired[str] + description: NotRequired[Union[str, None]] + color: NotRequired[Union[str, None]] + + +__all__ = ( + "ReposOwnerRepoIssuesPostBodyType", + "ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0988.py b/githubkit/versions/v2022_11_28/types/group_0988.py index 77f77960c..4b0c546c3 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 import Literal from typing_extensions import TypedDict -class ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType(TypedDict): - """ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody""" +class ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType(TypedDict): + """ReposOwnerRepoIssuesCommentsCommentIdPatchBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] + body: str -__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType",) +__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0989.py b/githubkit/versions/v2022_11_28/types/group_0989.py index 38ef471b7..77f77960c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0989.py +++ b/githubkit/versions/v2022_11_28/types/group_0989.py @@ -9,41 +9,16 @@ from __future__ import annotations -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import Literal +from typing_extensions import TypedDict -class ReposOwnerRepoIssuesIssueNumberPatchBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberPatchBody""" +class ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType(TypedDict): + """ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody""" - 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"]] + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" ] - milestone: NotRequired[Union[str, int, None]] - labels: NotRequired[ - List[ - Union[ - str, ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type - ] - ] - ] - assignees: NotRequired[List[str]] - - -class ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type(TypedDict): - """ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1""" - - id: NotRequired[int] - name: NotRequired[str] - description: NotRequired[Union[str, None]] - color: NotRequired[Union[str, None]] -__all__ = ( - "ReposOwnerRepoIssuesIssueNumberPatchBodyType", - "ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type", -) +__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0990.py b/githubkit/versions/v2022_11_28/types/group_0990.py index e318c7fed..38ef471b7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0990.py +++ b/githubkit/versions/v2022_11_28/types/group_0990.py @@ -9,14 +9,41 @@ from __future__ import annotations -from typing import List +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberAssigneesPostBody""" - +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]] -__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType",) +class ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type(TypedDict): + """ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1""" + + id: NotRequired[int] + name: NotRequired[str] + description: NotRequired[Union[str, None]] + color: NotRequired[Union[str, None]] + + +__all__ = ( + "ReposOwnerRepoIssuesIssueNumberPatchBodyType", + "ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0991.py b/githubkit/versions/v2022_11_28/types/group_0991.py index ef1108543..e318c7fed 100644 --- a/githubkit/versions/v2022_11_28/types/group_0991.py +++ b/githubkit/versions/v2022_11_28/types/group_0991.py @@ -13,10 +13,10 @@ from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody""" +class ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberAssigneesPostBody""" assignees: NotRequired[List[str]] -__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0992.py b/githubkit/versions/v2022_11_28/types/group_0992.py index 2585a1e0c..ef1108543 100644 --- a/githubkit/versions/v2022_11_28/types/group_0992.py +++ b/githubkit/versions/v2022_11_28/types/group_0992.py @@ -9,13 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import List +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberCommentsPostBody""" +class ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody""" - body: str + assignees: NotRequired[List[str]] -__all__ = ("ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0993.py b/githubkit/versions/v2022_11_28/types/group_0993.py index 79fa1e54c..2585a1e0c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0993.py +++ b/githubkit/versions/v2022_11_28/types/group_0993.py @@ -9,14 +9,13 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0""" +class ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberCommentsPostBody""" - labels: NotRequired[List[str]] + body: str -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0994.py b/githubkit/versions/v2022_11_28/types/group_0994.py index 793244215..79fa1e54c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0994.py +++ b/githubkit/versions/v2022_11_28/types/group_0994.py @@ -13,21 +13,10 @@ from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2""" +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0""" - labels: NotRequired[ - List[ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType] - ] + labels: NotRequired[List[str]] -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems""" - - name: str - - -__all__ = ( - "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type", - "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType", -) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0995.py b/githubkit/versions/v2022_11_28/types/group_0995.py index 4b61c7722..793244215 100644 --- a/githubkit/versions/v2022_11_28/types/group_0995.py +++ b/githubkit/versions/v2022_11_28/types/group_0995.py @@ -9,13 +9,25 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import List +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items""" +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2""" + + labels: NotRequired[ + List[ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType] + ] + + +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems""" name: str -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType",) +__all__ = ( + "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type", + "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0996.py b/githubkit/versions/v2022_11_28/types/group_0996.py index 36bd0305e..4b61c7722 100644 --- a/githubkit/versions/v2022_11_28/types/group_0996.py +++ b/githubkit/versions/v2022_11_28/types/group_0996.py @@ -9,14 +9,13 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0""" +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items""" - labels: NotRequired[List[str]] + name: str -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0997.py b/githubkit/versions/v2022_11_28/types/group_0997.py index 6e7f8a784..36bd0305e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0997.py +++ b/githubkit/versions/v2022_11_28/types/group_0997.py @@ -13,21 +13,10 @@ from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2Type(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2""" +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0""" - labels: NotRequired[ - List[ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType] - ] + labels: NotRequired[List[str]] -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems""" - - name: str - - -__all__ = ( - "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2Type", - "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType", -) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0998.py b/githubkit/versions/v2022_11_28/types/group_0998.py index 6872247a2..6e7f8a784 100644 --- a/githubkit/versions/v2022_11_28/types/group_0998.py +++ b/githubkit/versions/v2022_11_28/types/group_0998.py @@ -9,13 +9,25 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import List +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items""" +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2Type(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2""" + + labels: NotRequired[ + List[ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType] + ] + + +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems""" name: str -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType",) +__all__ = ( + "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2Type", + "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0999.py b/githubkit/versions/v2022_11_28/types/group_0999.py index a190e2d44..6872247a2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0999.py +++ b/githubkit/versions/v2022_11_28/types/group_0999.py @@ -9,14 +9,13 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ReposOwnerRepoIssuesIssueNumberLockPutBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLockPutBody""" +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items""" - lock_reason: NotRequired[Literal["off-topic", "too heated", "resolved", "spam"]] + name: str -__all__ = ("ReposOwnerRepoIssuesIssueNumberLockPutBodyType",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1000.py b/githubkit/versions/v2022_11_28/types/group_1000.py index 5d8ff2645..a190e2d44 100644 --- a/githubkit/versions/v2022_11_28/types/group_1000.py +++ b/githubkit/versions/v2022_11_28/types/group_1000.py @@ -10,15 +10,13 @@ from __future__ import annotations from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberReactionsPostBody""" +class ReposOwnerRepoIssuesIssueNumberLockPutBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLockPutBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] + lock_reason: NotRequired[Literal["off-topic", "too heated", "resolved", "spam"]] -__all__ = ("ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLockPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1001.py b/githubkit/versions/v2022_11_28/types/group_1001.py index fa5cbfe49..5d8ff2645 100644 --- a/githubkit/versions/v2022_11_28/types/group_1001.py +++ b/githubkit/versions/v2022_11_28/types/group_1001.py @@ -9,15 +9,16 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing import Literal +from typing_extensions import TypedDict -class ReposOwnerRepoKeysPostBodyType(TypedDict): - """ReposOwnerRepoKeysPostBody""" +class ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberReactionsPostBody""" - title: NotRequired[str] - key: str - read_only: NotRequired[bool] + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] -__all__ = ("ReposOwnerRepoKeysPostBodyType",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1002.py b/githubkit/versions/v2022_11_28/types/group_1002.py index 2ae5bd4d6..fa5cbfe49 100644 --- a/githubkit/versions/v2022_11_28/types/group_1002.py +++ b/githubkit/versions/v2022_11_28/types/group_1002.py @@ -12,12 +12,12 @@ from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoLabelsPostBodyType(TypedDict): - """ReposOwnerRepoLabelsPostBody""" +class ReposOwnerRepoKeysPostBodyType(TypedDict): + """ReposOwnerRepoKeysPostBody""" - name: str - color: NotRequired[str] - description: NotRequired[str] + title: NotRequired[str] + key: str + read_only: NotRequired[bool] -__all__ = ("ReposOwnerRepoLabelsPostBodyType",) +__all__ = ("ReposOwnerRepoKeysPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1003.py b/githubkit/versions/v2022_11_28/types/group_1003.py index fe512af8d..2ae5bd4d6 100644 --- a/githubkit/versions/v2022_11_28/types/group_1003.py +++ b/githubkit/versions/v2022_11_28/types/group_1003.py @@ -12,12 +12,12 @@ from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoLabelsNamePatchBodyType(TypedDict): - """ReposOwnerRepoLabelsNamePatchBody""" +class ReposOwnerRepoLabelsPostBodyType(TypedDict): + """ReposOwnerRepoLabelsPostBody""" - new_name: NotRequired[str] + name: str color: NotRequired[str] description: NotRequired[str] -__all__ = ("ReposOwnerRepoLabelsNamePatchBodyType",) +__all__ = ("ReposOwnerRepoLabelsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1004.py b/githubkit/versions/v2022_11_28/types/group_1004.py index ac724c353..fe512af8d 100644 --- a/githubkit/versions/v2022_11_28/types/group_1004.py +++ b/githubkit/versions/v2022_11_28/types/group_1004.py @@ -9,13 +9,15 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoMergeUpstreamPostBodyType(TypedDict): - """ReposOwnerRepoMergeUpstreamPostBody""" +class ReposOwnerRepoLabelsNamePatchBodyType(TypedDict): + """ReposOwnerRepoLabelsNamePatchBody""" - branch: str + new_name: NotRequired[str] + color: NotRequired[str] + description: NotRequired[str] -__all__ = ("ReposOwnerRepoMergeUpstreamPostBodyType",) +__all__ = ("ReposOwnerRepoLabelsNamePatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1005.py b/githubkit/versions/v2022_11_28/types/group_1005.py index 68b37cb55..ac724c353 100644 --- a/githubkit/versions/v2022_11_28/types/group_1005.py +++ b/githubkit/versions/v2022_11_28/types/group_1005.py @@ -9,15 +9,13 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ReposOwnerRepoMergesPostBodyType(TypedDict): - """ReposOwnerRepoMergesPostBody""" +class ReposOwnerRepoMergeUpstreamPostBodyType(TypedDict): + """ReposOwnerRepoMergeUpstreamPostBody""" - base: str - head: str - commit_message: NotRequired[str] + branch: str -__all__ = ("ReposOwnerRepoMergesPostBodyType",) +__all__ = ("ReposOwnerRepoMergeUpstreamPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1006.py b/githubkit/versions/v2022_11_28/types/group_1006.py index 7dd5af8e7..68b37cb55 100644 --- a/githubkit/versions/v2022_11_28/types/group_1006.py +++ b/githubkit/versions/v2022_11_28/types/group_1006.py @@ -9,18 +9,15 @@ from __future__ import annotations -from typing import Literal -from datetime import datetime from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoMilestonesPostBodyType(TypedDict): - """ReposOwnerRepoMilestonesPostBody""" +class ReposOwnerRepoMergesPostBodyType(TypedDict): + """ReposOwnerRepoMergesPostBody""" - title: str - state: NotRequired[Literal["open", "closed"]] - description: NotRequired[str] - due_on: NotRequired[datetime] + base: str + head: str + commit_message: NotRequired[str] -__all__ = ("ReposOwnerRepoMilestonesPostBodyType",) +__all__ = ("ReposOwnerRepoMergesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1007.py b/githubkit/versions/v2022_11_28/types/group_1007.py index d926c03f7..7dd5af8e7 100644 --- a/githubkit/versions/v2022_11_28/types/group_1007.py +++ b/githubkit/versions/v2022_11_28/types/group_1007.py @@ -14,13 +14,13 @@ from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType(TypedDict): - """ReposOwnerRepoMilestonesMilestoneNumberPatchBody""" +class ReposOwnerRepoMilestonesPostBodyType(TypedDict): + """ReposOwnerRepoMilestonesPostBody""" - title: NotRequired[str] + title: str state: NotRequired[Literal["open", "closed"]] description: NotRequired[str] due_on: NotRequired[datetime] -__all__ = ("ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType",) +__all__ = ("ReposOwnerRepoMilestonesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1008.py b/githubkit/versions/v2022_11_28/types/group_1008.py index 7c0be85f3..d926c03f7 100644 --- a/githubkit/versions/v2022_11_28/types/group_1008.py +++ b/githubkit/versions/v2022_11_28/types/group_1008.py @@ -9,14 +9,18 @@ from __future__ import annotations +from typing import Literal from datetime import datetime from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoNotificationsPutBodyType(TypedDict): - """ReposOwnerRepoNotificationsPutBody""" +class ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType(TypedDict): + """ReposOwnerRepoMilestonesMilestoneNumberPatchBody""" - last_read_at: NotRequired[datetime] + title: NotRequired[str] + state: NotRequired[Literal["open", "closed"]] + description: NotRequired[str] + due_on: NotRequired[datetime] -__all__ = ("ReposOwnerRepoNotificationsPutBodyType",) +__all__ = ("ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1009.py b/githubkit/versions/v2022_11_28/types/group_1009.py index 153effb7c..7c0be85f3 100644 --- a/githubkit/versions/v2022_11_28/types/group_1009.py +++ b/githubkit/versions/v2022_11_28/types/group_1009.py @@ -9,14 +9,14 @@ from __future__ import annotations +from datetime import datetime from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoNotificationsPutResponse202Type(TypedDict): - """ReposOwnerRepoNotificationsPutResponse202""" +class ReposOwnerRepoNotificationsPutBodyType(TypedDict): + """ReposOwnerRepoNotificationsPutBody""" - message: NotRequired[str] - url: NotRequired[str] + last_read_at: NotRequired[datetime] -__all__ = ("ReposOwnerRepoNotificationsPutResponse202Type",) +__all__ = ("ReposOwnerRepoNotificationsPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1010.py b/githubkit/versions/v2022_11_28/types/group_1010.py index cd3deab02..153effb7c 100644 --- a/githubkit/versions/v2022_11_28/types/group_1010.py +++ b/githubkit/versions/v2022_11_28/types/group_1010.py @@ -9,18 +9,14 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type(TypedDict): - """ReposOwnerRepoPagesPutBodyPropSourceAnyof1 +class ReposOwnerRepoNotificationsPutResponse202Type(TypedDict): + """ReposOwnerRepoNotificationsPutResponse202""" - Update the source for the repository. Must include the branch name and path. - """ + message: NotRequired[str] + url: NotRequired[str] - branch: str - path: Literal["/", "/docs"] - -__all__ = ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type",) +__all__ = ("ReposOwnerRepoNotificationsPutResponse202Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1011.py b/githubkit/versions/v2022_11_28/types/group_1011.py index 92e8fbc68..cd3deab02 100644 --- a/githubkit/versions/v2022_11_28/types/group_1011.py +++ b/githubkit/versions/v2022_11_28/types/group_1011.py @@ -9,24 +9,18 @@ from __future__ import annotations -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import Literal +from typing_extensions import TypedDict -from .group_1010 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type +class ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type(TypedDict): + """ReposOwnerRepoPagesPutBodyPropSourceAnyof1 -class ReposOwnerRepoPagesPutBodyAnyof0Type(TypedDict): - """ReposOwnerRepoPagesPutBodyAnyof0""" + Update the source for the repository. Must include the branch name and path. + """ - cname: NotRequired[Union[str, None]] - https_enforced: NotRequired[bool] - build_type: Literal["legacy", "workflow"] - source: NotRequired[ - Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, - ] - ] + branch: str + path: Literal["/", "/docs"] -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof0Type",) +__all__ = ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1012.py b/githubkit/versions/v2022_11_28/types/group_1012.py index ed235ce47..89e670448 100644 --- a/githubkit/versions/v2022_11_28/types/group_1012.py +++ b/githubkit/versions/v2022_11_28/types/group_1012.py @@ -12,19 +12,21 @@ from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_1010 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type +from .group_1011 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type -class ReposOwnerRepoPagesPutBodyAnyof1Type(TypedDict): - """ReposOwnerRepoPagesPutBodyAnyof1""" +class ReposOwnerRepoPagesPutBodyAnyof0Type(TypedDict): + """ReposOwnerRepoPagesPutBodyAnyof0""" cname: NotRequired[Union[str, None]] https_enforced: NotRequired[bool] - build_type: NotRequired[Literal["legacy", "workflow"]] - source: Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, + build_type: Literal["legacy", "workflow"] + source: NotRequired[ + Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, + ] ] -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof1Type",) +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1013.py b/githubkit/versions/v2022_11_28/types/group_1013.py index 34cfe964b..971c0ef93 100644 --- a/githubkit/versions/v2022_11_28/types/group_1013.py +++ b/githubkit/versions/v2022_11_28/types/group_1013.py @@ -12,21 +12,19 @@ from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_1010 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type +from .group_1011 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type -class ReposOwnerRepoPagesPutBodyAnyof2Type(TypedDict): - """ReposOwnerRepoPagesPutBodyAnyof2""" +class ReposOwnerRepoPagesPutBodyAnyof1Type(TypedDict): + """ReposOwnerRepoPagesPutBodyAnyof1""" - cname: Union[str, None] + 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, - ] + source: Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, ] -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof2Type",) +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1014.py b/githubkit/versions/v2022_11_28/types/group_1014.py index 389aef849..32e73d050 100644 --- a/githubkit/versions/v2022_11_28/types/group_1014.py +++ b/githubkit/versions/v2022_11_28/types/group_1014.py @@ -12,13 +12,13 @@ from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_1010 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type +from .group_1011 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type -class ReposOwnerRepoPagesPutBodyAnyof3Type(TypedDict): - """ReposOwnerRepoPagesPutBodyAnyof3""" +class ReposOwnerRepoPagesPutBodyAnyof2Type(TypedDict): + """ReposOwnerRepoPagesPutBodyAnyof2""" - cname: NotRequired[Union[str, None]] + cname: Union[str, None] https_enforced: NotRequired[bool] build_type: NotRequired[Literal["legacy", "workflow"]] source: NotRequired[ @@ -29,4 +29,4 @@ class ReposOwnerRepoPagesPutBodyAnyof3Type(TypedDict): ] -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof3Type",) +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof2Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1015.py b/githubkit/versions/v2022_11_28/types/group_1015.py index f898c3223..31b1af3dc 100644 --- a/githubkit/versions/v2022_11_28/types/group_1015.py +++ b/githubkit/versions/v2022_11_28/types/group_1015.py @@ -12,14 +12,14 @@ from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_1010 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type +from .group_1011 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type -class ReposOwnerRepoPagesPutBodyAnyof4Type(TypedDict): - """ReposOwnerRepoPagesPutBodyAnyof4""" +class ReposOwnerRepoPagesPutBodyAnyof3Type(TypedDict): + """ReposOwnerRepoPagesPutBodyAnyof3""" cname: NotRequired[Union[str, None]] - https_enforced: bool + https_enforced: NotRequired[bool] build_type: NotRequired[Literal["legacy", "workflow"]] source: NotRequired[ Union[ @@ -29,4 +29,4 @@ class ReposOwnerRepoPagesPutBodyAnyof4Type(TypedDict): ] -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof4Type",) +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof3Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1016.py b/githubkit/versions/v2022_11_28/types/group_1016.py index 76dfbb4a7..e5228fa72 100644 --- a/githubkit/versions/v2022_11_28/types/group_1016.py +++ b/githubkit/versions/v2022_11_28/types/group_1016.py @@ -9,18 +9,24 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_1011 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type -class ReposOwnerRepoPagesPostBodyPropSourceType(TypedDict): - """ReposOwnerRepoPagesPostBodyPropSource - The source branch and directory used to publish your Pages site. - """ +class ReposOwnerRepoPagesPutBodyAnyof4Type(TypedDict): + """ReposOwnerRepoPagesPutBodyAnyof4""" - branch: str - path: NotRequired[Literal["/", "/docs"]] + 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__ = ("ReposOwnerRepoPagesPostBodyPropSourceType",) +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof4Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1017.py b/githubkit/versions/v2022_11_28/types/group_1017.py index 672de5b31..76dfbb4a7 100644 --- a/githubkit/versions/v2022_11_28/types/group_1017.py +++ b/githubkit/versions/v2022_11_28/types/group_1017.py @@ -12,14 +12,15 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_1016 import ReposOwnerRepoPagesPostBodyPropSourceType +class ReposOwnerRepoPagesPostBodyPropSourceType(TypedDict): + """ReposOwnerRepoPagesPostBodyPropSource -class ReposOwnerRepoPagesPostBodyAnyof0Type(TypedDict): - """ReposOwnerRepoPagesPostBodyAnyof0""" + The source branch and directory used to publish your Pages site. + """ - build_type: NotRequired[Literal["legacy", "workflow"]] - source: ReposOwnerRepoPagesPostBodyPropSourceType + branch: str + path: NotRequired[Literal["/", "/docs"]] -__all__ = ("ReposOwnerRepoPagesPostBodyAnyof0Type",) +__all__ = ("ReposOwnerRepoPagesPostBodyPropSourceType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1018.py b/githubkit/versions/v2022_11_28/types/group_1018.py index 529a3c1a0..691a733f4 100644 --- a/githubkit/versions/v2022_11_28/types/group_1018.py +++ b/githubkit/versions/v2022_11_28/types/group_1018.py @@ -12,14 +12,14 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_1016 import ReposOwnerRepoPagesPostBodyPropSourceType +from .group_1017 import ReposOwnerRepoPagesPostBodyPropSourceType -class ReposOwnerRepoPagesPostBodyAnyof1Type(TypedDict): - """ReposOwnerRepoPagesPostBodyAnyof1""" +class ReposOwnerRepoPagesPostBodyAnyof0Type(TypedDict): + """ReposOwnerRepoPagesPostBodyAnyof0""" - build_type: Literal["legacy", "workflow"] - source: NotRequired[ReposOwnerRepoPagesPostBodyPropSourceType] + build_type: NotRequired[Literal["legacy", "workflow"]] + source: ReposOwnerRepoPagesPostBodyPropSourceType -__all__ = ("ReposOwnerRepoPagesPostBodyAnyof1Type",) +__all__ = ("ReposOwnerRepoPagesPostBodyAnyof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1019.py b/githubkit/versions/v2022_11_28/types/group_1019.py index 93491698d..d7c197f33 100644 --- a/githubkit/versions/v2022_11_28/types/group_1019.py +++ b/githubkit/versions/v2022_11_28/types/group_1019.py @@ -9,20 +9,17 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict, NotRequired +from .group_1017 import ReposOwnerRepoPagesPostBodyPropSourceType -class ReposOwnerRepoPagesDeploymentsPostBodyType(TypedDict): - """ReposOwnerRepoPagesDeploymentsPostBody - The object used to create GitHub Pages deployment - """ +class ReposOwnerRepoPagesPostBodyAnyof1Type(TypedDict): + """ReposOwnerRepoPagesPostBodyAnyof1""" - artifact_id: NotRequired[float] - artifact_url: NotRequired[str] - environment: NotRequired[str] - pages_build_version: str - oidc_token: str + build_type: Literal["legacy", "workflow"] + source: NotRequired[ReposOwnerRepoPagesPostBodyPropSourceType] -__all__ = ("ReposOwnerRepoPagesDeploymentsPostBodyType",) +__all__ = ("ReposOwnerRepoPagesPostBodyAnyof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1020.py b/githubkit/versions/v2022_11_28/types/group_1020.py index c22c267f3..93491698d 100644 --- a/githubkit/versions/v2022_11_28/types/group_1020.py +++ b/githubkit/versions/v2022_11_28/types/group_1020.py @@ -9,13 +9,20 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200Type(TypedDict): - """ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200""" +class ReposOwnerRepoPagesDeploymentsPostBodyType(TypedDict): + """ReposOwnerRepoPagesDeploymentsPostBody - enabled: bool + 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__ = ("ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200Type",) + +__all__ = ("ReposOwnerRepoPagesDeploymentsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1021.py b/githubkit/versions/v2022_11_28/types/group_1021.py index 36b3e70e4..c22c267f3 100644 --- a/githubkit/versions/v2022_11_28/types/group_1021.py +++ b/githubkit/versions/v2022_11_28/types/group_1021.py @@ -9,14 +9,13 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ReposOwnerRepoProjectsPostBodyType(TypedDict): - """ReposOwnerRepoProjectsPostBody""" +class ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200Type(TypedDict): + """ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200""" - name: str - body: NotRequired[str] + enabled: bool -__all__ = ("ReposOwnerRepoProjectsPostBodyType",) +__all__ = ("ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1022.py b/githubkit/versions/v2022_11_28/types/group_1022.py index dce1d2f59..36b3e70e4 100644 --- a/githubkit/versions/v2022_11_28/types/group_1022.py +++ b/githubkit/versions/v2022_11_28/types/group_1022.py @@ -9,16 +9,14 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0098 import CustomPropertyValueType +class ReposOwnerRepoProjectsPostBodyType(TypedDict): + """ReposOwnerRepoProjectsPostBody""" -class ReposOwnerRepoPropertiesValuesPatchBodyType(TypedDict): - """ReposOwnerRepoPropertiesValuesPatchBody""" + name: str + body: NotRequired[str] - properties: List[CustomPropertyValueType] - -__all__ = ("ReposOwnerRepoPropertiesValuesPatchBodyType",) +__all__ = ("ReposOwnerRepoProjectsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1023.py b/githubkit/versions/v2022_11_28/types/group_1023.py index e4301f5c1..dce1d2f59 100644 --- a/githubkit/versions/v2022_11_28/types/group_1023.py +++ b/githubkit/versions/v2022_11_28/types/group_1023.py @@ -9,20 +9,16 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict +from .group_0098 import CustomPropertyValueType -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 ReposOwnerRepoPropertiesValuesPatchBodyType(TypedDict): + """ReposOwnerRepoPropertiesValuesPatchBody""" + properties: List[CustomPropertyValueType] -__all__ = ("ReposOwnerRepoPullsPostBodyType",) + +__all__ = ("ReposOwnerRepoPropertiesValuesPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1024.py b/githubkit/versions/v2022_11_28/types/group_1024.py index 160987b13..e4301f5c1 100644 --- a/githubkit/versions/v2022_11_28/types/group_1024.py +++ b/githubkit/versions/v2022_11_28/types/group_1024.py @@ -9,13 +9,20 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoPullsCommentsCommentIdPatchBodyType(TypedDict): - """ReposOwnerRepoPullsCommentsCommentIdPatchBody""" +class ReposOwnerRepoPullsPostBodyType(TypedDict): + """ReposOwnerRepoPullsPostBody""" - body: 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__ = ("ReposOwnerRepoPullsCommentsCommentIdPatchBodyType",) +__all__ = ("ReposOwnerRepoPullsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1025.py b/githubkit/versions/v2022_11_28/types/group_1025.py index 4dc9e5008..160987b13 100644 --- a/githubkit/versions/v2022_11_28/types/group_1025.py +++ b/githubkit/versions/v2022_11_28/types/group_1025.py @@ -9,16 +9,13 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict -class ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType(TypedDict): - """ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody""" +class ReposOwnerRepoPullsCommentsCommentIdPatchBodyType(TypedDict): + """ReposOwnerRepoPullsCommentsCommentIdPatchBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] + body: str -__all__ = ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType",) +__all__ = ("ReposOwnerRepoPullsCommentsCommentIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1026.py b/githubkit/versions/v2022_11_28/types/group_1026.py index a7f3437b1..4dc9e5008 100644 --- a/githubkit/versions/v2022_11_28/types/group_1026.py +++ b/githubkit/versions/v2022_11_28/types/group_1026.py @@ -10,17 +10,15 @@ from __future__ import annotations from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ReposOwnerRepoPullsPullNumberPatchBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberPatchBody""" +class ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType(TypedDict): + """ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody""" - title: NotRequired[str] - body: NotRequired[str] - state: NotRequired[Literal["open", "closed"]] - base: NotRequired[str] - maintainer_can_modify: NotRequired[bool] + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] -__all__ = ("ReposOwnerRepoPullsPullNumberPatchBodyType",) +__all__ = ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1027.py b/githubkit/versions/v2022_11_28/types/group_1027.py index 2bc8bc97e..a7f3437b1 100644 --- a/githubkit/versions/v2022_11_28/types/group_1027.py +++ b/githubkit/versions/v2022_11_28/types/group_1027.py @@ -13,19 +13,14 @@ from typing_extensions import TypedDict, NotRequired -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",) +class ReposOwnerRepoPullsPullNumberPatchBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberPatchBody""" + + title: NotRequired[str] + body: NotRequired[str] + state: NotRequired[Literal["open", "closed"]] + base: NotRequired[str] + maintainer_can_modify: NotRequired[bool] + + +__all__ = ("ReposOwnerRepoPullsPullNumberPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1028.py b/githubkit/versions/v2022_11_28/types/group_1028.py index 3a373298b..2bc8bc97e 100644 --- a/githubkit/versions/v2022_11_28/types/group_1028.py +++ b/githubkit/versions/v2022_11_28/types/group_1028.py @@ -13,19 +13,19 @@ from typing_extensions import TypedDict, NotRequired -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",) +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_1029.py b/githubkit/versions/v2022_11_28/types/group_1029.py index fdc9c5a0e..3a373298b 100644 --- a/githubkit/versions/v2022_11_28/types/group_1029.py +++ b/githubkit/versions/v2022_11_28/types/group_1029.py @@ -9,13 +9,23 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody""" +class ReposOwnerRepoPullsPullNumberCommentsPostBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberCommentsPostBody""" body: str - - -__all__ = ("ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBodyType",) + 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_1030.py b/githubkit/versions/v2022_11_28/types/group_1030.py index f027d8849..fdc9c5a0e 100644 --- a/githubkit/versions/v2022_11_28/types/group_1030.py +++ b/githubkit/versions/v2022_11_28/types/group_1030.py @@ -9,17 +9,13 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ReposOwnerRepoPullsPullNumberMergePutBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberMergePutBody""" +class ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody""" - commit_title: NotRequired[str] - commit_message: NotRequired[str] - sha: NotRequired[str] - merge_method: NotRequired[Literal["merge", "squash", "rebase"]] + body: str -__all__ = ("ReposOwnerRepoPullsPullNumberMergePutBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1031.py b/githubkit/versions/v2022_11_28/types/group_1031.py index 430b6639e..f027d8849 100644 --- a/githubkit/versions/v2022_11_28/types/group_1031.py +++ b/githubkit/versions/v2022_11_28/types/group_1031.py @@ -9,14 +9,17 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoPullsPullNumberMergePutResponse405Type(TypedDict): - """ReposOwnerRepoPullsPullNumberMergePutResponse405""" +class ReposOwnerRepoPullsPullNumberMergePutBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberMergePutBody""" - message: NotRequired[str] - documentation_url: NotRequired[str] + commit_title: NotRequired[str] + commit_message: NotRequired[str] + sha: NotRequired[str] + merge_method: NotRequired[Literal["merge", "squash", "rebase"]] -__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse405Type",) +__all__ = ("ReposOwnerRepoPullsPullNumberMergePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1032.py b/githubkit/versions/v2022_11_28/types/group_1032.py index 12d07d173..430b6639e 100644 --- a/githubkit/versions/v2022_11_28/types/group_1032.py +++ b/githubkit/versions/v2022_11_28/types/group_1032.py @@ -12,11 +12,11 @@ from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoPullsPullNumberMergePutResponse409Type(TypedDict): - """ReposOwnerRepoPullsPullNumberMergePutResponse409""" +class ReposOwnerRepoPullsPullNumberMergePutResponse405Type(TypedDict): + """ReposOwnerRepoPullsPullNumberMergePutResponse405""" message: NotRequired[str] documentation_url: NotRequired[str] -__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse409Type",) +__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse405Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1033.py b/githubkit/versions/v2022_11_28/types/group_1033.py index a84cf2d89..12d07d173 100644 --- a/githubkit/versions/v2022_11_28/types/group_1033.py +++ b/githubkit/versions/v2022_11_28/types/group_1033.py @@ -9,15 +9,14 @@ from __future__ import annotations -from typing import List from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0Type(TypedDict): - """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0""" +class ReposOwnerRepoPullsPullNumberMergePutResponse409Type(TypedDict): + """ReposOwnerRepoPullsPullNumberMergePutResponse409""" - reviewers: List[str] - team_reviewers: NotRequired[List[str]] + message: NotRequired[str] + documentation_url: NotRequired[str] -__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0Type",) +__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse409Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1034.py b/githubkit/versions/v2022_11_28/types/group_1034.py index 1d45bd83c..a84cf2d89 100644 --- a/githubkit/versions/v2022_11_28/types/group_1034.py +++ b/githubkit/versions/v2022_11_28/types/group_1034.py @@ -13,11 +13,11 @@ from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1Type(TypedDict): - """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1""" +class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0Type(TypedDict): + """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0""" - reviewers: NotRequired[List[str]] - team_reviewers: List[str] + reviewers: List[str] + team_reviewers: NotRequired[List[str]] -__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1Type",) +__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1035.py b/githubkit/versions/v2022_11_28/types/group_1035.py index 020f5596d..1d45bd83c 100644 --- a/githubkit/versions/v2022_11_28/types/group_1035.py +++ b/githubkit/versions/v2022_11_28/types/group_1035.py @@ -13,11 +13,11 @@ from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody""" +class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1Type(TypedDict): + """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1""" - reviewers: List[str] - team_reviewers: NotRequired[List[str]] + reviewers: NotRequired[List[str]] + team_reviewers: List[str] -__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1036.py b/githubkit/versions/v2022_11_28/types/group_1036.py index 1046c3f1e..020f5596d 100644 --- a/githubkit/versions/v2022_11_28/types/group_1036.py +++ b/githubkit/versions/v2022_11_28/types/group_1036.py @@ -9,34 +9,15 @@ from __future__ import annotations -from typing import List, Literal +from typing import List from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoPullsPullNumberReviewsPostBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberReviewsPostBody""" +class ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody""" - commit_id: NotRequired[str] - body: NotRequired[str] - event: NotRequired[Literal["APPROVE", "REQUEST_CHANGES", "COMMENT"]] - comments: NotRequired[ - List[ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType] - ] + reviewers: List[str] + team_reviewers: NotRequired[List[str]] -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__ = ( - "ReposOwnerRepoPullsPullNumberReviewsPostBodyType", - "ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType", -) +__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1037.py b/githubkit/versions/v2022_11_28/types/group_1037.py index 05cccf0c0..1046c3f1e 100644 --- a/githubkit/versions/v2022_11_28/types/group_1037.py +++ b/githubkit/versions/v2022_11_28/types/group_1037.py @@ -9,13 +9,34 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import List, Literal +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody""" +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__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType",) +__all__ = ( + "ReposOwnerRepoPullsPullNumberReviewsPostBodyType", + "ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_1038.py b/githubkit/versions/v2022_11_28/types/group_1038.py index 6b49304a1..05cccf0c0 100644 --- a/githubkit/versions/v2022_11_28/types/group_1038.py +++ b/githubkit/versions/v2022_11_28/types/group_1038.py @@ -9,15 +9,13 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody""" +class ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody""" - message: str - event: NotRequired[Literal["DISMISS"]] + body: str -__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1039.py b/githubkit/versions/v2022_11_28/types/group_1039.py index db429f41c..6b49304a1 100644 --- a/githubkit/versions/v2022_11_28/types/group_1039.py +++ b/githubkit/versions/v2022_11_28/types/group_1039.py @@ -13,11 +13,11 @@ from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody""" +class ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody""" - body: NotRequired[str] - event: Literal["APPROVE", "REQUEST_CHANGES", "COMMENT"] + message: str + event: NotRequired[Literal["DISMISS"]] -__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1040.py b/githubkit/versions/v2022_11_28/types/group_1040.py index 20f8615d9..db429f41c 100644 --- a/githubkit/versions/v2022_11_28/types/group_1040.py +++ b/githubkit/versions/v2022_11_28/types/group_1040.py @@ -9,13 +9,15 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberUpdateBranchPutBody""" +class ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody""" - expected_head_sha: NotRequired[str] + body: NotRequired[str] + event: Literal["APPROVE", "REQUEST_CHANGES", "COMMENT"] -__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1041.py b/githubkit/versions/v2022_11_28/types/group_1041.py index 6be5b5e11..20f8615d9 100644 --- a/githubkit/versions/v2022_11_28/types/group_1041.py +++ b/githubkit/versions/v2022_11_28/types/group_1041.py @@ -12,11 +12,10 @@ from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type(TypedDict): - """ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202""" +class ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberUpdateBranchPutBody""" - message: NotRequired[str] - url: NotRequired[str] + expected_head_sha: NotRequired[str] -__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type",) +__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1042.py b/githubkit/versions/v2022_11_28/types/group_1042.py index ad449b3dd..6be5b5e11 100644 --- a/githubkit/versions/v2022_11_28/types/group_1042.py +++ b/githubkit/versions/v2022_11_28/types/group_1042.py @@ -9,22 +9,14 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoReleasesPostBodyType(TypedDict): - """ReposOwnerRepoReleasesPostBody""" +class ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type(TypedDict): + """ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202""" - 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] + url: NotRequired[str] -__all__ = ("ReposOwnerRepoReleasesPostBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1043.py b/githubkit/versions/v2022_11_28/types/group_1043.py index 14ed366af..ad449b3dd 100644 --- a/githubkit/versions/v2022_11_28/types/group_1043.py +++ b/githubkit/versions/v2022_11_28/types/group_1043.py @@ -9,15 +9,22 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType(TypedDict): - """ReposOwnerRepoReleasesAssetsAssetIdPatchBody""" +class ReposOwnerRepoReleasesPostBodyType(TypedDict): + """ReposOwnerRepoReleasesPostBody""" + tag_name: str + target_commitish: NotRequired[str] name: NotRequired[str] - label: NotRequired[str] - state: 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__ = ("ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType",) +__all__ = ("ReposOwnerRepoReleasesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1044.py b/githubkit/versions/v2022_11_28/types/group_1044.py index 951aca8ca..14ed366af 100644 --- a/githubkit/versions/v2022_11_28/types/group_1044.py +++ b/githubkit/versions/v2022_11_28/types/group_1044.py @@ -12,13 +12,12 @@ from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoReleasesGenerateNotesPostBodyType(TypedDict): - """ReposOwnerRepoReleasesGenerateNotesPostBody""" +class ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType(TypedDict): + """ReposOwnerRepoReleasesAssetsAssetIdPatchBody""" - tag_name: str - target_commitish: NotRequired[str] - previous_tag_name: NotRequired[str] - configuration_file_path: NotRequired[str] + name: NotRequired[str] + label: NotRequired[str] + state: NotRequired[str] -__all__ = ("ReposOwnerRepoReleasesGenerateNotesPostBodyType",) +__all__ = ("ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1045.py b/githubkit/versions/v2022_11_28/types/group_1045.py index fc4fe244b..951aca8ca 100644 --- a/githubkit/versions/v2022_11_28/types/group_1045.py +++ b/githubkit/versions/v2022_11_28/types/group_1045.py @@ -9,21 +9,16 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoReleasesReleaseIdPatchBodyType(TypedDict): - """ReposOwnerRepoReleasesReleaseIdPatchBody""" +class ReposOwnerRepoReleasesGenerateNotesPostBodyType(TypedDict): + """ReposOwnerRepoReleasesGenerateNotesPostBody""" - tag_name: NotRequired[str] + tag_name: 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] + previous_tag_name: NotRequired[str] + configuration_file_path: NotRequired[str] -__all__ = ("ReposOwnerRepoReleasesReleaseIdPatchBodyType",) +__all__ = ("ReposOwnerRepoReleasesGenerateNotesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1046.py b/githubkit/versions/v2022_11_28/types/group_1046.py index d85bf8d37..fc4fe244b 100644 --- a/githubkit/versions/v2022_11_28/types/group_1046.py +++ b/githubkit/versions/v2022_11_28/types/group_1046.py @@ -10,13 +10,20 @@ from __future__ import annotations from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType(TypedDict): - """ReposOwnerRepoReleasesReleaseIdReactionsPostBody""" +class ReposOwnerRepoReleasesReleaseIdPatchBodyType(TypedDict): + """ReposOwnerRepoReleasesReleaseIdPatchBody""" - content: Literal["+1", "laugh", "heart", "hooray", "rocket", "eyes"] + 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__ = ("ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType",) +__all__ = ("ReposOwnerRepoReleasesReleaseIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1047.py b/githubkit/versions/v2022_11_28/types/group_1047.py index ebf49e3b9..d85bf8d37 100644 --- a/githubkit/versions/v2022_11_28/types/group_1047.py +++ b/githubkit/versions/v2022_11_28/types/group_1047.py @@ -9,71 +9,14 @@ from __future__ import annotations -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import Literal +from typing_extensions import TypedDict -from .group_0115 import RepositoryRuleUpdateType -from .group_0139 import RepositoryRuleOneof17Type -from .group_0135 import RepositoryRuleWorkflowsType -from .group_0120 import RepositoryRulePullRequestType -from .group_0137 import RepositoryRuleCodeScanningType -from .group_0103 import RepositoryRulesetConditionsType -from .group_0102 import RepositoryRulesetBypassActorType -from .group_0132 import RepositoryRuleTagNamePatternType -from .group_0130 import RepositoryRuleBranchNamePatternType -from .group_0118 import RepositoryRuleRequiredDeploymentsType -from .group_0122 import RepositoryRuleRequiredStatusChecksType -from .group_0124 import RepositoryRuleCommitMessagePatternType -from .group_0128 import RepositoryRuleCommitterEmailPatternType -from .group_0126 import RepositoryRuleCommitAuthorEmailPatternType -from .group_0117 import ( - RepositoryRuleOneof15Type, - RepositoryRuleRequiredLinearHistoryType, -) -from .group_0114 import ( - RepositoryRuleOneof14Type, - RepositoryRuleOneof16Type, - RepositoryRuleCreationType, - RepositoryRuleDeletionType, - RepositoryRuleNonFastForwardType, - RepositoryRuleRequiredSignaturesType, -) +class ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType(TypedDict): + """ReposOwnerRepoReleasesReleaseIdReactionsPostBody""" -class ReposOwnerRepoRulesetsPostBodyType(TypedDict): - """ReposOwnerRepoRulesetsPostBody""" + content: Literal["+1", "laugh", "heart", "hooray", "rocket", "eyes"] - 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, - RepositoryRuleRequiredDeploymentsType, - RepositoryRuleRequiredSignaturesType, - RepositoryRulePullRequestType, - RepositoryRuleRequiredStatusChecksType, - RepositoryRuleNonFastForwardType, - RepositoryRuleCommitMessagePatternType, - RepositoryRuleCommitAuthorEmailPatternType, - RepositoryRuleCommitterEmailPatternType, - RepositoryRuleBranchNamePatternType, - RepositoryRuleTagNamePatternType, - RepositoryRuleOneof14Type, - RepositoryRuleOneof15Type, - RepositoryRuleOneof16Type, - RepositoryRuleOneof17Type, - RepositoryRuleWorkflowsType, - RepositoryRuleCodeScanningType, - ] - ] - ] - -__all__ = ("ReposOwnerRepoRulesetsPostBodyType",) +__all__ = ("ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1048.py b/githubkit/versions/v2022_11_28/types/group_1048.py index 368447ad0..ebf49e3b9 100644 --- a/githubkit/versions/v2022_11_28/types/group_1048.py +++ b/githubkit/versions/v2022_11_28/types/group_1048.py @@ -40,12 +40,12 @@ ) -class ReposOwnerRepoRulesetsRulesetIdPutBodyType(TypedDict): - """ReposOwnerRepoRulesetsRulesetIdPutBody""" +class ReposOwnerRepoRulesetsPostBodyType(TypedDict): + """ReposOwnerRepoRulesetsPostBody""" - name: NotRequired[str] + name: str target: NotRequired[Literal["branch", "tag", "push"]] - enforcement: NotRequired[Literal["disabled", "active", "evaluate"]] + enforcement: Literal["disabled", "active", "evaluate"] bypass_actors: NotRequired[List[RepositoryRulesetBypassActorType]] conditions: NotRequired[RepositoryRulesetConditionsType] rules: NotRequired[ @@ -76,4 +76,4 @@ class ReposOwnerRepoRulesetsRulesetIdPutBodyType(TypedDict): ] -__all__ = ("ReposOwnerRepoRulesetsRulesetIdPutBodyType",) +__all__ = ("ReposOwnerRepoRulesetsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1049.py b/githubkit/versions/v2022_11_28/types/group_1049.py index 6dd2f6735..368447ad0 100644 --- a/githubkit/versions/v2022_11_28/types/group_1049.py +++ b/githubkit/versions/v2022_11_28/types/group_1049.py @@ -9,18 +9,71 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0115 import RepositoryRuleUpdateType +from .group_0139 import RepositoryRuleOneof17Type +from .group_0135 import RepositoryRuleWorkflowsType +from .group_0120 import RepositoryRulePullRequestType +from .group_0137 import RepositoryRuleCodeScanningType +from .group_0103 import RepositoryRulesetConditionsType +from .group_0102 import RepositoryRulesetBypassActorType +from .group_0132 import RepositoryRuleTagNamePatternType +from .group_0130 import RepositoryRuleBranchNamePatternType +from .group_0118 import RepositoryRuleRequiredDeploymentsType +from .group_0122 import RepositoryRuleRequiredStatusChecksType +from .group_0124 import RepositoryRuleCommitMessagePatternType +from .group_0128 import RepositoryRuleCommitterEmailPatternType +from .group_0126 import RepositoryRuleCommitAuthorEmailPatternType +from .group_0117 import ( + RepositoryRuleOneof15Type, + RepositoryRuleRequiredLinearHistoryType, +) +from .group_0114 import ( + RepositoryRuleOneof14Type, + RepositoryRuleOneof16Type, + RepositoryRuleCreationType, + RepositoryRuleDeletionType, + RepositoryRuleNonFastForwardType, + RepositoryRuleRequiredSignaturesType, +) -class ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType(TypedDict): - """ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody""" - state: Literal["open", "resolved"] - resolution: NotRequired[ - Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] +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, + RepositoryRuleRequiredDeploymentsType, + RepositoryRuleRequiredSignaturesType, + RepositoryRulePullRequestType, + RepositoryRuleRequiredStatusChecksType, + RepositoryRuleNonFastForwardType, + RepositoryRuleCommitMessagePatternType, + RepositoryRuleCommitAuthorEmailPatternType, + RepositoryRuleCommitterEmailPatternType, + RepositoryRuleBranchNamePatternType, + RepositoryRuleTagNamePatternType, + RepositoryRuleOneof14Type, + RepositoryRuleOneof15Type, + RepositoryRuleOneof16Type, + RepositoryRuleOneof17Type, + RepositoryRuleWorkflowsType, + RepositoryRuleCodeScanningType, + ] + ] ] - resolution_comment: NotRequired[Union[str, None]] -__all__ = ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType",) +__all__ = ("ReposOwnerRepoRulesetsRulesetIdPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1050.py b/githubkit/versions/v2022_11_28/types/group_1050.py index 48f7d82ce..6dd2f6735 100644 --- a/githubkit/versions/v2022_11_28/types/group_1050.py +++ b/githubkit/versions/v2022_11_28/types/group_1050.py @@ -13,13 +13,14 @@ from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoStatusesShaPostBodyType(TypedDict): - """ReposOwnerRepoStatusesShaPostBody""" +class ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType(TypedDict): + """ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody""" - state: Literal["error", "failure", "pending", "success"] - target_url: NotRequired[Union[str, None]] - description: NotRequired[Union[str, None]] - context: NotRequired[str] + state: Literal["open", "resolved"] + resolution: NotRequired[ + Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] + ] + resolution_comment: NotRequired[Union[str, None]] -__all__ = ("ReposOwnerRepoStatusesShaPostBodyType",) +__all__ = ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1051.py b/githubkit/versions/v2022_11_28/types/group_1051.py index 9e6d26d8a..48f7d82ce 100644 --- a/githubkit/versions/v2022_11_28/types/group_1051.py +++ b/githubkit/versions/v2022_11_28/types/group_1051.py @@ -9,14 +9,17 @@ from __future__ import annotations +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoSubscriptionPutBodyType(TypedDict): - """ReposOwnerRepoSubscriptionPutBody""" +class ReposOwnerRepoStatusesShaPostBodyType(TypedDict): + """ReposOwnerRepoStatusesShaPostBody""" - subscribed: NotRequired[bool] - ignored: NotRequired[bool] + state: Literal["error", "failure", "pending", "success"] + target_url: NotRequired[Union[str, None]] + description: NotRequired[Union[str, None]] + context: NotRequired[str] -__all__ = ("ReposOwnerRepoSubscriptionPutBodyType",) +__all__ = ("ReposOwnerRepoStatusesShaPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1052.py b/githubkit/versions/v2022_11_28/types/group_1052.py index 492fdc91e..9e6d26d8a 100644 --- a/githubkit/versions/v2022_11_28/types/group_1052.py +++ b/githubkit/versions/v2022_11_28/types/group_1052.py @@ -9,13 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoTagsProtectionPostBodyType(TypedDict): - """ReposOwnerRepoTagsProtectionPostBody""" +class ReposOwnerRepoSubscriptionPutBodyType(TypedDict): + """ReposOwnerRepoSubscriptionPutBody""" - pattern: str + subscribed: NotRequired[bool] + ignored: NotRequired[bool] -__all__ = ("ReposOwnerRepoTagsProtectionPostBodyType",) +__all__ = ("ReposOwnerRepoSubscriptionPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1053.py b/githubkit/versions/v2022_11_28/types/group_1053.py index 681ccb3a7..492fdc91e 100644 --- a/githubkit/versions/v2022_11_28/types/group_1053.py +++ b/githubkit/versions/v2022_11_28/types/group_1053.py @@ -9,14 +9,13 @@ from __future__ import annotations -from typing import List from typing_extensions import TypedDict -class ReposOwnerRepoTopicsPutBodyType(TypedDict): - """ReposOwnerRepoTopicsPutBody""" +class ReposOwnerRepoTagsProtectionPostBodyType(TypedDict): + """ReposOwnerRepoTagsProtectionPostBody""" - names: List[str] + pattern: str -__all__ = ("ReposOwnerRepoTopicsPutBodyType",) +__all__ = ("ReposOwnerRepoTagsProtectionPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1054.py b/githubkit/versions/v2022_11_28/types/group_1054.py index 75339e545..681ccb3a7 100644 --- a/githubkit/versions/v2022_11_28/types/group_1054.py +++ b/githubkit/versions/v2022_11_28/types/group_1054.py @@ -10,15 +10,13 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ReposOwnerRepoTransferPostBodyType(TypedDict): - """ReposOwnerRepoTransferPostBody""" +class ReposOwnerRepoTopicsPutBodyType(TypedDict): + """ReposOwnerRepoTopicsPutBody""" - new_owner: str - new_name: NotRequired[str] - team_ids: NotRequired[List[int]] + names: List[str] -__all__ = ("ReposOwnerRepoTransferPostBodyType",) +__all__ = ("ReposOwnerRepoTopicsPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1055.py b/githubkit/versions/v2022_11_28/types/group_1055.py index 0b51fb534..75339e545 100644 --- a/githubkit/versions/v2022_11_28/types/group_1055.py +++ b/githubkit/versions/v2022_11_28/types/group_1055.py @@ -9,17 +9,16 @@ from __future__ import annotations +from typing import List from typing_extensions import TypedDict, NotRequired -class ReposTemplateOwnerTemplateRepoGeneratePostBodyType(TypedDict): - """ReposTemplateOwnerTemplateRepoGeneratePostBody""" +class ReposOwnerRepoTransferPostBodyType(TypedDict): + """ReposOwnerRepoTransferPostBody""" - owner: NotRequired[str] - name: str - description: NotRequired[str] - include_all_branches: NotRequired[bool] - private: NotRequired[bool] + new_owner: str + new_name: NotRequired[str] + team_ids: NotRequired[List[int]] -__all__ = ("ReposTemplateOwnerTemplateRepoGeneratePostBodyType",) +__all__ = ("ReposOwnerRepoTransferPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1056.py b/githubkit/versions/v2022_11_28/types/group_1056.py index b589c2a6a..0b51fb534 100644 --- a/githubkit/versions/v2022_11_28/types/group_1056.py +++ b/githubkit/versions/v2022_11_28/types/group_1056.py @@ -9,21 +9,17 @@ from __future__ import annotations -from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -class TeamsTeamIdPatchBodyType(TypedDict): - """TeamsTeamIdPatchBody""" +class ReposTemplateOwnerTemplateRepoGeneratePostBodyType(TypedDict): + """ReposTemplateOwnerTemplateRepoGeneratePostBody""" + owner: 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]] + include_all_branches: NotRequired[bool] + private: NotRequired[bool] -__all__ = ("TeamsTeamIdPatchBodyType",) +__all__ = ("ReposTemplateOwnerTemplateRepoGeneratePostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1057.py b/githubkit/versions/v2022_11_28/types/group_1057.py index 46f00fe63..b589c2a6a 100644 --- a/githubkit/versions/v2022_11_28/types/group_1057.py +++ b/githubkit/versions/v2022_11_28/types/group_1057.py @@ -9,15 +9,21 @@ from __future__ import annotations +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -class TeamsTeamIdDiscussionsPostBodyType(TypedDict): - """TeamsTeamIdDiscussionsPostBody""" +class TeamsTeamIdPatchBodyType(TypedDict): + """TeamsTeamIdPatchBody""" - title: str - body: str - private: NotRequired[bool] + 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__ = ("TeamsTeamIdDiscussionsPostBodyType",) +__all__ = ("TeamsTeamIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1058.py b/githubkit/versions/v2022_11_28/types/group_1058.py index 2797e0af9..46f00fe63 100644 --- a/githubkit/versions/v2022_11_28/types/group_1058.py +++ b/githubkit/versions/v2022_11_28/types/group_1058.py @@ -12,11 +12,12 @@ from typing_extensions import TypedDict, NotRequired -class TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType(TypedDict): - """TeamsTeamIdDiscussionsDiscussionNumberPatchBody""" +class TeamsTeamIdDiscussionsPostBodyType(TypedDict): + """TeamsTeamIdDiscussionsPostBody""" - title: NotRequired[str] - body: NotRequired[str] + title: str + body: str + private: NotRequired[bool] -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType",) +__all__ = ("TeamsTeamIdDiscussionsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1059.py b/githubkit/versions/v2022_11_28/types/group_1059.py index 49b6126e3..2797e0af9 100644 --- a/githubkit/versions/v2022_11_28/types/group_1059.py +++ b/githubkit/versions/v2022_11_28/types/group_1059.py @@ -9,13 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType(TypedDict): - """TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody""" +class TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType(TypedDict): + """TeamsTeamIdDiscussionsDiscussionNumberPatchBody""" - body: str + title: NotRequired[str] + body: NotRequired[str] -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType",) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1060.py b/githubkit/versions/v2022_11_28/types/group_1060.py index aba26488a..49b6126e3 100644 --- a/githubkit/versions/v2022_11_28/types/group_1060.py +++ b/githubkit/versions/v2022_11_28/types/group_1060.py @@ -12,12 +12,10 @@ from typing_extensions import TypedDict -class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType( - TypedDict -): - """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" +class TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType(TypedDict): + """TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody""" body: str -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType",) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1061.py b/githubkit/versions/v2022_11_28/types/group_1061.py index ea06c9bbf..aba26488a 100644 --- a/githubkit/versions/v2022_11_28/types/group_1061.py +++ b/githubkit/versions/v2022_11_28/types/group_1061.py @@ -9,20 +9,15 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict -class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType( +class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType( TypedDict ): - """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody""" + """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] + body: str -__all__ = ( - "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType", -) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1062.py b/githubkit/versions/v2022_11_28/types/group_1062.py index 02edb1cc8..ea06c9bbf 100644 --- a/githubkit/versions/v2022_11_28/types/group_1062.py +++ b/githubkit/versions/v2022_11_28/types/group_1062.py @@ -13,12 +13,16 @@ from typing_extensions import TypedDict -class TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType(TypedDict): - """TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody""" +class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType( + TypedDict +): + """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody""" content: Literal[ "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" ] -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType",) +__all__ = ( + "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_1063.py b/githubkit/versions/v2022_11_28/types/group_1063.py index 8ac2e4896..02edb1cc8 100644 --- a/githubkit/versions/v2022_11_28/types/group_1063.py +++ b/githubkit/versions/v2022_11_28/types/group_1063.py @@ -10,13 +10,15 @@ from __future__ import annotations from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class TeamsTeamIdMembershipsUsernamePutBodyType(TypedDict): - """TeamsTeamIdMembershipsUsernamePutBody""" +class TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType(TypedDict): + """TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody""" - role: NotRequired[Literal["member", "maintainer"]] + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] -__all__ = ("TeamsTeamIdMembershipsUsernamePutBodyType",) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1064.py b/githubkit/versions/v2022_11_28/types/group_1064.py index 206f6e4e5..8ac2e4896 100644 --- a/githubkit/versions/v2022_11_28/types/group_1064.py +++ b/githubkit/versions/v2022_11_28/types/group_1064.py @@ -13,10 +13,10 @@ from typing_extensions import TypedDict, NotRequired -class TeamsTeamIdProjectsProjectIdPutBodyType(TypedDict): - """TeamsTeamIdProjectsProjectIdPutBody""" +class TeamsTeamIdMembershipsUsernamePutBodyType(TypedDict): + """TeamsTeamIdMembershipsUsernamePutBody""" - permission: NotRequired[Literal["read", "write", "admin"]] + role: NotRequired[Literal["member", "maintainer"]] -__all__ = ("TeamsTeamIdProjectsProjectIdPutBodyType",) +__all__ = ("TeamsTeamIdMembershipsUsernamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1065.py b/githubkit/versions/v2022_11_28/types/group_1065.py index fd87b040e..206f6e4e5 100644 --- a/githubkit/versions/v2022_11_28/types/group_1065.py +++ b/githubkit/versions/v2022_11_28/types/group_1065.py @@ -9,14 +9,14 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict, NotRequired -class TeamsTeamIdProjectsProjectIdPutResponse403Type(TypedDict): - """TeamsTeamIdProjectsProjectIdPutResponse403""" +class TeamsTeamIdProjectsProjectIdPutBodyType(TypedDict): + """TeamsTeamIdProjectsProjectIdPutBody""" - message: NotRequired[str] - documentation_url: NotRequired[str] + permission: NotRequired[Literal["read", "write", "admin"]] -__all__ = ("TeamsTeamIdProjectsProjectIdPutResponse403Type",) +__all__ = ("TeamsTeamIdProjectsProjectIdPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1066.py b/githubkit/versions/v2022_11_28/types/group_1066.py index 5f68e3fc2..fd87b040e 100644 --- a/githubkit/versions/v2022_11_28/types/group_1066.py +++ b/githubkit/versions/v2022_11_28/types/group_1066.py @@ -9,14 +9,14 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict, NotRequired -class TeamsTeamIdReposOwnerRepoPutBodyType(TypedDict): - """TeamsTeamIdReposOwnerRepoPutBody""" +class TeamsTeamIdProjectsProjectIdPutResponse403Type(TypedDict): + """TeamsTeamIdProjectsProjectIdPutResponse403""" - permission: NotRequired[Literal["pull", "push", "admin"]] + message: NotRequired[str] + documentation_url: NotRequired[str] -__all__ = ("TeamsTeamIdReposOwnerRepoPutBodyType",) +__all__ = ("TeamsTeamIdProjectsProjectIdPutResponse403Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1067.py b/githubkit/versions/v2022_11_28/types/group_1067.py index a5b98bc3c..5f68e3fc2 100644 --- a/githubkit/versions/v2022_11_28/types/group_1067.py +++ b/githubkit/versions/v2022_11_28/types/group_1067.py @@ -9,21 +9,14 @@ from __future__ import annotations -from typing import Union +from typing import Literal from typing_extensions import TypedDict, NotRequired -class UserPatchBodyType(TypedDict): - """UserPatchBody""" +class TeamsTeamIdReposOwnerRepoPutBodyType(TypedDict): + """TeamsTeamIdReposOwnerRepoPutBody""" - 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] + permission: NotRequired[Literal["pull", "push", "admin"]] -__all__ = ("UserPatchBodyType",) +__all__ = ("TeamsTeamIdReposOwnerRepoPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1068.py b/githubkit/versions/v2022_11_28/types/group_1068.py index 196edda88..a5b98bc3c 100644 --- a/githubkit/versions/v2022_11_28/types/group_1068.py +++ b/githubkit/versions/v2022_11_28/types/group_1068.py @@ -9,17 +9,21 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import TypedDict, NotRequired -from .group_0078 import CodespaceType +class UserPatchBodyType(TypedDict): + """UserPatchBody""" -class UserCodespacesGetResponse200Type(TypedDict): - """UserCodespacesGetResponse200""" + 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 - codespaces: List[CodespaceType] - -__all__ = ("UserCodespacesGetResponse200Type",) +__all__ = ("UserPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1069.py b/githubkit/versions/v2022_11_28/types/group_1069.py index dc342bf35..196edda88 100644 --- a/githubkit/versions/v2022_11_28/types/group_1069.py +++ b/githubkit/versions/v2022_11_28/types/group_1069.py @@ -9,25 +9,17 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict +from .group_0078 import CodespaceType -class UserCodespacesPostBodyOneof0Type(TypedDict): - """UserCodespacesPostBodyOneof0""" - 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] +class UserCodespacesGetResponse200Type(TypedDict): + """UserCodespacesGetResponse200""" + total_count: int + codespaces: List[CodespaceType] -__all__ = ("UserCodespacesPostBodyOneof0Type",) + +__all__ = ("UserCodespacesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1070.py b/githubkit/versions/v2022_11_28/types/group_1070.py index cf235f497..dc342bf35 100644 --- a/githubkit/versions/v2022_11_28/types/group_1070.py +++ b/githubkit/versions/v2022_11_28/types/group_1070.py @@ -13,29 +13,21 @@ from typing_extensions import TypedDict, NotRequired -class UserCodespacesPostBodyOneof1Type(TypedDict): - """UserCodespacesPostBodyOneof1""" +class UserCodespacesPostBodyOneof0Type(TypedDict): + """UserCodespacesPostBodyOneof0""" - pull_request: UserCodespacesPostBodyOneof1PropPullRequestType + 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] -class UserCodespacesPostBodyOneof1PropPullRequestType(TypedDict): - """UserCodespacesPostBodyOneof1PropPullRequest - - Pull request number for this codespace - """ - - pull_request_number: int - repository_id: int - - -__all__ = ( - "UserCodespacesPostBodyOneof1Type", - "UserCodespacesPostBodyOneof1PropPullRequestType", -) +__all__ = ("UserCodespacesPostBodyOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1071.py b/githubkit/versions/v2022_11_28/types/group_1071.py index 6c62a2d33..cf235f497 100644 --- a/githubkit/versions/v2022_11_28/types/group_1071.py +++ b/githubkit/versions/v2022_11_28/types/group_1071.py @@ -9,32 +9,33 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import TypedDict, NotRequired -class UserCodespacesSecretsGetResponse200Type(TypedDict): - """UserCodespacesSecretsGetResponse200""" +class UserCodespacesPostBodyOneof1Type(TypedDict): + """UserCodespacesPostBodyOneof1""" - total_count: int - secrets: List[CodespacesSecretType] + 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 CodespacesSecretType(TypedDict): - """Codespaces Secret +class UserCodespacesPostBodyOneof1PropPullRequestType(TypedDict): + """UserCodespacesPostBodyOneof1PropPullRequest - Secrets for a GitHub Codespace. + Pull request number for this codespace """ - name: str - created_at: datetime - updated_at: datetime - visibility: Literal["all", "private", "selected"] - selected_repositories_url: str + pull_request_number: int + repository_id: int __all__ = ( - "UserCodespacesSecretsGetResponse200Type", - "CodespacesSecretType", + "UserCodespacesPostBodyOneof1Type", + "UserCodespacesPostBodyOneof1PropPullRequestType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_1072.py b/githubkit/versions/v2022_11_28/types/group_1072.py index f7e1dab5d..6c62a2d33 100644 --- a/githubkit/versions/v2022_11_28/types/group_1072.py +++ b/githubkit/versions/v2022_11_28/types/group_1072.py @@ -9,16 +9,32 @@ from __future__ import annotations -from typing import List, Union -from typing_extensions import TypedDict, NotRequired +from datetime import datetime +from typing import List, Literal +from typing_extensions import TypedDict -class UserCodespacesSecretsSecretNamePutBodyType(TypedDict): - """UserCodespacesSecretsSecretNamePutBody""" +class UserCodespacesSecretsGetResponse200Type(TypedDict): + """UserCodespacesSecretsGetResponse200""" - encrypted_value: NotRequired[str] - key_id: str - selected_repository_ids: NotRequired[List[Union[int, str]]] + total_count: int + secrets: List[CodespacesSecretType] -__all__ = ("UserCodespacesSecretsSecretNamePutBodyType",) +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__ = ( + "UserCodespacesSecretsGetResponse200Type", + "CodespacesSecretType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_1073.py b/githubkit/versions/v2022_11_28/types/group_1073.py index 36aa20a41..f7e1dab5d 100644 --- a/githubkit/versions/v2022_11_28/types/group_1073.py +++ b/githubkit/versions/v2022_11_28/types/group_1073.py @@ -9,17 +9,16 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import List, Union +from typing_extensions import TypedDict, NotRequired -from .group_0055 import MinimalRepositoryType +class UserCodespacesSecretsSecretNamePutBodyType(TypedDict): + """UserCodespacesSecretsSecretNamePutBody""" -class UserCodespacesSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): - """UserCodespacesSecretsSecretNameRepositoriesGetResponse200""" + encrypted_value: NotRequired[str] + key_id: str + selected_repository_ids: NotRequired[List[Union[int, str]]] - total_count: int - repositories: List[MinimalRepositoryType] - -__all__ = ("UserCodespacesSecretsSecretNameRepositoriesGetResponse200Type",) +__all__ = ("UserCodespacesSecretsSecretNamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1074.py b/githubkit/versions/v2022_11_28/types/group_1074.py index 623f6ef5e..36aa20a41 100644 --- a/githubkit/versions/v2022_11_28/types/group_1074.py +++ b/githubkit/versions/v2022_11_28/types/group_1074.py @@ -12,11 +12,14 @@ from typing import List from typing_extensions import TypedDict +from .group_0055 import MinimalRepositoryType -class UserCodespacesSecretsSecretNameRepositoriesPutBodyType(TypedDict): - """UserCodespacesSecretsSecretNameRepositoriesPutBody""" - selected_repository_ids: List[int] +class UserCodespacesSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): + """UserCodespacesSecretsSecretNameRepositoriesGetResponse200""" + total_count: int + repositories: List[MinimalRepositoryType] -__all__ = ("UserCodespacesSecretsSecretNameRepositoriesPutBodyType",) + +__all__ = ("UserCodespacesSecretsSecretNameRepositoriesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1075.py b/githubkit/versions/v2022_11_28/types/group_1075.py index b46628249..623f6ef5e 100644 --- a/githubkit/versions/v2022_11_28/types/group_1075.py +++ b/githubkit/versions/v2022_11_28/types/group_1075.py @@ -10,15 +10,13 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class UserCodespacesCodespaceNamePatchBodyType(TypedDict): - """UserCodespacesCodespaceNamePatchBody""" +class UserCodespacesSecretsSecretNameRepositoriesPutBodyType(TypedDict): + """UserCodespacesSecretsSecretNameRepositoriesPutBody""" - machine: NotRequired[str] - display_name: NotRequired[str] - recent_folders: NotRequired[List[str]] + selected_repository_ids: List[int] -__all__ = ("UserCodespacesCodespaceNamePatchBodyType",) +__all__ = ("UserCodespacesSecretsSecretNameRepositoriesPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1076.py b/githubkit/versions/v2022_11_28/types/group_1076.py index 3e32b371e..b46628249 100644 --- a/githubkit/versions/v2022_11_28/types/group_1076.py +++ b/githubkit/versions/v2022_11_28/types/group_1076.py @@ -10,16 +10,15 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0077 import CodespaceMachineType +class UserCodespacesCodespaceNamePatchBodyType(TypedDict): + """UserCodespacesCodespaceNamePatchBody""" -class UserCodespacesCodespaceNameMachinesGetResponse200Type(TypedDict): - """UserCodespacesCodespaceNameMachinesGetResponse200""" + machine: NotRequired[str] + display_name: NotRequired[str] + recent_folders: NotRequired[List[str]] - total_count: int - machines: List[CodespaceMachineType] - -__all__ = ("UserCodespacesCodespaceNameMachinesGetResponse200Type",) +__all__ = ("UserCodespacesCodespaceNamePatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1077.py b/githubkit/versions/v2022_11_28/types/group_1077.py index adf5558f2..3e32b371e 100644 --- a/githubkit/versions/v2022_11_28/types/group_1077.py +++ b/githubkit/versions/v2022_11_28/types/group_1077.py @@ -9,14 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict +from .group_0077 import CodespaceMachineType -class UserCodespacesCodespaceNamePublishPostBodyType(TypedDict): - """UserCodespacesCodespaceNamePublishPostBody""" - name: NotRequired[str] - private: NotRequired[bool] +class UserCodespacesCodespaceNameMachinesGetResponse200Type(TypedDict): + """UserCodespacesCodespaceNameMachinesGetResponse200""" + total_count: int + machines: List[CodespaceMachineType] -__all__ = ("UserCodespacesCodespaceNamePublishPostBodyType",) + +__all__ = ("UserCodespacesCodespaceNameMachinesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1078.py b/githubkit/versions/v2022_11_28/types/group_1078.py index 741f85377..adf5558f2 100644 --- a/githubkit/versions/v2022_11_28/types/group_1078.py +++ b/githubkit/versions/v2022_11_28/types/group_1078.py @@ -9,14 +9,14 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class UserEmailVisibilityPatchBodyType(TypedDict): - """UserEmailVisibilityPatchBody""" +class UserCodespacesCodespaceNamePublishPostBodyType(TypedDict): + """UserCodespacesCodespaceNamePublishPostBody""" - visibility: Literal["public", "private"] + name: NotRequired[str] + private: NotRequired[bool] -__all__ = ("UserEmailVisibilityPatchBodyType",) +__all__ = ("UserCodespacesCodespaceNamePublishPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1079.py b/githubkit/versions/v2022_11_28/types/group_1079.py index 76706bdf0..741f85377 100644 --- a/githubkit/versions/v2022_11_28/types/group_1079.py +++ b/githubkit/versions/v2022_11_28/types/group_1079.py @@ -9,18 +9,14 @@ from __future__ import annotations -from typing import List +from typing import Literal from typing_extensions import TypedDict -class UserEmailsPostBodyOneof0Type(TypedDict): - """UserEmailsPostBodyOneof0 +class UserEmailVisibilityPatchBodyType(TypedDict): + """UserEmailVisibilityPatchBody""" - Examples: - {'emails': ['octocat@github.com', 'mona@github.com']} - """ + visibility: Literal["public", "private"] - emails: List[str] - -__all__ = ("UserEmailsPostBodyOneof0Type",) +__all__ = ("UserEmailVisibilityPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1080.py b/githubkit/versions/v2022_11_28/types/group_1080.py index a7b448531..76706bdf0 100644 --- a/githubkit/versions/v2022_11_28/types/group_1080.py +++ b/githubkit/versions/v2022_11_28/types/group_1080.py @@ -13,13 +13,8 @@ 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. +class UserEmailsPostBodyOneof0Type(TypedDict): + """UserEmailsPostBodyOneof0 Examples: {'emails': ['octocat@github.com', 'mona@github.com']} @@ -28,4 +23,4 @@ class UserEmailsDeleteBodyOneof0Type(TypedDict): emails: List[str] -__all__ = ("UserEmailsDeleteBodyOneof0Type",) +__all__ = ("UserEmailsPostBodyOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1081.py b/githubkit/versions/v2022_11_28/types/group_1081.py index c3eff10ec..a7b448531 100644 --- a/githubkit/versions/v2022_11_28/types/group_1081.py +++ b/githubkit/versions/v2022_11_28/types/group_1081.py @@ -9,14 +9,23 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -class UserGpgKeysPostBodyType(TypedDict): - """UserGpgKeysPostBody""" +class UserEmailsDeleteBodyOneof0Type(TypedDict): + """UserEmailsDeleteBodyOneof0 - name: NotRequired[str] - armored_public_key: str + 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']} + """ -__all__ = ("UserGpgKeysPostBodyType",) + emails: List[str] + + +__all__ = ("UserEmailsDeleteBodyOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1082.py b/githubkit/versions/v2022_11_28/types/group_1082.py index 64abc4546..c3eff10ec 100644 --- a/githubkit/versions/v2022_11_28/types/group_1082.py +++ b/githubkit/versions/v2022_11_28/types/group_1082.py @@ -9,17 +9,14 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0015 import InstallationType +class UserGpgKeysPostBodyType(TypedDict): + """UserGpgKeysPostBody""" -class UserInstallationsGetResponse200Type(TypedDict): - """UserInstallationsGetResponse200""" + name: NotRequired[str] + armored_public_key: str - total_count: int - installations: List[InstallationType] - -__all__ = ("UserInstallationsGetResponse200Type",) +__all__ = ("UserGpgKeysPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1083.py b/githubkit/versions/v2022_11_28/types/group_1083.py index a8c57fcc3..64abc4546 100644 --- a/githubkit/versions/v2022_11_28/types/group_1083.py +++ b/githubkit/versions/v2022_11_28/types/group_1083.py @@ -10,17 +10,16 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0017 import RepositoryType +from .group_0015 import InstallationType -class UserInstallationsInstallationIdRepositoriesGetResponse200Type(TypedDict): - """UserInstallationsInstallationIdRepositoriesGetResponse200""" +class UserInstallationsGetResponse200Type(TypedDict): + """UserInstallationsGetResponse200""" total_count: int - repository_selection: NotRequired[str] - repositories: List[RepositoryType] + installations: List[InstallationType] -__all__ = ("UserInstallationsInstallationIdRepositoriesGetResponse200Type",) +__all__ = ("UserInstallationsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1084.py b/githubkit/versions/v2022_11_28/types/group_1084.py index 9f9dd053b..a8c57fcc3 100644 --- a/githubkit/versions/v2022_11_28/types/group_1084.py +++ b/githubkit/versions/v2022_11_28/types/group_1084.py @@ -9,11 +9,18 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import List +from typing_extensions import TypedDict, NotRequired +from .group_0017 import RepositoryType -class UserInteractionLimitsGetResponse200Anyof1Type(TypedDict): - """UserInteractionLimitsGetResponse200Anyof1""" +class UserInstallationsInstallationIdRepositoriesGetResponse200Type(TypedDict): + """UserInstallationsInstallationIdRepositoriesGetResponse200""" -__all__ = ("UserInteractionLimitsGetResponse200Anyof1Type",) + total_count: int + repository_selection: NotRequired[str] + repositories: List[RepositoryType] + + +__all__ = ("UserInstallationsInstallationIdRepositoriesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1085.py b/githubkit/versions/v2022_11_28/types/group_1085.py index 01b3a0e4d..9f9dd053b 100644 --- a/githubkit/versions/v2022_11_28/types/group_1085.py +++ b/githubkit/versions/v2022_11_28/types/group_1085.py @@ -9,14 +9,11 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class UserKeysPostBodyType(TypedDict): - """UserKeysPostBody""" +class UserInteractionLimitsGetResponse200Anyof1Type(TypedDict): + """UserInteractionLimitsGetResponse200Anyof1""" - title: NotRequired[str] - key: str - -__all__ = ("UserKeysPostBodyType",) +__all__ = ("UserInteractionLimitsGetResponse200Anyof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1086.py b/githubkit/versions/v2022_11_28/types/group_1086.py index 718052573..01b3a0e4d 100644 --- a/githubkit/versions/v2022_11_28/types/group_1086.py +++ b/githubkit/versions/v2022_11_28/types/group_1086.py @@ -9,14 +9,14 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class UserMembershipsOrgsOrgPatchBodyType(TypedDict): - """UserMembershipsOrgsOrgPatchBody""" +class UserKeysPostBodyType(TypedDict): + """UserKeysPostBody""" - state: Literal["active"] + title: NotRequired[str] + key: str -__all__ = ("UserMembershipsOrgsOrgPatchBodyType",) +__all__ = ("UserKeysPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1087.py b/githubkit/versions/v2022_11_28/types/group_1087.py index 4d601de18..718052573 100644 --- a/githubkit/versions/v2022_11_28/types/group_1087.py +++ b/githubkit/versions/v2022_11_28/types/group_1087.py @@ -9,22 +9,14 @@ from __future__ import annotations -from typing import List, Literal -from typing_extensions import TypedDict, NotRequired +from typing import Literal +from typing_extensions import TypedDict -class UserMigrationsPostBodyType(TypedDict): - """UserMigrationsPostBody""" +class UserMembershipsOrgsOrgPatchBodyType(TypedDict): + """UserMembershipsOrgsOrgPatchBody""" - 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] + state: Literal["active"] -__all__ = ("UserMigrationsPostBodyType",) +__all__ = ("UserMembershipsOrgsOrgPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1088.py b/githubkit/versions/v2022_11_28/types/group_1088.py index 788630d15..4d601de18 100644 --- a/githubkit/versions/v2022_11_28/types/group_1088.py +++ b/githubkit/versions/v2022_11_28/types/group_1088.py @@ -9,15 +9,22 @@ from __future__ import annotations -from typing import Union +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -class UserProjectsPostBodyType(TypedDict): - """UserProjectsPostBody""" +class UserMigrationsPostBodyType(TypedDict): + """UserMigrationsPostBody""" - name: str - body: NotRequired[Union[str, None]] + 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__ = ("UserProjectsPostBodyType",) +__all__ = ("UserMigrationsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1089.py b/githubkit/versions/v2022_11_28/types/group_1089.py index 7b85c56d3..788630d15 100644 --- a/githubkit/versions/v2022_11_28/types/group_1089.py +++ b/githubkit/versions/v2022_11_28/types/group_1089.py @@ -9,38 +9,15 @@ from __future__ import annotations -from typing import Literal +from typing import Union from typing_extensions import TypedDict, NotRequired -class UserReposPostBodyType(TypedDict): - """UserReposPostBody""" +class UserProjectsPostBodyType(TypedDict): + """UserProjectsPostBody""" 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",) + body: NotRequired[Union[str, None]] + + +__all__ = ("UserProjectsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1090.py b/githubkit/versions/v2022_11_28/types/group_1090.py index e15229eae..7b85c56d3 100644 --- a/githubkit/versions/v2022_11_28/types/group_1090.py +++ b/githubkit/versions/v2022_11_28/types/group_1090.py @@ -9,19 +9,38 @@ from __future__ import annotations -from typing import List -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",) +from typing import Literal +from typing_extensions import TypedDict, NotRequired + + +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_1091.py b/githubkit/versions/v2022_11_28/types/group_1091.py index ee2d5aa51..e15229eae 100644 --- a/githubkit/versions/v2022_11_28/types/group_1091.py +++ b/githubkit/versions/v2022_11_28/types/group_1091.py @@ -13,8 +13,8 @@ from typing_extensions import TypedDict -class UserSocialAccountsDeleteBodyType(TypedDict): - """UserSocialAccountsDeleteBody +class UserSocialAccountsPostBodyType(TypedDict): + """UserSocialAccountsPostBody Examples: {'account_urls': ['https://www.linkedin.com/company/github/', @@ -24,4 +24,4 @@ class UserSocialAccountsDeleteBodyType(TypedDict): account_urls: List[str] -__all__ = ("UserSocialAccountsDeleteBodyType",) +__all__ = ("UserSocialAccountsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1092.py b/githubkit/versions/v2022_11_28/types/group_1092.py index 4e43f5e67..ee2d5aa51 100644 --- a/githubkit/versions/v2022_11_28/types/group_1092.py +++ b/githubkit/versions/v2022_11_28/types/group_1092.py @@ -9,14 +9,19 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -class UserSshSigningKeysPostBodyType(TypedDict): - """UserSshSigningKeysPostBody""" +class UserSocialAccountsDeleteBodyType(TypedDict): + """UserSocialAccountsDeleteBody - title: NotRequired[str] - key: str + Examples: + {'account_urls': ['https://www.linkedin.com/company/github/', + 'https://twitter.com/github']} + """ + account_urls: List[str] -__all__ = ("UserSshSigningKeysPostBodyType",) + +__all__ = ("UserSocialAccountsDeleteBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1093.py b/githubkit/versions/v2022_11_28/types/group_1093.py index 293532f7a..4e43f5e67 100644 --- a/githubkit/versions/v2022_11_28/types/group_1093.py +++ b/githubkit/versions/v2022_11_28/types/group_1093.py @@ -9,143 +9,14 @@ from __future__ import annotations -from typing import List, Union from typing_extensions import TypedDict, NotRequired -class UsersUsernameAttestationsSubjectDigestGetResponse200Type(TypedDict): - """UsersUsernameAttestationsSubjectDigestGetResponse200""" +class UserSshSigningKeysPostBodyType(TypedDict): + """UserSshSigningKeysPostBody""" - attestations: NotRequired[ - List[ - UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType - ] - ] + title: NotRequired[str] + key: str -class UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType( - TypedDict -): - """UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems""" - - bundle: NotRequired[SigstoreBundle0Type] - repository_id: NotRequired[int] - - -class SigstoreBundle0Type(TypedDict): - """Sigstore Bundle v0.1 - - Sigstore Bundle v0.1 - """ - - media_type: NotRequired[str] - verification_material: NotRequired[SigstoreBundle0PropVerificationMaterialType] - dsse_envelope: NotRequired[SigstoreBundle0PropDsseEnvelopeType] - - -class SigstoreBundle0PropDsseEnvelopeType(TypedDict): - """SigstoreBundle0PropDsseEnvelope""" - - payload: NotRequired[str] - payload_type: NotRequired[str] - signatures: NotRequired[ - List[SigstoreBundle0PropDsseEnvelopePropSignaturesItemsType] - ] - - -class SigstoreBundle0PropDsseEnvelopePropSignaturesItemsType(TypedDict): - """SigstoreBundle0PropDsseEnvelopePropSignaturesItems""" - - sig: NotRequired[str] - keyid: NotRequired[str] - - -class SigstoreBundle0PropVerificationMaterialType(TypedDict): - """SigstoreBundle0PropVerificationMaterial""" - - x_509_certificate_chain: NotRequired[ - SigstoreBundle0PropVerificationMaterialPropX509CertificateChainType - ] - tlog_entries: NotRequired[ - List[SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsType] - ] - timestamp_verification_data: NotRequired[Union[str, None]] - - -class SigstoreBundle0PropVerificationMaterialPropX509CertificateChainType(TypedDict): - """SigstoreBundle0PropVerificationMaterialPropX509CertificateChain""" - - certificates: NotRequired[ - List[ - SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItemsType - ] - ] - - -class SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItemsType( - TypedDict -): - """SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesI - tems - """ - - raw_bytes: NotRequired[str] - - -class SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsType(TypedDict): - """SigstoreBundle0PropVerificationMaterialPropTlogEntriesItems""" - - log_index: NotRequired[str] - log_id: NotRequired[ - SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogIdType - ] - kind_version: NotRequired[ - SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersionType - ] - integrated_time: NotRequired[str] - inclusion_promise: NotRequired[ - SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromiseType - ] - inclusion_proof: NotRequired[Union[str, None]] - canonicalized_body: NotRequired[str] - - -class SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogIdType( - TypedDict -): - """SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogId""" - - key_id: NotRequired[str] - - -class SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersionType( - TypedDict -): - """SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersion""" - - kind: NotRequired[str] - version: NotRequired[str] - - -class SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromiseType( - TypedDict -): - """SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromise""" - - signed_entry_timestamp: NotRequired[str] - - -__all__ = ( - "UsersUsernameAttestationsSubjectDigestGetResponse200Type", - "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType", - "SigstoreBundle0Type", - "SigstoreBundle0PropDsseEnvelopeType", - "SigstoreBundle0PropDsseEnvelopePropSignaturesItemsType", - "SigstoreBundle0PropVerificationMaterialType", - "SigstoreBundle0PropVerificationMaterialPropX509CertificateChainType", - "SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItemsType", - "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsType", - "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogIdType", - "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersionType", - "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromiseType", -) +__all__ = ("UserSshSigningKeysPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1094.py b/githubkit/versions/v2022_11_28/types/group_1094.py new file mode 100644 index 000000000..293532f7a --- /dev/null +++ b/githubkit/versions/v2022_11_28/types/group_1094.py @@ -0,0 +1,151 @@ +"""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 List, Union +from typing_extensions import TypedDict, NotRequired + + +class UsersUsernameAttestationsSubjectDigestGetResponse200Type(TypedDict): + """UsersUsernameAttestationsSubjectDigestGetResponse200""" + + attestations: NotRequired[ + List[ + UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType + ] + ] + + +class UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType( + TypedDict +): + """UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems""" + + bundle: NotRequired[SigstoreBundle0Type] + repository_id: NotRequired[int] + + +class SigstoreBundle0Type(TypedDict): + """Sigstore Bundle v0.1 + + Sigstore Bundle v0.1 + """ + + media_type: NotRequired[str] + verification_material: NotRequired[SigstoreBundle0PropVerificationMaterialType] + dsse_envelope: NotRequired[SigstoreBundle0PropDsseEnvelopeType] + + +class SigstoreBundle0PropDsseEnvelopeType(TypedDict): + """SigstoreBundle0PropDsseEnvelope""" + + payload: NotRequired[str] + payload_type: NotRequired[str] + signatures: NotRequired[ + List[SigstoreBundle0PropDsseEnvelopePropSignaturesItemsType] + ] + + +class SigstoreBundle0PropDsseEnvelopePropSignaturesItemsType(TypedDict): + """SigstoreBundle0PropDsseEnvelopePropSignaturesItems""" + + sig: NotRequired[str] + keyid: NotRequired[str] + + +class SigstoreBundle0PropVerificationMaterialType(TypedDict): + """SigstoreBundle0PropVerificationMaterial""" + + x_509_certificate_chain: NotRequired[ + SigstoreBundle0PropVerificationMaterialPropX509CertificateChainType + ] + tlog_entries: NotRequired[ + List[SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsType] + ] + timestamp_verification_data: NotRequired[Union[str, None]] + + +class SigstoreBundle0PropVerificationMaterialPropX509CertificateChainType(TypedDict): + """SigstoreBundle0PropVerificationMaterialPropX509CertificateChain""" + + certificates: NotRequired[ + List[ + SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItemsType + ] + ] + + +class SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItemsType( + TypedDict +): + """SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesI + tems + """ + + raw_bytes: NotRequired[str] + + +class SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsType(TypedDict): + """SigstoreBundle0PropVerificationMaterialPropTlogEntriesItems""" + + log_index: NotRequired[str] + log_id: NotRequired[ + SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogIdType + ] + kind_version: NotRequired[ + SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersionType + ] + integrated_time: NotRequired[str] + inclusion_promise: NotRequired[ + SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromiseType + ] + inclusion_proof: NotRequired[Union[str, None]] + canonicalized_body: NotRequired[str] + + +class SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogIdType( + TypedDict +): + """SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogId""" + + key_id: NotRequired[str] + + +class SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersionType( + TypedDict +): + """SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersion""" + + kind: NotRequired[str] + version: NotRequired[str] + + +class SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromiseType( + TypedDict +): + """SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromise""" + + signed_entry_timestamp: NotRequired[str] + + +__all__ = ( + "UsersUsernameAttestationsSubjectDigestGetResponse200Type", + "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType", + "SigstoreBundle0Type", + "SigstoreBundle0PropDsseEnvelopeType", + "SigstoreBundle0PropDsseEnvelopePropSignaturesItemsType", + "SigstoreBundle0PropVerificationMaterialType", + "SigstoreBundle0PropVerificationMaterialPropX509CertificateChainType", + "SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItemsType", + "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsType", + "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogIdType", + "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersionType", + "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromiseType", +)